-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Not able to get the string from list from external json data using jq (OCI) #21532
Comments
The It seems like you are using this just to decode a specific file from disk, without doing any processing on it. If that is true, then I would recommend upgrading to Terraform 0.12 and then using the new locals {
create_tags = jsondecode(file("${path.module}/create_tags62716.json"))
}
resource "oci_identity_tag" "create_tags62716" {
count = 3
name = local.create_tags.tag_names[count.index]
description = local.create_tags.tag_description[count.index]
tag_namespace_id = "DEFAULT_NAMESPACE_ID"
is_retired = false
lifecycle {
prevent_destroy = true
}
} Please note that we use GitHub issues for tracking bugs and enhancements rather than for questions. While we may be able to help with certain simple problems here it's generally better to use one of the community forums where there are far more people ready to help, whereas the GitHub issues here are generally monitored only by our few core maintainers. If you have any follow-up questions, please use one of the community forums. Thanks! |
Thanks for the alternative. I am able to achieve the required output with the below format. external json data sourcedata "external" "create_tags64033" { create new tags######SAMPLE #####3 } |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi,
I have the below JSON data and I am not able to get the individual string from list of arrays.
Not sure whether my syntax is correct or not.
create_tags62716.json
The below is the Terraform template also.
Error
The text was updated successfully, but these errors were encountered: