terraform Questions
3
Solved
According to the documentation, to use s3 and not a local terraform.tfstate file for state storage, one should configure a backend more or less as follows:
terraform {
backend "s3" {
bucket = "...
Jenicejeniece asked 12/6, 2018 at 15:31
3
Solved
I have recently updated my terraform from v0.10.8 to v0.11.1
I am facing awkward issue while running terraform plan,
For first time running the command it gives me proper plan in output but while ...
Sopher asked 2/1, 2018 at 7:35
3
Solved
When I use count or for_each in my resource definition, the resources are created in parallel.
Is there a kind of workaround to make it sequential? First a resource with count.index=0 is created, t...
Westphalia asked 4/9, 2020 at 16:1
10
Solved
After deleting kubernetes cluster with "terraform destroy" I can't create it again anymore.
"terraform apply" returns the following error message:
Error: Kubernetes cluster unr...
Clem asked 1/3, 2021 at 17:53
3
I want my Terraform config to provision a server and start the service at the end by invoking a command and keep running it. I tried using nohup and screen using remote-exec:
nohup:
provisioner "...
Sympathetic asked 24/3, 2016 at 18:43
4
Solved
I have a cloud-init file that sets up all requirements for our AWS instances, and part of those requirements is formating and mounting an EBS volume. The issue is that on some instances volume atta...
Oidium asked 25/9, 2020 at 22:15
5
I want to delete my non empty s3 bucket created with terraform. I used force_destroy=true option as well but still i get
BucketNotEmpty: The bucket you tried to delete is not empty
status code: 409...
Anderegg asked 31/1, 2021 at 21:23
4
Solved
I looked at the documentation of both azurerm_app_service and azurerm_application_insights and I just do not see a way to tie them.
Yet on the App Service page in the portal there is a link to App...
Acetabulum asked 11/2, 2020 at 18:52
4
Solved
I am trying to set the IP restrictions block in my Azure App Service App
When performing the Terraform plan or apply, I receive the following error:
Error: azurerm_app_service.app-service-1: : inv...
Pistareen asked 24/10, 2018 at 17:26
3
Solved
I want to create a new alb and a route53 record that points to it.
I see I have the DNS name: ${aws_lb.MYALB.dns_name}
Is it possible to create a cname to the public DNS name with aws_route53_rec...
Import asked 22/2, 2018 at 3:45
7
Solved
I have an AWS Lambda deployed successfully with Terraform:
resource "aws_lambda_function" "lambda" {
filename = "dist/subscriber-lambda.zip"
function_name = "test_get-code"
role = <my_role&g...
Insole asked 5/10, 2018 at 9:15
6
I am trying to use AWS secrets manager to declare RDS admin credentials.
Declared credentials in rds.tf in variable RdsAdminCred as key/value pair
Declared secret as well in the same tf file
vari...
Sooty asked 6/1, 2021 at 22:0
4
Solved
Scenario: I am running an AWS autoscaling group (ASG), and I have changed the associated launch configuration during terraform apply. The ASG stays unaffected.
How do I recreate now the instances...
Gull asked 6/9, 2016 at 9:36
8
I have a repository with several separate configs which share some modules, and reference those modules using relative paths that look like ../../modules/rabbitmq. The directories are setup like th...
Electrophoresis asked 9/11, 2020 at 20:21
4
I installed Terraform v1.0.1 on linux_amd64 (Oracle Linux Srv 8.4 64bit).
I’m trying to use a local provider/plugin that I saved in the folder: /root/.terraform.d/plugins
# ll /root/.terraform.d/pl...
Lollard asked 29/6, 2021 at 16:38
5
Solved
I am trying to create a Linux VM, with Terraform, in the West Europe Azure region, with a Ubuntu Server 20.04 LTS image. I can do this just fine from within the Azure Portal, but Terraform complain...
Rendezvous asked 24/2, 2022 at 14:25
7
In my main.tf file I have:
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.16"
}
}
required_version = ">= 1.2.0"
}
pro...
Sampler asked 15/3, 2023 at 3:8
4
I have at least 20 resources managed by my terraform configuration, i want to deploy all my resources exept one, i know that i can add "-target" parameter, but i have to specify the name ...
Delapaz asked 20/12, 2022 at 10:18
10
Solved
I tried terraform versions v0.12.26 and v0.13.3. Both failed.
terraform plan
Acquiring state lock. This may take a few moments...
Error: Error locking state: Error acquiring the state lock: 2 error...
Rocker asked 1/10, 2020 at 6:1
1
Solved
I have a load-balanced EC2 instance that hosts a web API that I am trying to use AWS CodeDeploy to deploy new versions of the API with. I am trying to make use of a blue/green deployment style, whe...
Libelant asked 4/6, 2024 at 20:24
7
Solved
We are looking into Terraform as a way of managing our infrastructure and it looks very interesting.
However, currently our corporate proxy/firewall is causing terraform apply to fail due to securi...
Sawyer asked 29/8, 2016 at 16:33
4
I am attempting to create new resources on GCP with a remote backend
After doing terraform init plan -out=tfplan and then terraform apply tfplan I get the following error:
Error: Inconsistent depen...
3
Solved
Problem: I am using terraform to get a list of AMI for a specific OS - ubuntu 20.08
I have checked different examples link
When I use the script this does not give me list of AMI
Script
data "...
Savina asked 15/9, 2020 at 9:36
4
Im new to Terraform. I am going through a tutorial and cant determine what this does " => "
Below is an example output utilizing this feature.
output "for_output_map2" {
des...
Italianate asked 20/10, 2021 at 14:48
3
Solved
I want to restructure my terraform directory -- I'm going to go to multiple regions and break apart a large .tfstate file into smaller ones. As a starting point, I want to take the existing terrafo...
Comedienne asked 14/5, 2018 at 23:32
© 2022 - 2025 — McMap. All rights reserved.