Cloudformation list_exports result is malformed · Issue #3442 · localstack/localstack · GitHub
Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Cloudformation list_exports result is malformed #3442

Description

@apalumbo

Type of request: This is a ...

[X] bug report
[ ] feature request

Detailed description

The return of the endpoint for listExports (cloudformation service) is malformed. The funny thing is that the aws python sdk does not see issues, but the js sdk is not able to parse it.
The example is taken from the aws docs AWS DOCS

At the moment the single export is not wrapped by a member xml element in an Exports element container , but the single export is wrapped in a Exports element

I am about to create a PR to fix the issue, it would be great if you can review it

Expected behavior

<ListExportsResponse xmlns="http://cloudformation.amazonaws.com/doc/2010-05-15/"> <ListExportsResult> <Exports> <member> <Name>mySampleStack1-SecurityGroupID</Name> <ExportingStackId>arn:aws:cloudformation:us-east-1:123456789012:stack/mySampleStack1/12a3b456-0e10-4ce0-9052-5d484a8c4e5b</ExportingStackId> <Value>sg-0a123b45</Value> </member> <member> <Name>mySampleStack1-SubnetID</Name> <ExportingStackId>arn:aws:cloudformation:us-east-1:123456789012:stack/mySampleStack1/12a3b456-0e10-4ce0-9052-5d484a8c4e5b</ExportingStackId> <Value>subnet-0a123b45</Value> </member> <member> <Name>mySampleStack1-VPCID</Name> <ExportingStackId>arn:aws:cloudformation:us-east-1:123456789012:stack/mySampleStack1/12a3b456-0e10-4ce0-9052-5d484a8c4e5b</ExportingStackId> <Value>vpc-0a123b45</Value> </member> <member> <Name>WebSiteURL</Name> <ExportingStackId>arn:aws:cloudformation:us-east-1:123456789012:stack/myS3StaticSite/12a3b456-0e10-4ce0-9052-5d484a8c4e5b</ExportingStackId> <Value>http://testsite.com.s3-website-us-east-1.amazonaws.com</Value> </member> </Exports> </ListExportsResult> <ResponseMetadata> <RequestId>5ccc7dcd-744c-11e5-be70-1b08c228efb3</RequestId> </ResponseMetadata> </ListExportsResponse>

Actual behavior

<ListExportsResponse xmlns="http://cloudformation.amazonaws.com/doc/2010-05-15/"> <ListExportsResult> <Exports> <ExportingStackId>arn:aws:cloudformation:us-east-1:000000000000:stack/CDKToolkit/c70373cc</ExportingStackId> <Name></Name> <Value>cdktoolkit-stagingbucket-5eb65ccc</Value> </Exports> <Exports> <ExportingStackId>arn:aws:cloudformation:us-east-1:000000000000:stack/CDKToolkit/c70373cc</ExportingStackId> <Name></Name> <Value></Value> </Exports> <Exports> <ExportingStackId>arn:aws:cloudformation:us-east-1:000000000000:stack/TestStackXX/d54e8974</ExportingStackId> <Name>shopally-AppTableName</Name> <Value>shopally-ShopifyAppInfo</Value> </Exports> </ListExportsResult> </ListExportsResponse>

Steps to reproduce

just deploy something with an export to see the problem

Command used to start LocalStack

I used the docker image

Client code (AWS SDK code snippet, or sequence of "awslocal" commands)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions