Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws cloudformation update-stack throws "No updates are to be performed" even if there is update #3249

Closed
KarlisJ opened this issue Apr 9, 2018 · 1 comment
Labels
guidance Question that needs advice or information. service-api This issue is due to a problem in a service API, not the SDK implementation.

Comments

@KarlisJ
Copy link

KarlisJ commented Apr 9, 2018

aws cloudformation update-stack --stack-name LP-web-15 --use-previous-template --parameters \
                ParameterKey=ImageVersion,ParameterValue=$CIRCLE_SHA1 \
                ParameterKey=KeyName,UsePreviousValue=true \
                ParameterKey=HealthCheckPath,UsePreviousValue=true \
                ParameterKey=DesiredCount,UsePreviousValue=true \
                ParameterKey=EnvAppKey,UsePreviousValue=true \
                ParameterKey=EnvAwsKey,UsePreviousValue=true \
                ParameterKey=EnvAwsSecret,UsePreviousValue=true \
                ParameterKey=EnvBugsnagAppKey,UsePreviousValue=true \
                ParameterKey=EnvDbPassword,UsePreviousValue=true \
                ParameterKey=EnvDbUsername,UsePreviousValue=true 

where $CIRCLE_SHA1 does return new image id that is previously pushed to ECR. Given commands returns

An error occurred (ValidationError) when calling the UpdateStack operation: No updates are to be performed.

If I update the stack manually then the update is successful.

Inside the stack's template

EcsTd:
    Type: AWS::ECS::TaskDefinition
    DependsOn: LogGroup
    Properties:
      Family: !Sub ${EnvironmentName}-${PlatformName}-${Environment}
      ContainerDefinitions:
      - Name: !Sub ${EnvironmentName}-${PlatformName}-${Environment}
        Image: !Sub ${AWS::AccountId}.dkr.ecr.us-east-1.amazonaws.com/${PlatformName}:${ImageVersion}
...
@stealthycoin
Copy link
Contributor

This would be a service error which doesn't have anything to do with the CLI specifically. I don't know why you are getting that error but I would suggest you contact support they are better equipped to help.

@diehlaws diehlaws added guidance Question that needs advice or information. service-api This issue is due to a problem in a service API, not the SDK implementation. and removed api-question labels Jan 4, 2019
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this issue Feb 12, 2022
* Revert "release: 0.20.0"

* chore: Update version to 0.20.1

* Revert "Revert "release: 0.20.0"" (aws#1377)

This reverts commit 20904315bea1db89362b59550e03ab8460a7d73d.

* Add CFN stack sets to supported resources

Adds the ability to upload CloudFormation StackSet `TemplateURL` files

Co-authored-by: Sanath Kumar Ramesh <[email protected]>
Co-authored-by: Jacob Fuss <[email protected]>
Co-authored-by: Sriram Madapusi Vasudevan <[email protected]>
Co-authored-by: Alex Wood <[email protected]>
Co-authored-by: Tarun <[email protected]>
Co-authored-by: Sriram Madapusi Vasudevan <[email protected]>
Co-authored-by: aws-sam-cli-bot <[email protected]>
Co-authored-by: _sam <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guidance Question that needs advice or information. service-api This issue is due to a problem in a service API, not the SDK implementation.
Projects
None yet
Development

No branches or pull requests

3 participants