aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap

Support "UsePreviousValue" in parameterOverrides / parameters in CodePipeline Action

Open
#1,789 0 comments 2 reactions 0 assignees View on GitHub
Coverage NeedTriage
Dominant language
No language data
Stars
1.1k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

### Name of the resource

AWS::CodePipeline::Pipeline

### Resource name

_No response_

### Description

In other tools/apis it's possible to use the previous value of parameters in CloudFormation templates, e.g.

`aws cloudformation update-stack --stack-name asg-xxx-123 --use-previous-template --parameters ParameterKey=ApplicationName,UsePreviousValue=true`

or in the deploy cli (which is maybe more like the cloudformation codepipeline action) it's handled automatically since this PR: https://github.com/aws/aws-cli/pull/2573

In the api reference of CloudFormation this option is also documented: https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_Parameter.html

Only in the [CodePipeline CloudFormation action](https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CloudFormation.html) there is no way to use the previous value of the parameter. Without this option the current value is overridden at deploy time with the `default` one. Please provide a way to use the the previous value without defining a new value for a parameter.

I still don‘t know if this is a bug or feature request.

Thanks in advance!

### Other Details

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by comparing the CodePipeline CloudFormation action reference with the CloudFormation Parameter API and the aws cloudformation update-stack example linked in the issue. Done means the action provides a documented way to preserve a parameter's previous value without supplying a new value.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.