New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to pass in the Dynamic list of Children in akamai_property_rules_builder #542
Comments
Hello, What about defining it this way?
|
It's a possibility but still it won't be dynamic. I can not pass in the values based in brand-environment.
…________________________________
From: Michal Wojcik ***@***.***>
Sent: Thursday, April 18, 2024 3:48:24 PM
To: akamai/terraform-provider-akamai ***@***.***>
Cc: Junaid Mukhtar ***@***.***>; Author ***@***.***>
Subject: Re: [akamai/terraform-provider-akamai] Unable to pass in the Dynamic list of Children in akamai_property_rules_builder (Issue #542)
Hello,
What about defining it this way?
locals {
formatted_list = [data.akamai_property_rules_builder.rule_http_to_https.json, data.akamai_property_rules_builder.rule_-shop-tag-_-_locale.json,data.akamai_property_rules_builder.rule_vas_redirect.json]
}
—
Reply to this email directly, view it on GitHub<#542 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQBWHKBKYCV5LNUPDRIL35DY57MLRAVCNFSM6AAAAABGNBWKQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRUGA4DAMBZGA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I don't know your planned setup, but what about this approach?
|
This approach also works, but the problem we have is that we have 8 brands (many more to come) and each brand has 4 properties (dev, qa, staging and production). The approach you mentioned will not work in our case. |
Hello, This configuration works for me
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
We are trying to use the Akamai terraform provider and the aim is to pass in the child rules dynamically to the terraform config. Our setup is
Multiple brands --> Multiple Env --> Single Terraform config
But we are unable to pass in the values of children dynamically.
Terraform Version
% terraform -v
Terraform v1.8.1
on darwin_amd64
Affected Resource(s)
akamai_property_rules_builder
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Debug Output
Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
Panic Output
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the
crash.log
.Expected Behavior
data.akamai_property_rules_builder.akamai_rule_redirects should get the values from the variable default without the quotes
Actual Behavior
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: building rules: invalid character 'd' looking for beginning of value
│
│ with data.akamai_property_rules_builder.rule_redirects,
│ on rules.tf line 825, in data "akamai_property_rules_builder" "rule_redirects":
│ 825: data "akamai_property_rules_builder" "ule_redirects" {
│
╵
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
No
References
No
The text was updated successfully, but these errors were encountered: