y0zg / bootcamp-infrastructure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Infrastructure

Repository holding code to provision all infrastructure components needed, namely

  • VPC
  • DNS
  • ALB
  • ECR
  • Jenkins
  • Environment (ECS Cluster)
  • Test ECS Service (Nginx as test service)

Infra Diagram

Pre-requisites

Before provisioning any code with terraform,

  • Configure AWS credentials
  • Create a S3 bucket & enable bucket versioning
$ aws s3 mb s3://bootcamp-2021-tf-state --region us-east-1
$ aws s3api put-bucket-versioning --bucket bootcamp-2021-tf-state --versioning-configuration Status=Enabled --region us-east-1
  • Create a table in DynamoDB using script
$ aws dynamodb create-table --table-name bootcamp-2021-tf-lock-table \
    --attribute-definitions AttributeName=LockID,AttributeType=S --key-schema AttributeName=LockID,KeyType=HASH \
    --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 --region us-east-1

Provisioning infrastructure

About


Languages

Language:HCL 93.6%Language:Shell 5.1%Language:Smarty 1.3%