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

Create local AWS setup #1

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Create local AWS setup #1

wants to merge 12 commits into from

Conversation

ebma
Copy link
Member

@ebma ebma commented Jan 6, 2021

Configures localstack as a local AWS stack so that the TSS can be tested offline without having to use the real AWS.

  • Add localstack to docker-compose.yml
  • Add serverless-localstack dependency which makes it easy to reconfigure the serverless-offline setup to use the local AWS stack in development mode
  • Create and change customized lambda and s3 objects that use the local endpoint in the dev environment
  • Add the aws-sdk and a script that initializes the s3 buckets required by the TSS

The secrets (accessKeyId and secretAccessKey) used in the AWS config of the dev environment can be anything, localstack just requires them to exist.

andywer and others added 12 commits December 2, 2020 15:50
There was no way to easily get a working database setup before. Adds docker-compose file (for database and seeder container only, not for actual TSS), migration, seed and some readme notes.
Only gotcha: The URL shown in the terminal still says `https://`. Couldn't find a way to make it print an HTTP URL.
Might be unnecessary but better safe than sorry
@ebma ebma requested a review from andywer January 6, 2021 15:54
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

Successfully merging this pull request may close these issues.

2 participants