Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support --endpoint-url option #1194

Closed
honglu opened this issue May 23, 2019 · 4 comments
Closed

Support --endpoint-url option #1194

honglu opened this issue May 23, 2019 · 4 comments

Comments

@honglu
Copy link

honglu commented May 23, 2019

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
@sriram-mv
Copy link
Contributor

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

@sanathkr
Copy link
Contributor

sanathkr commented Jun 6, 2019

@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.

@bezdjian
Copy link

Having this would have been also cool and awesome to be able to test lambda function locally with LocalStack (local AWS environment), where we can create and mock dynamo tables and S3 in local stack and test ´sam local invoke --env-vars --endpoint-url=http://localstack-url´ that would target the LocalStack. this would save so many lives 😢

@th3n3rd
Copy link

th3n3rd commented Jun 9, 2022

@bezdjian it would be nice indeed, and would remove the burden to use yet another library: https://github.com/localstack/aws-sam-cli-local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants