Questions tagged [terraform0.14.7]

9 questions
20
votes
1 answer

Difference between aws_iam_policy and aws_iam_role_policy

I have a aws_iam_role which I want to add a policy to. Typically, I would create a policy with aws_iam_role and attach it to the role with aws_iam_role_policy_attachment. However, I've seen some documentation which uses aws_iam_role_policy which, to…
Matt W
  • 11,753
  • 25
  • 118
  • 215
4
votes
3 answers

How to pass CIDR range for subnets using cidrsubnets to VPC module in Terraform Version 0.14

Terraform cidrsubnets gives me the following subnets which is what I want. Terraform Version I am using: Terraform v0.14.9 > cidrsubnets("172.16.0.0/18", 6, 6, 6, 6) tolist([ "172.16.0.0/24", "172.16.1.0/24", "172.16.2.0/24", …
Jwary
  • 137
  • 2
  • 16
3
votes
1 answer

How to make a terraform resource block conditional

I have a aws_acm_certificate which I would like to avoid when running my tf locally (because I don't want to acquire a domain name, etc). I also don't want to comment out all the involved code when running locally. Most of my other blocks (such as a…
Matt W
  • 11,753
  • 25
  • 118
  • 215
3
votes
1 answer

Changing hash_key with Terraform causes Table already exists error

I have a DynamoDB table created with this Terraform: resource "aws_dynamodb_table" "materials_table" { name = "materials" hash_key = "MATERIAL" billing_mode = "PROVISIONED" read_capacity = 5 write_capacity …
2
votes
2 answers

terraform for_each implementation with values from .tfvars

I have a common.tfvars file with definition of a variables as: bqtable_date_partition = [ { dataset = "d1", table_name = "d1-t1", part_col = "partition_date", part_type = "DAY", schema_file = "data_tables/d1-t1.json" }, { dataset = "d1",…
Stunn3r
  • 53
  • 1
  • 12
2
votes
0 answers

How to dynamically attach multiple volumes to multiple instances via terraform in openstack?

I have written a terraform module(v0.14) that can be used to provision multiple instances in openstack with the correct availability_zone,network-port, correct flavor, can create 1 local disk or 1 blockstorage_volume based on boolean input variables…
0
votes
0 answers

terraform is not able to destroy deposed resource object on aws

I'm using aws and creating resources using terraform. I made changes in resource aws_lauch_configuration and applied usign terraform. Tf code is resource "aws_launch_configuration" "app" { name_prefix =…
ROHIT BANSAL
  • 57
  • 1
  • 1
  • 8
0
votes
1 answer

Error: Could not load plugin for terraform 0.14.3

We are getting below error for our provider Error: Could not load plugin Plugin reinitialization required. Please run "terraform init". Plugins are external binaries that Terraform uses to access and manipulate resources. The configuration provided…
-1
votes
1 answer

Terraform Child module dependency on a calling resource

I am trying to create dependency between multiple sub modules which should be able to create the resource individually as well as should be able to create the resource if they are dependent on each other. basically i am trying to create multiple…