Skip to main content

Questions tagged [terraform]

Terraform is a tool for building, changing, and combining infrastructure safely and efficiently.

0 votes
0 answers
185 views

Ansible provider for Terraform roles support

I have an Ansible playbook with roles that I want to execute from Terraform. site.yaml --- - hosts: cluster gather_facts: yes become: yes roles: - role: prereq roles/prereq/tasks/main.yml ...
sctx's user avatar
  • 33
0 votes
1 answer
669 views

How To Terraform Datadog Monitors with Dynamic Thresholds

I'm attempting to create a number of resources from the DataDog provider. I'm hoping to have to define as little as possible for each resource. For many properties there is some sensible default. I am ...
Marshall Davis's user avatar
0 votes
1 answer
262 views

AWS instance connect decrypt password is giving error as invalid private key, how to fix it?

I have cretaed an instance using terraform code and also its key pair for windows. To get the admin password I clicked on the below decrypt button and getting as invalid decrypt key. Please suggest ...
Meghana d's user avatar
0 votes
1 answer
2k views

Terraform init error: Failed to download module (local changes would be overwritten)

I have a brand-new local Terraform project that I have just cloned from gitlab. I have not made any changes to the code, but when I run terraform init I get the following error, repeated for every ...
AstoriaBoy's user avatar
0 votes
0 answers
120 views

Modification timestamp of Terraform state/files disagrees significantly with application timestamp

So, I have a constellation of Terraform projects. I just built an image of a specific application, which ultimately ends-up updating the tags in the auto-vars file of the corresponding project in the ...
Dustin Oprea's user avatar
0 votes
1 answer
49 views

How to import an aws_spot_instance_request into Terraform?

I'm looking for a way to import an aws_spot_instance_request into Terraform. I already made a Spot Request on AWS console, now I would like to put this request on my code. How can I do that? In the ...
Arrow Root's user avatar
0 votes
0 answers
453 views

SSH Keys not propagating correctly from instance metadata to authorized_keys: missing keys, user discrepancy, and duplicate key

I want to add eight public keys via instance metadata to avoid adding them manually (i.e.: ssh to VMs, pasting the keys to .ssh/authorized_keys, etc.). I added the keys in Terraform (four distinct ...
mångata's user avatar
  • 109
0 votes
1 answer
172 views

Upgrade azure VM basic SKU to standard using terraform

I am performing the same task, upgrading the azure VM public ip SKU from basic to standard but using terraform code. My plan is Disassociate nic from UI Include SKU = "Standard" in my ...
reshma m nair's user avatar
1 vote
1 answer
843 views

Provisionning a GKE cluster stuck at Deploying step

I am provisionning a simple GKE cluster thank to terraform with the more basic config and it is stuck at "Deploying" "64% - Cluster is being deployed..." And in my terminal ...
Hugo Maitre's user avatar
0 votes
1 answer
658 views

How to set a default account for multiple aws providers in terraform?

I need to create resources for multiple accounts in my terraform code. So, I have created multiple providers in aws and using the same for individual modules. Other than above, if I create any ...
Meghana d's user avatar
0 votes
1 answer
799 views

Restoring Terraform state from backend

My Terraform Git repository ended-up having some unreconciliable data error and I couldn't push a recent change. I exported my commit to a patch, recloned, applied the patch, and then realized I just ...
Dustin Oprea's user avatar
0 votes
1 answer
999 views

How to correctly pass firewall rules to the google-terraform-network module?

I want to create a network using the google-terraform-network module. Additionally, I want to pass the firewall rules I made as a parameter to the module so that the created network contains these two ...
mångata's user avatar
  • 109
2 votes
0 answers
835 views

Why can't my ECS Fargate cluster write to my mounted EFS volume, all deployed with Terraform?

I've got a Terraform deployment that deploys a Docker image into ECS Fargate. It attaches an EFS volume to the container. When I SSH into the container, I see the volume mounted, but I am unable to ...
CryptoFool's user avatar
0 votes
1 answer
669 views

How do I get rid of the deprecation warnings on my aws_route_table definitions?

All of my route table definitions throw a deprecation warning during the plan/apply stages. I can't figure out how I should be defining my routes so that I stop getting these warnings. Here's an ...
Chris.B's user avatar
  • 421
0 votes
0 answers
335 views

How to escape {{ in AWS SSM?

We're using Atlantis & Terraform to set SSM values. One of the parameters contains raw {{ ... }} in the same syntax used by SSM for dynamic parameters. AWS SSM refuses the value with: Error: ...
Sebastian's user avatar
  • 101

15 30 50 per page
1 2
3
4 5
29