- Notifications
You must be signed in to change notification settings - Fork0
Automate provision of cloud infrastructure and application deployment.
hanchiang/market-data-notification-infra
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This project is the infrastructure as code management forMarket data notification using AWS.
images/
: Packer files for building AMIimage.pkr.hcl
: Main packer scriptscripts/
: Scripts to be run when provisioning AMI
instances/
: Terraform files to provision EC2 in VPCmain.tf
: Main terraform scriptansible/
: Ansible scripts to run post-provisioning tasks such as mounting EBS volume, set up file system, copy postgres data, setup SSL for nginxscripts/
: Scripts to automate(everything after step 2 of the workflow) start and stop of EC2, DNS, and deployment ofMarket data notification. Calls ansible scripts
Provisions a EBS-backed EC2 AMI, and install the necessary softwares forMarket data notification:
- redis
- docker
- nginx
cd intoimages/
Define variables that are declared inimage.pkr.hcl
in a new filevariables.auto.pkrvars.hcl
Build image:packer build -machine-readable -var-file variables.auto.pkrvars.hcl image.pkr.hcl | tee build.log
cd intoinstances/
Copy the AMI ID from packer build, update it invariables.tf
Provision infra:terraform apply
Everything from here onwards is handled ininstances/scripts/start.sh
Run post-provisioning configurations such as setting up DNS, configuring nginx SSL
Rerun the latest deploy job in github action
About
Automate provision of cloud infrastructure and application deployment.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.