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
3
votes
0 answers

Terraform "wait_for_ready_timeout" not working on elastic-beanstalk environment resource

Default setting for "wait_for_ready_timeout", is 20 minutes. Within the "aws_elastic_beanstalk_application_version" resource I set this to 40m with the hopes of overriding the default. It will only run 20 minutes and timeout. I went into the AWS…
3
votes
2 answers

Terraform Upload Azure File Share

As part of an Azure ACI definition Terraform script, I'm creating an azurerm_storage_share which I want to then upload some files to, before mounting to my container. As far as I can tell, the right way to access the share once created is via SMB. …
Seffyroff
  • 33
  • 3
3
votes
1 answer

Terraform with GCP fails to create pubsub topic with permission denied

New to Google Cloud Platform but not to terraform. Created a service user to manage terraform under the project and gave it roles/owner. Created the key for this terraform user. Terraform code is simple: resource "google_pubsub_topic" "my_topic"…
tanhaa
  • 156
  • 5
3
votes
1 answer

How can I set up AWS Glue Using Terraform?

How can I set up AWS Glue using Terraform (specifically I want it to be able to spider my S3 buckets and look at table structures). A quick Google search came up dry for that particular service. The S3 bucket I want to interact with is already and…
russellpierce
  • 213
  • 2
  • 8
3
votes
1 answer

How do I attach, format and mount a volume on boot in ecs?

I want my persistence (ebs) volume to be separate from my auto-scaling group launch configuration. So that it won't be accidentally auto deleted by terraform, or something. Also I may do something like /mnt/taskname so that I have a different…
xenoterracide
  • 1,476
  • 2
  • 12
  • 26
3
votes
3 answers

TERRAFORM how do i have 1 ecs cluster with 2 or more ecs service/task definitions?

Using Terraform, I have tried the hardest to find out how to create 1 ECS cluster and have multiple services running under it. SO basically i have 2 different containers i want to run with this 1 ECS cluster. How do i do this? I have seen many…
uberrebu
  • 493
  • 5
  • 15
  • 32
3
votes
2 answers

With Terraform, how does one go about recycling root EC2 instance volumes?

I'm wondering if anyone has tackled making an EC2 root volume persistent, so that one may taint the instance resource and re-apply and the instance will use that volume instead of the ami's? My understanding from the documentation is that…
Reuben Avery
  • 41
  • 1
  • 3
3
votes
1 answer

Parameter parsing when using AWS SSM send-command from Terraform

I am using AWS SSM send-command to run a PowerShell script on an AWS instance. The following commanad works fine in a command shell but when called in Terraform gets an error. aws ssm send-command --instance-ids ${self.id} --document-name…
Brian Walsh
  • 43
  • 1
  • 7
3
votes
1 answer

Terraform, ecs service creation fails when using a configured IAM policy

Using Terraform, ecs service creation fails when using a configured IAM policy. Error applying plan: 1 error(s) occurred: * aws_ecs_service.beatthemarket_service: InvalidParameterException: Unable to assume role and validate the listeners…
3
votes
1 answer

Terraform, getting "The module root has no resources" error on taint

Getting a The module root has no resources error on taint. I'm trying to taint a couple of null_resources. Here's the code block for null_resource.provision_first: resource "null_resource" "provision_first" { connection { user =…
nunop
  • 211
  • 3
  • 10
3
votes
1 answer

Terraform upgrade to 0.15, getting "Invalid legacy provider address" for provider we don't use

Note: this is a self-answered question, to help anyone in a similar situation. While upgrading Terraform to 0.15, we got the following error messsage (along with similar messages for the aws and random providers): > terraform -chdir=aws init…
kdgregory
  • 211
  • 3
  • 7
3
votes
0 answers

Changing Terraform code for allowing multiple NICs

we are trying to modify our Terraform infrastructure which we have not built ourselves. The current code does support multiple disks but only one NIC. We tried to modify the NIC part accordingly but failed. Unfortunately we did not save the code we…
Hauke Laging
  • 5,157
  • 2
  • 23
  • 40
2
votes
2 answers

how to keep passwords out of terraform code file

I am creating an azure sql server in azure: I have a variables.tf file which currently has the admin password: variable "sql_server_admin_password" { description = "admin password" default = "xxxx" } I then reference that in the main…
dagda1
  • 237
  • 3
  • 6
  • 19
2
votes
1 answer

How can you automate rolling upgrades of Docker Swarm nodes?

What's the typical process to roll out an upgrade of Docker and other OS updates to a Docker Swarm cluster? Since I want it rolled out, I was thinking of just doing a full Terraform build which will contain the latest security patches and upgrades.…
2
votes
0 answers

How do you view terraform input variables and object values during validate/plan/apply, for debugging?

One would think, or at least hope, that setting TF_log=TRACE would allow you to see the values, maybe even value types, of variables being passed into modules., but it does not. What are the best practices for debugging data flows inside of a…
mhalligan
  • 121
  • 4
1 2
3
26 27