Skip to content

Stack createion fails when using --parameters-override #122

@ghost

Description

When using the cloudformation deploy command with --parameter-overrides, stack creation fails with the following message -

An error occurred (ValidationError) when calling the CreateChangeSet operation: Cannot specify UsePreviousValue on Parameters when ChangeSetType is CREATE

I'm using the following command -

aws cloudformation deploy \
    --template-file template.yaml \
    --stack-name "TestStack" \
    --region eu-west-1 \
    --parameter-overrides \
        Environment="BVT"
        S3BucketName="bvt-dump-payload-test-eu-west-1"

My template contains the following Parameters definition -

Parameters:
  Environment:
    Type: String
    Description: The environment that is being deployed to, such as BVT, UAT, etc.
  S3BucketName:
    Type: String
    Description: The S3 Bucket to which the Lambda Function will output payloads.

I had found an issue on here suggesting tha tyou needed to declare a default value in the template, but that also produces the above error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions