Support custom endpoint URLs for AWS provider
See original GitHub issueThis is a Feature Proposal
Description
The AWS CLI supports using --endpoint-url
when issuing commands. This feature is useful for overriding the defaults, for example in conjunction with atlassian/localstack for local development.
This would provide additional support for integration testing on a local machine.
For example, if a function receives an SNS event X, performs some processing, and publishes a new SNS event Y, unit testing can test the processing code. However a higher level BDD scenario is not supported:
Scenario: event X
When event X is sent
Then event Y should be created
Similar or dependent issues: This is similar to the Serverless Offline Plugin, but would provide a language agnostic solution.
Additional Data
To run against a custom endpoint you could use:
serverless deploy --endpoint-json file://local-endpoint.json
Where local-endpoint.json
contains:
{
"awslambda": "http://localhost:4574",
"cloudformation": "http://localhost:4581",
"dynamodb": "http://localhost:4569",
"kinesis": "http://localhost:4568",
"redshift": "http://localhost:4577",
"route53": "http://localhost:4580",
"s3": "http://localhost:4572",
"ses": "http://localhost:4579",
"sns": "http://localhost:4575",
"sqs": "http://localhost:4576"
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:14 (10 by maintainers)
Top Results From Across the Web
Custom Service Endpoint Configuration - aws
The Terraform AWS Provider configuration can be customized to connect to non-default AWS service endpoints and AWS compatible solutions.
Read more >Creating a custom endpoint for Amazon OpenSearch Service
From the OpenSearch Service console, choose Create domain and provide a name for the domain. Under Custom endpoint, select Enable custom endpoint.
Read more >AWS service endpoints - AWS General Reference
An endpoint is the URL of the entry point for an AWS web service. The AWS SDKs and the AWS Command Line Interface...
Read more >Configure an endpoint service - Amazon Virtual Private Cloud
In the navigation pane, choose Endpoint services. · Select the endpoint service. · From the Endpoint connections tab, select the endpoint connection. ·...
Read more >Specifying Custom Endpoints - AWS SDK for JavaScript
// Create MediaConvert service object using custom endpoint var mcClient = new AWS.MediaConvert({endpoint: 'https://abcd1234.mediaconvert.us-west-1.amazonaws.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve done an initial push to: https://github.com/temyers/serverless-localstack
This is still very much a WIP, and the example isn’t fully working yet.
But I wanted to push to give early visibility.
https://github.com/serverless-community-labs/serverless-plugin-simulate supports localstack with a docker-compose file.