New answers tagged

2 votes

Why are all volumes deleted when 1 EC2 instance is deleted via Terraform?

The issue is with the availability_zone on the aws_ebs_volume resource. it depends on the aws_instance, so when Terraform destroys the EC2, it thinks that your EBS can't live without it. Even though ...
user avatar
1 vote
Accepted

Terragrunt Linter

Until an add-on will be available, you can run this: terragrunt hclfmt You can rewrite the hcl files to a canonical format using the hclfmt command built into terragrunt. Similar to terraform fmt, ...
user avatar
  • 126
0 votes
Accepted

How do you a initialize a new volume without a file system or partition table?

Cloud-init solution cloud-init accommodates the partitioning with disk_setup disk_setup: /dev/vdb: table_type: gpt layout: true And the corresponding filesystem initialization with fs_setup ...
user avatar
0 votes
Accepted

Resizing a volume in terraform without enable_online_resize?

You can use --replace like this, terraform apply --replace=openstack_blockstorage_volume_v3.repo
user avatar
0 votes

Terraform - retrieving arn from another module

main.tf module "s3_bucket" { source = "./modules/S3" kms_master_key_id = module.kms.kms_arn } module "kms" { source = "./modules/kms" } modules/kms/...
user avatar
  • 1
0 votes
Accepted

Unable to authenticate with Terraform AWS provider

If you have multiple profiles in your credentials file, you need to state which profile you want to use, otherwise it will use [default]: credentials file: [default] aws_access_key_id = xxxxxxxx ...
user avatar
0 votes

Terraform plan does not update AWS Task Definition with last active revision value

From what I see in your terraform plan, terraform apply will indeed set the latest task definition version and probably run redeploy of your ECS. You can keep your state file up-to-date with terraform ...
user avatar
0 votes

Unable to connect from my local system to ec2 instance created by terraform script

The issue was that the default route was missing in the routing table. resource "aws_route" "update" { provider = aws.docdb_peer route_table_id = &...
user avatar

Top 50 recent answers are included