Questions tagged [terraform]
A tool from Hashicorp is used for defining infrastructure as code. On-topic questions are concerned with the use of the tool itself or how to use the 'code' (HCL) to define specific structures. This tag is often used with public-cloud tags, such as "amazon-web-services", "google-cloud-platform", or "azure", to explain further the question being asked.
terraform
19,755
questions
0
votes
1
answer
8
views
Terraform module override new attributes
In our existing infra, we calling version 7.4.0 of the following module in our own module.
terraform-google-modules/vm/google//modules/instance_template
When we try and upgrade to latest version 11.1....
0
votes
1
answer
20
views
Terraform Nested or For Loops to provision Azure Resources
So I have a Terraform locals.tf file which has the below content to represent a set of environments I intend to deploy to:
locals {
environments = [
"sandbox",
"test", ...
0
votes
0
answers
14
views
How do i connect bitbucket to codestar via terraform?
INCIPIT: The request is to create a pipeline in codepipeline that is started when I effect a commit on the main branch in bitbucket; the only problem is using terraform to centralize the larger number ...
1
vote
0
answers
38
views
How to link existing Azure function to static web app using Terraform and FastAPI?
I am trying to link an existing Azure function to a static web app using Terraform and FastAPI. Provisioning and deployment in devops works fine, but the URL is not working properly.
When I request ...
1
vote
0
answers
26
views
Terraform - can't connect to ec2
I have following terraform code that creates ec2 instance in eu-north-1 and transform traffic from port 8080 to port 8080
provider "aws" {
region = "eu-north-1"
}
resource "...
0
votes
0
answers
21
views
Error code 9, message: Cannot modify allocated ranges in CreateConnection. Please use UpdateConnection
I'm having issues deploying SQL DB instance on GCP.
I was getting the below error:
Error: Error waiting for Create Service Networking Connection: Error code 9, message: Cannot modify allocated ranges ...
-1
votes
1
answer
11
views
Terraform "Failed to query available provider packages"
I have a Terraform module that consistently fails with an error message like this:
Error: Failed to query available provider packages
Could not retrieve the list of available versions ...
0
votes
2
answers
27
views
GCP REST API or Terraform equivalent of "gcloud services vpc-peerings enable-vpc-service-controls"
Consider this CLI:
gcloud services vpc-peerings enable-vpc-service-controls ...
Questions:
What is the GCP REST API method equivalent to that?
What is the Terraform equivalent to that?
0
votes
0
answers
28
views
How to set AWS EBS encryption with terraform and its launch template and without block_device_mappings?
We are new to terraform, trying to use aws provider with terraform version v4.30.
We are trying to find the right setting to encrypt our instance volume.
In this example, we don't use ...
1
vote
0
answers
19
views
cloud-init fails on Amazon Linux 2023 but works on AmazonLinux2
Here's my very simple test script that I want to run on ec2 launch via cloud-init using terraform.
data "cloudinit_config" "cloudinit" {
gzip = false
base64_encode = ...
0
votes
0
answers
13
views
Terraform google-beta GCP filestore source backup attribute issue
I am trying to manage a rollback of a GCP filestore using terraform. I am using google-beta provider. https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/filestore_instance
...
0
votes
0
answers
22
views
S3 HTML object is downloaded by the browser rather than rendered [duplicate]
I have provisioned an AWS bucket in AWS S3:
resource "aws_s3_bucket" "bucketA" {
provider = aws.route53_role
bucket = "helloworld.com"
tags = {
Name = &...
0
votes
0
answers
15
views
AutoScaling group has wrong tag value using Terraform EKS module
We are using the Terraform EKS module with managed node groups, a custom launch template (created within the node group), and in this case, the group is creating spot instances.
The node group ...
-1
votes
1
answer
41
views
How to create Azure ML Registry using Terraform?
How do I create Azure ML registry using terraform? I see we have a way to create Azure ML workspace (azurerm_machine_learning_workspace) and ACR as well. But I don't see a way to explicitly create ML ...
1
vote
2
answers
22
views
Terraform │ Error: Variables not allowed | Random Required Provider
When I try to validate this Terraform config, I get an error:
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.58.0"
}
...