Skip to content

ashraf-minhaj/AWS-IaCs-with-Terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IACs with Terraform (AWS Terraform Templates)

Testing and learning Terraform Infrastructure As Code with AWS services


     


Making aws infrastructures with Terraform:

  • create s3 bucket (tested)
  • python file -> zip -> up to s3 -> create a lambda function
  • AWS API Gateway Rest API with Lambda
  • Dynamodb scan, perform query using Python Lambda
  • Dynamodb PutItem using Python Lambda
  • Dynamodb data manipulation with Python
  • lambda create ec2 instance
  • lambda start ec2 instance
  • ec2 provision local files
  • read, delete sqs message
  • step function with lambda
  • Packer - create AMI
  • lambda launch ec2
  • step function state machine with lambdas
  • s3 and event-bridge
  • terraform read environment variables
  • Classic Load Balancer with Autoscale
  • Application Load Balancer
  • Terraform and docker ec2
  • ECR ECS DOCKER FARGATE
  • Provision and Run Docker Compose on ec2

and so on.... This is an incremental process of making things from the beginning. Learn while making! The codes are tested by me. But I can not assure that they will run on your world/devices. I wish we lived in a perfect world!

To run -

$ terraform init

$ terraform plan

$ terraform apply

If you wish to delete infrastructures after playing:

$ terraform destroy

Ashraf Minhaj
Find me on LinkedIn Ashraf-Minhaj