Questions tagged [terraform-aws-modules]

55 questions
29
votes
5 answers

How to make Terraform to read AWS Credentials file?

I am trying to create an AWS S3 bucket using terraform and this is my code: provider "aws" { profile = "default" region = "ap-south-1" } resource "aws_s3_bucket" "first_tf" { bucket = "svk-pl-2909202022" acl = "private" } I have…
8
votes
1 answer

Terraform Plan "Known after Apply" - How to know if my interpolation has succeeded?

Here is an excerpt of my successful terraform plan ~ primary_network_interface_id = "eni-XXXXXXXXXXXXX -> (known after apply) ~ private_dns = "shshshshshshshshhs" -> (known after apply) ~ private_ip =…
ha9u63a7
  • 6,233
  • 16
  • 73
  • 108
6
votes
1 answer

Tagging autoscaling groups created by EKS

I created an AWS EKS Cluster with the terraform-aws-eks module. Terraform version is 1.0.6, aws provider version is 3.60.0. With these versions i should be able to use aws_autoscaling_group_tag resource to tag the ASGs which are created by EKS. My…
3
votes
4 answers

transport: Error while dialing dial tcp xx.xx.xx.xx15012: i/o timeout with AWS-EKS + Terraform + Istio

I setup a (what I think) is a bog standard EKS cluster using terraform-aws-eks like so: module "eks" { source = "terraform-aws-modules/eks/aws" version = "~> 18.0" cluster_name = "my-test-cluster" cluster_version = "1.21" …
3
votes
1 answer

How to import AWS Aurora cluster including instances in to terraform

I need to import the existing Aurora cluster in to terraform. I tried terraform import aws_rds_cluster.sample_cluster cluster statement. I got the state file ready also I could also do Terraform show However, When I try to destroy the cluster…
3
votes
0 answers

Terraform ignore_changes for CodeDeployProvisioningDeploymentId tag

I'm using Terraform v0.12.25 with provider.aws v2.70.0. I have ASG resource defined in Terraform: resource "aws_autoscaling_group" "web" { name = "CodeDeploy_production_web" max_size = 40 min_size …
2
votes
2 answers

terraform ecs/CreateCapacityProvider request 500

I am getting the following error while trying to create an ECS cluster, at the capacity provider creation phase. 2022-01-05T09:15:20.480-0800 [INFO] plugin.terraform-provider-aws_v3.70.0_x5: 2022/01/05 09:15:20 [DEBUG] [aws-sdk-go] DEBUG: Request…
Behlül
  • 3,412
  • 2
  • 29
  • 46
2
votes
2 answers

AWS EKS cluster setup via Terraform inaccessible from bastion

Background and Context I am working on a Terraform project that has an end goal of an EKS cluster with the following properties: Private to the outside internet Accessible via a bastion host Uses worker groups Resources (deployments, cron jobs,…
2
votes
1 answer

MalformedPolicyDocument: Policy document should not specify a principal

I am trying to create a state function with terraform. First I create a policy and assign it to an existing role processing_lambda_role. resource "aws_iam_role_policy" "sfn_policy" { policy = jsonencode( { "Version": "2012-10-17", "Statement":…
2
votes
1 answer

How to pass several aws providers to one module?

I have a module that combines two resources, an rds instance and a secret that each need their own provider. . ├── environments │ └── myenv │ ├── locals.tf │ ├── main.tf │ └── variables.tf └── modules └── db ├──…
peer
  • 4,171
  • 8
  • 42
  • 73
2
votes
2 answers

Create aws_transfer_ssh_key from a map of user to SSH keys

I'm trying to create a transfer key from a map users to SSH keys content_users = { "master" = [ "ssh-rsa ...", "ssh-rsa ...", "ssh-rsa ...", ] "test" = [ "ssh-rsa ...", "ssh-rsa ...", ] } The aws_transfer_user part is…
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
2
votes
1 answer

How to run multipul modules in same file in terraform?

I using https://github.com/cloudposse/terraform-aws-acm-request-certificate to generate certificate using terraform and aws. How to run multipul domains in the same file in terraform? (not subdomain) I try this but I have error Error: Duplicate…
Jon Sud
  • 10,211
  • 17
  • 76
  • 174
2
votes
1 answer

Is it possible to create an RDS instance in different Region using Terraform (using snapshot of original DB)

I have my production site in us-east-1 region whereas the DR site in us-east-2 region. We are using terraform to configure the environment but now stuck at the DB part. We want to copy the snapshots of our DB from us-east-1 region to the us-east-2…
1
vote
1 answer

terraform plan giving Error: Unsupported argument in child module of AWS RDS

I am creating a two-tier architecture using Terraform and AWS modules. I have a Root folder and a child folder where I am getting this below error. I have declared a variable in Child folder and Root folder named as'db_name' and calling it out in…
1
vote
1 answer

How to manage data for a kubernetes_config_map without conflicts

Had an issue recently using the terraform-aws-eks module where we wanted to create the aws-auth config map and set the mapRoles and mapAccounts fields in the module but manage the mapUsers elsewhere. kubernetes_config_map_v1_data seemed tailor made…
1
2 3 4