This has some MVP prelim code to launch the infra resources for CAC
This has quick code to launch frontend and backend resources.
TF > 0.12.24
Environments:
staging
production
Components:
backend
- Fargate and other ecs resources for backend apibastion
- Bastion server per env for an ssh tunnelcsv_processor
- A lambda pipeline to watch for files in s3 to process, convert csv into json and insert into APIdatabase
- RDS and related resourcesfrontend
- Cloudfront, S3, all resources to get the frontend runningkms
- KMS resourcesroute53
- All resources to create hosted zones, dns records, etcvpc
- All resources for launching VPC componentswebsite
- All resources for launching website components
Very WIP for MVP launch
Each folder under the terraform
directory is a component consisting of a module and config. To apply the config, run beatcovid19.sh
and supply the component and environment as arguments.
It will init, run a plan, and ask for confirmation. If the plan looks good, you can accept and it will use that exact plan to apply changes.
Ex. To deploy the frontend infra (S3, Cloudfront, etc)
./beatcovid19.sh frontend staging|production
Prerequisites:
- AWS CLI
- Install Session Manager Plugin for the AWS CLI
- Correct IAM permissions for your identity - see here for more information
./scripts/start-tunnel.sh <environment>
Simply execute the SQL in sql/load_postgis_extension.sql
as master user after the database has been created