Questions tagged [cloudposse]

Questions about Cloud Posse open source resources, especially their Terraform modules, `cloudposse/utils` and `cloudposse/awsutils` Terraform providers, `atmos` CLI tool, and `Geodesic` toolkit.

Cloud Posse provides a variety of open source tools, mostly focused on DevOps in general, with emphasis on Terraform and Amazon Web Services (AWS). Use this tag for questions about any of the following:

18 questions
14
votes
3 answers

Switch terraform 0.12.6 to 0.13.0 gives me provider["registry.terraform.io/-/null"] is required, but it has been removed

I manage state in remote terraform-cloud I have downloaded and installed the latest terraform 0.13 CLI Then I removed the .terraform. Then I ran terraform init and got no error then I did ➜ terraform apply -var-file env.auto.tfvars Error: Provider…
DmitrySemenov
  • 9,204
  • 15
  • 76
  • 121
4
votes
2 answers

Terraform, ElasticSearch: Error: InvalidTypeException: Error setting policy

I would like to attach the access policy below to the ElasticSearch: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "es:*", "Resource":…
2
votes
3 answers

The parameter CacheSubnetGroupName must be provided and must not be blank

I use the module, https://github.com/cloudposse/terraform-aws-elasticache-redis to provision elasticache redis. Below are the errors when I run terraform apply. I have no clue of these errors. Terraform version:…
2
votes
1 answer

Terraform - Error: no matching Route53Zone found

I using https://github.com/cloudposse/terraform-aws-acm-request-certificate to generate certificate using terraform and aws. I want to run this module on serval domains: "example.com", "cdn.example.com"... I don't want to use …
Jon Sud
  • 10,211
  • 17
  • 76
  • 174
2
votes
0 answers

Intermittent kubectl apply error when run from terraform after aws_eks_cluster created

In my main.tf I have this, that I run via terraform 0.12.24 on ubuntu: module "eks_cluster" { source = "git::https://github.com/cloudposse/terraform-aws-eks-cluster.git?ref=tags/0.20.0" namespace = null stage =…
Oliver
  • 27,510
  • 9
  • 72
  • 103
1
vote
1 answer

"Invalid value for module argument" with list of CIDR blocks

I’m trying to add multiple rules to a cloudposse security group. Here is the relevant code: module "subnets" { source = "cloudposse/dynamic-subnets/aws" version = "0.39.8" vpc_id = module.vpc.vpc_id igw_id =…
1
vote
1 answer

Terraform : "Error: error deleting S3 Bucket" while trying to destroy EKS Cluster

So I created EKS Cluster using example given in Cloudposse eks terraform module On top of this, I created AWS S3 and Dynamodb for storing state file and lock file respectively and added the same in terraform backend config. This is how it looks…
1
vote
2 answers

Terraform, ElasticSearch, module, cloudposse/terraform-aws-elasticsearch

I use the module, https://github.com/cloudposse/terraform-aws-elasticsearch to provision ElasticSearch. I set kibana_hostname_enabled = false, and domain_hostname_enabled = false. Per document, dns_zone_id is not required. But, it asks for dns zone…
1
vote
1 answer

Error: Error creating ElasticSearch domain: ValidationException: You must specify exactly two subnets because you’ve set zone count to two

I got the Error: Error creating ElasticSearch domain: ValidationException: You must specify exactly two subnets because you’ve set zone count to two. But, how to specify exactly two subnets? Here is the code: main.tf: module "elasticsearch" { …
1
vote
1 answer

Terraform: How to get value of second public ip in module cloudposse ec2

How I can get value of second IP address from Terraform module EC2. Module- https://github.com/cloudposse/terraform-aws-ec2-instance I've created instance EC2 with parameter additional_ips_count = 1. In this situation instance has create with two…
hock
  • 159
  • 1
  • 8
1
vote
1 answer

CodeBuild - Build fails due to missing EC2 Permission

I have a codebuild project that pulls code from Github. I am using cloudposse template When I start the build, I get VPC_CLIENT_ERROR: Unexpected EC2 error: UnauthorizedOperation I have found similar problem on SO. But in my case it did not work.…
0
votes
1 answer

How to manage automatic deployment to ECS using Terraform Cloud and CircleCI?

I have an ECS task which has 2 containers using 2 different images, both hosted in ECR. There are 2 GitHub repos for the two images (app and api), and a third repo for my IaC code (infra). I am managing my AWS infrastructure using Terraform Cloud.…
Nick K9
  • 3,885
  • 1
  • 29
  • 62
0
votes
0 answers

ECS container in public subnet cannot connect to a public AWS SSM service

I have a container running in ECS and it's using boto3 to connect to ssm.us-east-2.amazonaws.com. The connection is timing out. The container is using network mode awsvpc and I don't have a NAT Gateway. I thought this wouldn't be a problem since the…
Nick K9
  • 3,885
  • 1
  • 29
  • 62
0
votes
1 answer

availability zones for example cloudposse terraform module subnets

I want to try and implement this repo in my terraform plan. I want to have it operate across all availability zones and am trying to work out how to make sure that is the case (there isn't a list of all of them anywhere I can…
LeCoda
  • 538
  • 7
  • 36
  • 79
0
votes
1 answer

EC2 instance created using terraform with autoscaling group not added to ECS cluster

TL;DR: Does my EC2 instance need an IAM role to be added to my ECS cluster? If so, how do I set that? I have an EC2 instance created using an autoscaling group. (ASG definition here.) I also have an ECS cluster, which is set on the spawned…
1
2