Continuation to the previous article I’m going to demonstrate how to create AWS EC2, ALB. Backend.tf Providers.tf variables.tf datasources.tf vpc.tf publicsubnets.tf privatesubnets.tf create iam roles , polcies for ec2 instance ec2_assume_role.json ec2-policy.json (This policy grants s3 list put and get, ec2 full access ) create s3 bucket ec2-sg.tf ec2.tf The above script creates ec2 instanceContinue reading “Configure EC2, ALB using terraform”
Category Archives: terraform
How to configure VPC, Network, Internet gateway, NAT Gateway using terraform
Continuation to the previous article, I’m going to demonstrate how to configure vpc, public subnet, internet gateway, private subnet, NAT Gateway. I’ve modified the scripts to simplify and easy to manage. Backend.tf I’ve added dynamodb for locking the terraform state. Locking helps make sure that only one team member runs terraform configuration. Providers.tf variables.tf Datasource.tfContinue reading “How to configure VPC, Network, Internet gateway, NAT Gateway using terraform”
How to configure VPC, Network, Internet gateway using terraform
Continuing to previous airtcle , let us setup network using terraform. To begin with, let us create terraform variables, providers I’ve created profile and region as two variables that I will be referring in the terraform resources. variable.tf provider.tf Let’s run terraform init Now you can see that aws provider has been created. You canContinue reading “How to configure VPC, Network, Internet gateway using terraform”
How to configure terraform state file as Amazon S3
In this blog post, I would like to present how to create terraform state file as s3. I will be writing series of blog posts about terraform, ansible automation, How to use AWS CDK to automate infrastructure. To begin with, Let us start about how to configure terraform state file as Amazon S3. Before youContinue reading “How to configure terraform state file as Amazon S3”