Tom Barden
Tom Barden

Reputation: 346

CloudFormation create change set fails with 'Template parameters modified by transform'

I'm trying to create a change set for my stack, but it keeps failing with status reason Template parameters modified by transform.

I have a CodeBuild project which runs the below and then passes the template on if it's valid:

aws cloudformation validate-template --template-body file://<TEMPLATE_FILE>

I am using the CodeDeployBlueGreen transform to allow Blue/Green deployments with ECS, as per this documentation.

Transform:
  - 'AWS::CodeDeployBlueGreen'

My template does not contain any input parameters, and I removed any references to resolve::ssm....

I'm at a bit of a loss as to what's causing this issue, and I cannot find any documentation which points me in the right direction.

The template is as follows:

Template removed after answer posted for security.

Upvotes: 3

Views: 1614

Answers (2)

Tom Barden
Tom Barden

Reputation: 346

I hope this saves someone some headaches one day.

This is currently a known issue with CloudFormation in which you need to provide the VPC and Subnets as parameters to the stack when using AWS::CodeDeployBlueGreen Transform.

Parameters:
  VPC:
    Type: AWS::EC2::VPC::Id
  Subnet1:
    Type: AWS::EC2::Subnet::Id
  Subnet2:
    Type: AWS::EC2::Subnet::Id

Upvotes: 1

Pat Myron
Pat Myron

Reputation: 4648

Probably unrelated, but CloudFormation Linter in VSCode calls out a missing required property:

Visual Studio Code screenshot

[cfn-lint] E3003: Property GroupDescription missing at Resources/NeptuneSG/Properties

AWS::EC2::SecurityGroup.GroupDescription

Upvotes: 0

Related Questions