Infra as Code - Main repository for Smtx's automation scripts.
This environment is only accessible through the bastion instance: bastion
.
Access the Bastion using key using ssh ec2-user@ip -A
- after access bastion you can access ec2 app
git clone https://github.com/mbaetaoliveira/ops.git
git clone https://github.com/mbaetaoliveira/flask.git
Now you have a clone of this repo and may apply environment changes.
You need to have awscli
and terraform
available and pre-configured for the with environment with your permissions.
00-state - create bucket and create file with all informations about terraform(like backup)
01-iam - role used by ec2
02-network - create vpc and subnets public and privates
03-bastion - create server bastion in the public subnet, security group with rules and public IP
04-ecr - repositorie to upload build/image
05-apps - create AutoScaling Group with ec2 in the private subnet, Launch Template, Application LoadBalancer and Userdata.
teste1..teste2