Failure while creating instance
See original GitHub issueAt step 16/25 the script fails with perhaps some permission issue. I used the policy.json attached in repo
[INFO] 2021-02-09 18:25:45,871 ec2-spot-converter - [STEP 14/25] Terminate instance...
[INFO] 2021-02-09 18:25:45,978 ec2-spot-converter - => SUCCESS. Successfully terminated instance i-0g6j3gaeda57a3d.
[INFO] 2021-02-09 18:25:45,998 ec2-spot-converter - [STEP 15/25] Wait resource release...
[INFO] 2021-02-09 18:25:46,089 ec2-spot-converter - Waiting for detached ENIs to become 'available'...
[INFO] 2021-02-09 18:25:53,259 ec2-spot-converter - => SUCCESS. All resources released : ['eni-018kf47ke05c84'].
[INFO] 2021-02-09 18:25:53,277 ec2-spot-converter - [STEP 16/25] Create new instance...
Traceback (most recent call last):
File "./ec2-spot-converter", line 1471, in <module>
sys.exit(main(sys.argv))
File "./ec2-spot-converter", line 1437, in main
return_code, reason, keys = step["Function"]()
File "./ec2-spot-converter", line 939, in create_new_instance
response = ec2_client.run_instances(**launch_specifications)
File "/usr/local/lib/python3.6/dist-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.6/dist-packages/botocore/client.py", line 676, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (UnauthorizedOperation) when calling the RunInstances operation: You are not authorized to perform this operation.
The script gave an encoded message. I’ll try to figure out decoding it
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
React Native error while creating instance - Stack Overflow
in React Native application; I downloaded this module and wanted to recreate first example from this site.
Read more >Creating instance resources returns an error - Db2 - IBM
This example scenario involves a failure while creating the Db2 instance and cluster services resources as part of the installation process.
Read more >Troubleshoot issues when starting or launching an EC2 instance
The UnauthorizedOperation error indicates that the user attempting to launch the instance doesn't have the required permissions. For information ...
Read more >Error - Create Instance Failure - BizTalk Server - Microsoft Learn
In this article. Explanation. The Generate Instance command for the indicated schema failed. User Action. Examine the accompanying error ...
Read more >Unable to create instance - Oracle Communities
A failure will occur when you attempt to create an Oracle Java Cloud Service instance with a Oracle Database Cloud Service — Virtual...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@IvanNoronha-TomTom FYI, I released v0.10.0 that take cares of CloudWatch alarm update of converted Instance Id. Thanks again for “spotting” one bug and one missing feature!
Thanks for having spotted the policy issue. I already updated the policy.json file with iam:PassRole.
Good point about CW alarms! I did not think about them. I do not know if it is possible to do something like ELB registration preservation feature but will look at it. Thanks.
PS: BTW, if the Spot instance is in stop behavior, it still makes sense to have CW Alarms on them as the insatnce Id is permanent.