Add terraform/development for retrieving credentials for local development use

This commit is contained in:
Ryan Ahearn
2023-03-13 12:58:50 -04:00
parent 886db509a0
commit 627149402c
6 changed files with 238 additions and 36 deletions

View File

@@ -1,14 +1,14 @@
# STEPS TO SET UP
#
# 1. Pull down AWS creds from cloud.gov using `cf env`, then update AWS section
# 1. Copy this file to `.env`
#
# 2. Update NEW_RELIC_LICENSE_KEY
# 2. Update NEW_RELIC_LICENSE_KEY, if you are testing new relic integrations in development
#
# 3. Uncomment either the Docker setup or the direct setup
#
# 4. Comment out the other setup
#
# 5. If needed, set `NOTIFY_EMAIL_DOMAIN` with the domain your emails will come from (i.e. the "origination email" in your SES project)
# 5. Run `cd terraform/development; ./run.sh` to include service credentials in `.env`
#
# ## REBUILD THE DEVCONTAINER WHEN YOU MODIFY .ENV ###
@@ -16,26 +16,23 @@
#############################################################
# AWS
AWS_ACCESS_KEY_ID="don't write secrets to the sample file"
AWS_SECRET_ACCESS_KEY="don't write secrets to the sample file"
AWS_REGION=us-west-2
AWS_US_TOLL_FREE_NUMBER=+18446120782
AWS_US_TOLL_FREE_NUMBER=+18556438890
#############################################################
# Local Docker setup, all overwritten in cloud.gov
ADMIN_BASE_URL=http://admin:6012
API_HOST_NAME=http://dev:6011
REDIS_URL=redis://redis:6380
DATABASE_URL=postgresql://postgres:chummy@db:5432/notification_api
SQLALCHEMY_DATABASE_TEST_URI=postgresql://postgres:chummy@db:5432/test_notification_api
# ADMIN_BASE_URL=http://admin:6012
# API_HOST_NAME=http://dev:6011
# REDIS_URL=redis://redis:6380
# DATABASE_URL=postgresql://postgres:chummy@db:5432/notification_api
# SQLALCHEMY_DATABASE_TEST_URI=postgresql://postgres:chummy@db:5432/test_notification_api
# Local direct setup, all overwritten in cloud.gov
# ADMIN_BASE_URL=http://localhost:6012
# API_HOST_NAME=http://localhost:6011
# REDIS_URL=redis://localhost:6379
# DATABASE_URL=postgresql://localhost:5432/notification_api
# SQLALCHEMY_DATABASE_TEST_URI=postgresql://localhost:5432/test_notification_api
ADMIN_BASE_URL=http://localhost:6012
API_HOST_NAME=http://localhost:6011
REDIS_URL=redis://localhost:6379
DATABASE_URL=postgresql://localhost:5432/notification_api
SQLALCHEMY_DATABASE_TEST_URI=postgresql://localhost:5432/test_notification_api
#############################################################
@@ -47,7 +44,6 @@ NOTIFY_ENVIRONMENT=development
STATSD_HOST=localhost
SES_STUB_URL=None
NOTIFY_APP_NAME=api
# NOTIFY_EMAIL_DOMAIN=notify.sandbox.10x.gsa.gov
#############################################################