When you attempt to launch instances through the Spot platform, you may encounter an encoded authorization error message preventing instance creation. This issue commonly occurs when AWS Service Control Policies (SCPs) restrict specific instance families or actions. This article explains how SCP restrictions affect instance provisioning, outlines how to decode the message, and describes how to resolve the issue.
Problem
Instances fail to launch in the Spot platform with an error similar to:
ERROR Can't Spin On-Demand Instances: Message:
You are not authorized to perform this operation.
Encoded authorization failure message
The message indicates authorization issues that originate from AWS but are not decoded in the Spot interface.
Cause
The error occurs because AWS Service Control Policies restrict the use of certain instance types or operations. Since SCP policies are enforced at the AWS organization level, Spot (including Ocean) cannot override or interpret these restrictions.
For example, if an SCP blocks the m5ad instance family, any attempt by Spot to launch it will fail, generating the encoded authorization failure message.
Resolution steps
-
Decode the authorization message using AWS:
Use the AWS STS API to decode and identify the root cause of the failure.-
Reference: AWS STS – DecodeAuthorizationMessage API.
-
-
Verify and confirm SCP enforcement:
Once decoded, confirm whether your account, organization, or OU applies SCP restrictions on certain instance families. -
Update your Ocean configuration:
Because Ocean cannot bypass SCP-enforced restrictions, adjust your configuration to avoid restricted instances.-
Remove restricted instance types from the cluster whitelist (for example,
m5ad). -
Alternatively, define instanceTypes.blacklist in your cluster configuration.
Note: You cannot use whitelist and blacklist simultaneously.
References:
-
Outcome
Once you remove or blacklist restricted instance types, instance creation proceeds successfully, preventing further occurrence of the “Encoded authorization failure message” error.
Related Articles
Azure error: RequestDisallowedByPolicy when launching VM 13Number of Views Max Spot Instance Count Exceeded error when launching AWS Spot Instances 23Number of Views Fix the “can’t spin instances due to duplicate tags” error in Flexera Ocean 15Number of Views Malformed uxxxx Encoding Error Generated when Launching Installer 8Number of Views GKE spot instance launches fail due to InstanceTaxonomies incompatibility 7Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
|
FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513
(toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367
(toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895
2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago