Skip to content

Describing ChangeSet with '--output text' flag returns invalid result #10061

@kevingunn-wk

Description

@kevingunn-wk

Describe the bug

When trying to describe a change set to get a specific value, such as the ChangeSetId, if using the --output text flag, this results in an invalid response. It will include both the ARN for the changeset, but also add 'None' in a new line. It's as if it is pulling from a second field or trying to return two values.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

The output, in this case, should just return the ARN for the changeset as a single string:

$ aws cloudformation describe-change-set --stack-name my-cfn-stack --change-set-name 'change-set-1' --query 'ChangeSetId' --output text
arn:aws:cloudformation:us-east-1:00000000000:changeSet/change-set-1/11111111111111111111111111

Current Behavior

Instead of just getting the field back in the --query (ChangeSetId in this case), we are getting two responses back when using --output text.

$ aws cloudformation describe-change-set --stack-name my-cfn-stack --change-set-name 'change-set-1' --query 'ChangeSetId'
"arn:aws:cloudformation:us-east-1:00000000000:changeSet/change-set-1/11111111111111111111111111"

$ aws cloudformation describe-change-set --stack-name my-cfn-stack --change-set-name 'change-set-1' --query 'ChangeSetId' --output text
arn:aws:cloudformation:us-east-1:00000000000:changeSet/change-set-1/11111111111111111111111111
None

Reproduction Steps

Create a Change Set
Use the CLI to describe changeset and query for a specific key
Repeat, but add --output text and observe 'None' is returned with the expected value.

Possible Solution

No response

Additional Information/Context

I've tested this and observed the behavior on my machine (macOS) and we have observed the same behavior in GitHub actions (AmazonLinux 2023 private hosted runner).

Also happens in version:
aws-cli/2.32.30 Python/3.13.11 Darwin/25.2.0 source/x86_64

CLI version used

aws-cli/2.33.16 Python/3.13.12 Darwin/25.2.0 source/x86_64

Environment details (OS name and version, etc.)

MacOS 26.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.cloudformationinvestigatingThis issue is being investigated and/or work is in progress to resolve the issue.p2This is a standard priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions