Skip to content

Support --s3-endpoint-url argument to cloudformation package #4727

@miron4dev

Description

@miron4dev

I would like to deploy a SAM application to localstack.
I execute the command

aws cloudformation package \ --output-template-file packaged.yml \ --endpoint-url http://localhost:4581 \ --profile localstack \ --s3-bucket my-bucket \ --template-file template.yaml 

but get

Unable to upload artifact XXX referenced by CodeUri parameter of XXX resource.
An error occurred (InvalidAccessKeyId) when calling the PutObject operation: The AWS Access Key Id you provided does not exist in our records.

because it requests real S3 instead of using the local one.

I need an additional option like --s3-endpoint-url to solve this issue.

There is #3309 PR, but it was not checked for a year.
See also localstack/localstack#1783

Metadata

Metadata

Assignees

No one assigned

    Labels

    cloudformation package-deploycustomizationIssues related to CLI customizations (located in /awscli/customizations)feature-requestA feature should be added or improved.has-prThis issue has a PR associated with it.needs-reviewThis issue or pull request needs review from a core team member.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