AWS Project (Terraform + Python Deployment On AWS Hands
AWS Project (Terraform + Python Deployment On AWS Hands
l
https://github.com/praveen1994dec/Terrafor
lo
m_withcontainers.git
x.
Step2 - Create a repo in aws ECR with name
- > django-app
le
ip
.a
w
x.
le
ip
.a
l
lo
Step8 - Push the image to ECR
x.
docker push <URL ECR REPO URL>:latest
le
Step9 - Go to terraform folder and hit this
ip
below command to create the key pair
.a
ssh-keygen -f california-region-key-pair
variable.tf
w
w
l
terraform apply "terraform.out"
lo
Step12 - Install Python BOTO3
pip install boto3 click
x.
Step13 - Export the AWS access/Secret key and
region le
export AWS_ACCESS_KEY_ID=""
ip
export AWS_SECRET_ACCESS_KEY=""
export AWS_DEFAULT_REGION="us-west-1"
.a
--service=production-service
<DNS_NAME>/ping/
l
lo
Step17 - Hit the command and delete the
architecture
x.
terraform destroy
le
ip
.a
w
w
w