question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support custom endpoint URLs for AWS provider

See original GitHub issue

This 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:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
temyerscommented, May 28, 2017

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.

2reactions
gertjvrcommented, May 28, 2017

https://github.com/serverless-community-labs/serverless-plugin-simulate supports localstack with a docker-compose file.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found