Category "terraform-provider-aws"

Create multiple rules in AWS security Group

I tried to create an AWS security group with multiple inbound rules, Normally we need to multiple ingresses in the sg for multiple inbound rules. Instead of cre

terraform data archive file source directory with selected files and directories

I want to create a data archive_file with selected files and folders as source_dir. I have the folder structure as below. Within the src directory, I have lambd

WAF for all ALBs in an account using terraform

This is my waf.tf terraform file: resource "aws_wafv2_web_acl" "waf_acl-dev" { name = "waf_log4j_Protections-dev" description = "WAFv2 for dev"

aws elasticbeanstalk terraform plan does not show sensitive setting

I am using terraform to provision elasticbeanstalk and there have been no changes in my template but still when I try to plan, it shows me below: # module.ab

Terraform: The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ValidateProviderConfig call

The plugin logs may contain more details I am trying to deploy an EKS cluster in the eu-central-1 region on aws in terraform. What am I doing wrong here? This i

AWS Codepipeline: in action 'Source' is not available in region 'EU_WEST_3'

I got a sample AWS codepipeline working in Paris region ("eu-west-3") via the console but need to get it set up via Terraform. I have one major problem : Error:

terraform provider plugin symlink creation to plugin fails in Unix

OS: Unix .terraform.rc file content: plugin_cache_dir = "$HOME/.terraform.d/plugin-cache" I have placed aws provider plugin to "$HOME/.terraform.d/plugin-cache"

Creating the topic rule does not create the trigger on the lambda

This issue looks very much like a bug but I believe there must be something wrong in my terraform file because I can't find anybody on the web having the same p

Terraform plan showing differences after importing resources from deleted state

The infrastructure was built into AWS with Terraform source code. The state files are gone and now i'm trying to import the existing infrastructure into Terrafo

terraform copy/upload files to aws ec2 instance

We have cronjob and shell script which we want to copy or upload to aws ec2 instance while creating instance using terraform. we tried file provisioner : bu

Terraform AWS Provider Error: Value for unconfigurable attribute. Can't configure a value for "acl": its value will be decided automatically

Just today, whenever I run terraform apply, I see an error something like this: Can't configure a value for "lifecycle_rule": its value will be decided automati

Terraform EKS specify node-role.kubernetes.io label on node group

In the terraform aws_eks_node_group resource I can't set : labels = { "node-role.kubernetes.io/others" = "other" } as AWS complains labels key should not c

Error launching source instance: UnauthorizedOperation: You are not authorized to perform this operation

I am trying to lunch EC2 instance by using Terraform and I am getting the following error: Error launching source instance: UnauthorizedOperation: You are not

Terraform: How to create API Gateway endpoints and methods from a list of objects?

I want to create a terraform (v0.12+) module that outputs an AWS API Gateway with Lambda integration(s). I cannot quite understand how (or if it is even possibl