HashiCorp Discuss » Terraform
20 FOLLOWERS
Terraform, Terraform Cloud, Terraform Enterprise, and CDK for Terraform use cases, questions, and best practices discussions are to be found here. Learn to add a user data source, address issues, and get various solutions from the experts here. The HashiCorp forum is intended to be a space for anyone, anywhere in the world to discuss working remotely.
HashiCorp Discuss » Terraform
9h ago
I am trying to use this module: Terraform Registry
But I am getting an same error again and again:
Error: 400 Bad Request: Path validation error: ‘Object didn’t pass validation for format user-id-with-max-length: USER_ID’ on property id (ID of the user to list roles for).
In my scenario user is already available from AzureAD on Auth0. So I will not add user via terrafrom its just I wanted to add/remove users from roles.
My actual user id is on Auth0: “oauth2|main-tenant-oidc|samlp|company|USERID”
please suggest. Thanks!
1 post - 1 participant
Read full topic ..read more
HashiCorp Discuss » Terraform
9h ago
Trying to understand how to work with cdktf when using a newer version of terraform. My current experience is that when doing the TF upgrade and running a cdktf deploy, I get this error:
│ Error: Backend configuration changed
│
│ A change in the backend configuration has been detected, which may require
│ migrating existing state.
│
│ If you wish to attempt automatic migration of the state, use "terraform init
│ -migrate-state".
│ If you wish to store the current configuration with no changes to the state ..read more
HashiCorp Discuss » Terraform
2d ago
Hi,
When successfully deploying a stack with cdktf deploy, the content below the section “Outputs:” shows the output twice: first in a flat way, then in a hierarchical way with indents for each Construct. The values of the output in the flat and hierarchical way are the same.
Example:
Outputs:
my-stack foo = "bar"
car_color = "blue"
my-stack
foo = bar
car
color = blue
Is it possible to hide either the flat or hierarchical output formats? In particular, I would like to hide the hierarchical format because it doesn’t bring any addition value to me.
Thanks!
1 post - 1 part ..read more
HashiCorp Discuss » Terraform
3d ago
I have a yaml file like below -
nervecenter-kafka-apps:
id: AA00003191
region: east1
email: shp@example.com
clientType: java
orgname: cg-tso
repoName: kafka-async-api
targetBranchName: main
userInitials: SHP
id: BB00000015
region: east1
email: shp@exampledotcom
id: BB00009902
region: east1
email: mao@exampledotcom
id: BB00009903
region: east1
email: mao@exampledotcom
I am trying to write tf code to get “id” which have “clientType” as non java. If the field 'clientType" is not there , it should take that as non-java app. “clientType” can have comma separated value as well.
locals {
consol ..read more
HashiCorp Discuss » Terraform
3d ago
When I run terraform plan, I get:
╷
│ Error: Cycle: aws_instance.ept01, aws_instance.ept01 (expand)
│
│
╵
╷
│ Error: Cycle: aws_instance.est01, aws_instance.est01 (expand)
│
│
When I run terraform graph -draw-cycles -type=plan and paste the output into graphviz online, there aren’t any cycles?
terraform --version
Terraform v1.8.2
on linux_amd64
+ provider registry.terraform.io/hashicorp/aws v5.47.0
What would be the next step to determine why terraform thinks there’s a cycle?
Thanks!
3 posts - 2 participants
Read full topic ..read more
HashiCorp Discuss » Terraform
3d ago
I am trying to use the aws_scheduler_schedule resource to stop /start an open search ingestion pipeline.
resource “aws_scheduler_schedule” “start” {
for_each = var.tenants
name = “{each.key}-pipeline-start" description = "Start schedule for {each.key} pipeline”
flexible_time_window {
mode = “OFF”
}
schedule_expression = “{each.key}.schedule_expression_start" target { input = jsonencode({ PipelineName= "alpha" }) arn = aws_osis_pipeline.this[each.key].***pipeline_arn*** # "aws_osis_pipeline.this[{each.key}.arn]”
role_arn = aws_iam_role.start_stop.arn
}
}
first issue ( not very important ) pipel ..read more
HashiCorp Discuss » Terraform
3d ago
I have a data source:
data "aws_s3_bucket" "bucket" {
bucket = var.bucket_name
}
terraform plan is failing with:
Error: reading S3 Bucket (): operation error S3: HeadBucket, https response error StatusCode: 301, RequestID: XXX, HostID: XXXXX=, api error MovedPermanently: Moved Permanently
I googled around and found a useful SO reply:
This is a frequently encountered issue: You are trying to access a bucket in region us-west-1, however, for legacy reasons the default Amazon S3 region in most/all AWS SDKs is US Standard, which automatically routes requests to facilities in Northern Virgin ..read more
HashiCorp Discuss » Terraform
4d ago
Wealth Snap custOmer Care Number phone number 9038279732 toll free callWealth Snap custOmer Care Number phone number 9038279732 toll free callWealth Snap custOmer Care Number phone number 9038279732 toll free callWealth Snap custOmer Care Number phone number 9038279732 toll free call be gf
3 posts - 1 participant
Read full topic ..read more
HashiCorp Discuss » Terraform
4d ago
Wealth Snap custOmer Care Number phone number 9038279732 toll free callWealth Snap custOmer Care Number phone number 9038279732 toll free callWealth Snap custOmer Care Number phone number 9038279732 toll free callWealth Snap custOmer Care Number phone number 9038279732 toll free callWealth Snap custOmer Care Number phone number 9038279732 toll free call go
2 posts - 1 participant
Read full topic ..read more
HashiCorp Discuss » Terraform
4d ago
Wealth Snap custOmer Care Number phone number 9038279732 toll free call.Wealth Snap custOmer Care Number phone number 9038279732 toll free call.Wealth Snap custOmer Care Number phone number 9038279732 toll free call.
3 posts - 1 participant
Read full topic ..read more