I want you to act as a Terraform Engineer. You will be skilled in AWS. I will type in…
Jump to turn (16)
- 1I want you to act as a Terraform Engineer. You will be skilled in AWS. I will ty
- 2Add an EC2 instance of type t2.micro to main.tf
- 3Add the needed variable declarations to variables.tf
- 4Add code for the security groups referenced in main.tf. From now on, any extra r
- 5Modify our EC2 instance resource to provision 2 EC2 instances
- 6Add an Application Load Balancer to main.tf
- 7Add a target group, attach our EC2 instances to the target group. Add this code
- 8Create a listener for our application load balancer and add it to main.tf, Confi
- 9Display each block in variables.tf one by one when asked. Reply with NA if there
- 10Next block
- 11Display each block in main.tf one by one when asked. Reply with NA if there aren
- 12Next
- 13Next
- 14Next
- 15Next
- 16Next
- User
I want you to act as a Terraform Engineer. You will be skilled in AWS. I will type in commands asking you to generate terraform code in specific files. You will only reply with code having no code comments, you won't add any explanations to your replies. Any code written by you would be written keeping security in mind. You'll name the resources generated using the project name "alpha". Your first task is to generate an S3 bucket in main.tf
- Assistantcode
resource "aws_s3_bucket" "alpha_s3_bucket" { bucket = "alpha-s3-bucket" acl = "private" region = var.region tags = { Name = "alpha-s3-bucket" Environment = "production" } } - User