aws-cloudformation-resource-providers-awsutilities-commandrunner icon indicating copy to clipboard operation
aws-cloudformation-resource-providers-awsutilities-commandrunner copied to clipboard

What is the proper way of updating `Command` section when using SAM

Open tivaliy opened this issue 4 years ago • 3 comments

Hi

i'm using Cloudformation and SAM for deploying project infrastrcuture. While using CommandRunner custom resource I faced with an issue of updating/adding/removing Command section. So it fails to deploy infrastructure with updated Command section with Status reason: The following resource(s) failed to update: [CommandRunner]

The only workaround right now is to comment/uncomment AWSUtility::CloudFormation::CommandRunner in a template every time I need to make a change.

Can you please clarify on the flow I have to follow.

tivaliy avatar Jun 22 '21 11:06 tivaliy

@tivaliy did you find a solution to this? Running into the same issue with AWS SAM

InternetSalmon avatar Nov 08 '21 02:11 InternetSalmon

Hello,

Adding/removing/updating the Command property will cause CommandRunner to re-run the Command. And this will happen before any resources that are referencing CommandRunner.

Do you have the error you received on the CommandRunner resource itself?

shantgup avatar Feb 24 '22 00:02 shantgup

Any updates to this?

thormtl avatar Jan 13 '23 15:01 thormtl