Skip to content

cloudformation deploy: Use template parameter default value only on stack creation - #2567

Closed
sanathkr wants to merge 9 commits into
aws:developfrom
sanathkr:develop
Closed

cloudformation deploy: Use template parameter default value only on stack creation#2567
sanathkr wants to merge 9 commits into
aws:developfrom
sanathkr:develop

Conversation

@sanathkr

Copy link
Copy Markdown
Contributor

Fixes #2460

There are four state combinations:
YES Override + YES Stack: Use overriden value
YES Override + NO Stack: Use overriden value

NO Override + YES Stack: Set UsePreviousValue to True
  ^^ This commit fixes this case. Earlier we were letting CloudFormation pickup default value from template

NO Override + NO Stack: Skip parameter to force CloudFormation to use template default value. UsePreviousValue=True will fail here because stack does not have any previous state.

…tion

There are four state combinations:
YES Override + YES Stack: Use overriden value
YES Override + NO Stack: Use overriden value

NO Override + YES Stack: Set UsePreviousValue to True
  ^^ This commit fixes this case. Earlier we were letting CloudFormation pickup default value from template

NO Override + NO Stack: Skip parameter to force CloudFormation to use template default value. UsePreviousValue=True will fail here because stack does not have any previous state.
@sanathkr

Copy link
Copy Markdown
Contributor Author

Build is failing for python2.6 on an unrelated test: tests.functional.rds.test_generate_db_auth_token.TestGenerateDBAuthToken). Not sure what is happening. Can someone help?

@kyleknap

Copy link
Copy Markdown
Contributor

@sanathkr could you rebase off of develop? We fixed the test in this PR: #2569 which is now merged.

awstools and others added 6 commits April 27, 2017 09:27
It is now being used by more than just s3, therefore this moves
it up to the customizations directory.
This injects a scheme into some compared urls as urlsplit will fail
to properly split if the scheme is absent in some versions.
@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #2567 into develop will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2567      +/-   ##
===========================================
- Coverage    95.57%   95.57%   -0.01%     
===========================================
  Files          151      151              
  Lines        11782    11781       -1     
===========================================
- Hits         11261    11260       -1     
  Misses         521      521
Impacted Files Coverage Δ
awscli/customizations/cloudformation/deploy.py 100% <ø> (ø) ⬆️
awscli/customizations/cloudformation/deployer.py 96% <100%> (+0.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 833716e...9a390e8. Read the comment docs.

@dstufft

dstufft commented Apr 27, 2017

Copy link
Copy Markdown
Contributor

It looks like this didn't get rebased cleanly?

@stealthycoin

Copy link
Copy Markdown
Contributor

Yea its got all the rds customizations in there.

@sanathkr

Copy link
Copy Markdown
Contributor Author

Rebased again and pushed in a new branch at #2573

@sanathkr sanathkr closed this Apr 28, 2017
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this pull request Feb 12, 2022
* Bumped aws-sam-translator to 1.27.0

* Bumped SAM CLI Version to 1.3.0

* Updated Reproducible Requirements

* Added Close to Packaged File

* Removed Debug Prints

* Removed Debug Vars

* Removed Another Debug Print

* Formatting

Co-authored-by: Wilton Wang <weichw@dev-dsk-weichw-2c-871e54ff.us-west-2.amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aws cloudformation deploy not maintain stack parameters

7 participants