While running the Template on AWS using CloudFormation. Below error is seen:
API: ec2:RunInstances Not authorized for images: [ami-011a35e97a0110026] on us-west-2(Oregon)
Steps to Reproduce
Go to CloudFormation
Create New Stack
Upload Template
Region should be us-west-2
Fill all the relevant parameters
Run the template
Expected Results
Instance should be created, with all resources.
Actual Results
Rollback initiated due to error in Vault Machine failed to create
error waiting for CloudFormation Stack creation: failed to create CloudFormation stack, rollback requested (ROLLBACK_COMPLETE): ["The following resource(s) failed to create: [VaultMachine]. Rollback requested by user." "API: ec2:RunInstances Not authorized for images: [ami-011a35e97a0110026]"] `
Summary
While running the Template on AWS using CloudFormation. Below error is seen: API: ec2:RunInstances Not authorized for images: [ami-011a35e97a0110026] on us-west-2 (Oregon)
Steps to Reproduce
Expected Results
Instance should be created, with all resources.
Actual Results
Rollback initiated due to error in Vault Machine failed to create
Reproducible
Version/Tag number
Latest from https://github.com/cyberark/pas-on-cloud/blob/master/aws/Full-PAS-Deployment.yaml
Additional Information
` aws:cloudformation:Stack (CyberArk): error: 1 error occurred: