aws-cloudformation / aws-cloudformation-resource-providers-awsutilities-commandrunner

Apache License 2.0
81 stars 21 forks source link

Issue with S3 copy #27

Closed krisrajzlive closed 2 years ago

krisrajzlive commented 3 years ago

I am trying to run the code snippet below: "RunCommandTitle": { "Type": "AWSUtility::CloudFormation::CommandRunner", "DependsOn" : "S3Bucket", "Properties": { "Command": "aws s3 cp ../LambdaHandler/anomaly_detection.zip s3://krisrajztest/anomaly_detection.zip", "Role": "EC2ServerFullAccess" } }

And getting the error message: You do not have permissions to make the TerminateInstances API call. Please try again with the necessary permissions.

Can someone help please?

Thanks

maslick commented 3 years ago

Same issue here...

maslick commented 2 years ago

see issue #24 and a possible remedy #30

shantgup commented 2 years ago

Hello,

This is a check in CommandRunner to ensure that instances created can be terminate before they are created. If permissions to terminate instances are not present, every time CommandRunner is created/updated there will be a new EC2 instance that will be billed and will not be terminated unless manually terminated by the user.

We are working on a new major version of CommandRunner, however we will not be removing this check. Instead please ensure that the TerminateInstances API call can be performed.