Aws-cli: Support `--s3-endpoint-url` argument to `cloudformation package`

Created on 3 Dec 2019  路  3Comments  路  Source: aws/aws-cli

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 https://github.com/aws/aws-cli/pull/3309 PR, but it was not checked for a year.
See also https://github.com/localstack/localstack/issues/1783

cloudformation packagdeploy customization feature-request

Most helpful comment

Thanks @joguSD , looks like we currently already have a significant number of thumbs ups (41 at this point). What is the threshold for getting this issue prioritized in one of the upcoming releases?

In general, this is currently blocking a fairly large user base of LocalStack users from upgrading their AWS CLI to the latest version. Would be great to see this getting picked up.

There's already an open pull request for this issue - perhaps we can take this as a starting point? https://github.com/aws/aws-cli/pull/3309

Thanks a lot!

All 3 comments

Marking this as a feature request. If you'd like to see this feature please thumbs up the opening comment so this request can be appropriately prioritized.

Thanks @joguSD , looks like we currently already have a significant number of thumbs ups (41 at this point). What is the threshold for getting this issue prioritized in one of the upcoming releases?

In general, this is currently blocking a fairly large user base of LocalStack users from upgrading their AWS CLI to the latest version. Would be great to see this getting picked up.

There's already an open pull request for this issue - perhaps we can take this as a starting point? https://github.com/aws/aws-cli/pull/3309

Thanks a lot!

FYI - we integrated this change directly into the awslocal command line for now, as a temporary workaround until this PR is merged: https://github.com/aws/aws-cli/pull/3309 Thanks

Was this page helpful?
0 / 5 - 0 ratings