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