Questions tagged [terraform]

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

Features:

  • Infrastructure as Code
  • Execution Plans
  • Resource Graph
  • Change Automation
392 questions
0
votes
1 answer

Terraform Error: Error initializing Docker client: protocol not available

I am attempting to go through the Terraform install from their website at https://learn.hashicorp.com/terraform/azure/install When I get to the step that says to run terraform apply I get the following error: Error: Error initializing Docker client:…
JamesTheDev
  • 111
  • 4
0
votes
2 answers

use metadata_startup_script in google cloud template in terraform

when I want to use metadata_startup_script in template if I use commands in one line it works fine but in pass one line or even if I want to use some html it does not work fine and I face error (multiple lines in terraform and use new line and if I…
farzin
  • 1
  • 1
  • 3
0
votes
1 answer

Terraform - Error to provisioning

I am try use terraform to provisioning infrastructure on GCP, but all time i receive this error. Anyone know how i can fix? 2020-05-05T22:08:28.461-0300 [DEBUG] plugin.terraform-provider-google_v3.20.0_x5.exe: 2020/05/05 22:08:28 [DEBUG] Dismissed…
Paulo
  • 11
0
votes
2 answers

When using the target option in terraform, why does it sometimes return other resources alongside the one targeted?

I was creating a cloudwatch alarm in my ELB stack like so: module "elb_sg" { source = "git@github.com:terraform-aws-modules/terraform-aws-security-group.git" name = "${local.name}-elb-sg" description …
masterpiece
  • 105
  • 1
  • 6
0
votes
1 answer

Terraform waits for ASG removal while doing graceful shutdown of EC2 instances

I use Terraform to set up ASG for my worker servers running sidekiq. On deploy when AMI image_id changes the instances require long graceful shutdown before terminating to finish job processing (max. 30m). My idea to accomplish that is to: Use…
ahes
  • 95
  • 2
  • 10
0
votes
1 answer

Startup script on google instance terraform

I am trying do a startup script on my instance but nothing append, the env variables are not in the system when i loggin on a instance, any ideas ? resource "google_compute_instance_template" "vault_template" { name_prefix = "vault-template-" …
R.O.O.T
  • 1
  • 2
0
votes
1 answer

How do I determine the least privilege permissions for a service account applying Terraform plans?

EDIT: Since I can't "trigger" Recommender to make this calculation, and I can't get at the source dataset, is there an automated way of finding the IAM permissions a service account would need to apply a Terraform plan? The original question was…
Larry B.
  • 109
  • 3
0
votes
1 answer

Terraform: output IP of all my different servers

I'm starting to use Terraform (0.12) with different types of servers, each associated to a different image. I'm trying to simply output all private IP (I don't know the number before runtime) but can't find a simple way to do it (I found a more…
daks
  • 673
  • 6
  • 23
0
votes
1 answer

How do I reference addresses of eks node group members in terraform?

I have an an EKS cluster created with Terraform using aws_eks_cluster and a managed node group using aws_eks_node_group. I also have certain resources outside AWS, behind a firewall. I'd like to have Terraform create rules in the firewall to grant…
0
votes
1 answer

terraform with helm provider ignore image changes

I am using terraform with helm provider to deploy a helm chart, everything works with terraform, the problem is when the application is already running and I changed the image tag from the gitlab pipeline. So the next time that I run terraform the…
c4f4t0r
  • 5,149
  • 3
  • 28
  • 41
0
votes
1 answer

How can you set up secure Terraform state storage for different infrastructure layers using S3 for backend?

Context After reading a lot about Terraform and playing with it in minor projects, I'd like to start using it in a real, production environment. As the environment is mostly in AWS, I'd go for the S3 backend, but I'm open to change this. Task I'd…
Akasha
  • 71
  • 1
  • 6
0
votes
1 answer

Error: incompatible provider version Terraform v1.60.0

Hello I'm newbie for terraform, I started using terraform official documentation, but I'm facing an issue with in terraform init getting an error like this. Initializing the backend... Initializing provider plugins... - Checking for available…
Kishore
  • 201
  • 2
  • 6
-1
votes
1 answer

Terraform: cannot retrieve id from azurerm_network_interface

Why is this not working for me? I have seen this code working everywhere but I keep getting the following error. So frustrating... Error: Error running plan: 1 error(s) occurred: * azurerm_virtual_machine.main: 2 error(s) occurred: *…
Juanjo
  • 1
-1
votes
1 answer

How to use Terraform to install AV when deploying a Windows AMI

Very first time I am using Terraform and I would like to know if its possible to install AV from a Terraform script or even set Powershell to remote execute? Cheers, M
Joao
  • 1
-1
votes
1 answer

How to control AWS EC2 live from a web app

We are building some penetration testing stations (both attack & target) for a hackathon in AWS VPC and I need a way to control the following in a live setting: VPN connection access: if someone does something bad, or misbehaves in the forums, we…
BitShift
  • 95
  • 6
1 2 3
26
27