Aws-sam-cli: Support --endpoint-url option

Created on 23 May 2019  路  2Comments  路  Source: aws/aws-sam-cli

Describe your idea/feature/enhancement

I wish SAM CLI would support --endpoint-url just like AWS CLI does.

Here is the error I got when I tried to use --endpoint-url:

sam publish -t .aws-sam/packaged-template.yml --region us-east-1 --endpoint-url https://serverlessrepo.us-east-1.amazonaws.com
Error: no such option: --endpoint-url

Proposal

I think this option is probably not for every command under CLI but I think for the following command it makes sense:

sam package  # Customers can use --endpoint-url for customized S3 endpoints
sam deploy # Customers can use --endpoint-url for customized CloudFormation endpoints
sam publish # Customers can use --endpoint-url for customized Serverless repo endpoints

All 2 comments

this is currently coupled to s3, cloudformation and serverless repo endpoints. doesn't region already allow this?

@honglu I understand why you want this, but I don't see how SAM CLI customers at large will want this. I am not inclined to supporting this as a CLI argument which adds cognitive load when a customer reads the help text to learn about the command.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chrisfosterelli picture chrisfosterelli  路  31Comments

ztolley picture ztolley  路  28Comments

nicosuave picture nicosuave  路  44Comments

terrywarwar picture terrywarwar  路  26Comments

0xdevalias picture 0xdevalias  路  27Comments