Top "Terraform-provider-aws" questions

Terraform Provider for AWS.

AWS CodeBuild error on DOWNLOAD_SOURCE: CLIENT_ERROR: repository not found for primary source and source version

I'm trying to create a CodeBuild project using Terraform, but when I build I'm getting the following error on the …

terraform aws-codebuild terraform-provider-aws
How do I add a lambda environmental variable with terraform?

I want my lambda to call APIs, and that requires an API token. I want to place the API token …

aws-lambda terraform terraform-provider-aws
Terraform error - Error: Argument or block definition required

My terraform code is as below: terraform { backend "remote" { hostname = "hostname.com" organization = "companyname" workspaces { name = "GIT-TIO-DEV" } } } provider "aws" { region = "…

terraform-provider-aws terraform0.12+
How to use the VPC id and subnets id values which were created from one Terraform plan to in another Terraform plan

I have created the VPC, subnets and security groups in one Terraform plan (let's call this Plan A). It executed …

amazon-web-services terraform terraform-provider-aws
Commands in user_data are not executed in terraform

Hi EC2 instance is created, but commands as part of userdata.sh are not gettingexecuted. When I manually connect to …

terraform terraform-provider-aws terraform-template-file
Terraform - Resource not found for variable despite having it declared in the same file

Terraform can't find a resource which is declared in the same file where the reference is. It seems that this …

amazon-web-services terraform devops-services terraform-provider-aws hcl
Build output map in terraform

I have a list of users to create, a list of sns topics and to create policies to give permissions …

terraform terraform-provider-aws
Relative paths in Terraform

I am trying to create an AWS lambda Function using terraform. My terraform directory looks like terraform iam-policies main.tf …

amazon-web-services aws-lambda terraform terraform-provider-aws
Terraform: How to associate multiple subnet to route table?

I'm using terraform v.0.11.7. I wants to create 4 subnets (2 public subnets, 2 private subnets) Here's a content of vars.tf variable "…

terraform terraform-provider-aws
How to get Subnet list from VPC with terraform

I've tried to get all subnet ids to add aws batch with terraform with following code: data "aws_subnet_ids" "…

terraform terraform-provider-aws aws-batch