-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Resource 'aws_elasticache_cluster.redis' does not have attribute 'cache_nodes.*.address' for variable 'aws_elasticache_cluster.redis.cache_nodes.*.address' #214
Comments
I assumed I could work around this using
but no luck anytime I reference |
Hi All, |
I also get no output with this, any updates/fixes on the horizon? Workarounds would also be appreciated. |
I have the same issue as described |
Is there any update on this being fixed? |
We also are having this issue. |
I am also seeing a similar issue and i've raised a seperate issue here hashicorp/terraform#19964 |
The funny thing - next construction works for other resources but not for this one:
it returns
Created route 53 CNAME record as a temporary solution:
|
Hi folks 👋 This issue is resolved in Terraform 0.12, which fully supports indexed splat ( Given this configuration: terraform {
required_providers {
aws = "2.20.0"
}
required_version = "0.12.5"
}
provider "aws" {
region = "us-east-2"
}
resource "aws_elasticache_cluster" "test" {
cluster_id = "bflad-testing"
engine = "memcached"
node_type = "cache.t2.micro"
num_cache_nodes = 3
}
output "test1" {
value = aws_elasticache_cluster.test.cache_nodes[*].address
}
output "test2" {
value = element(aws_elasticache_cluster.test.cache_nodes[*].address, 1)
}
output "test3" {
value = join(",", formatlist("%s:%s", aws_elasticache_cluster.test.cache_nodes[*].address, aws_elasticache_cluster.test.cache_nodes[*].port))
} We can get the various expected outputs that were problematic in Terraform 0.11 and earlier:
Enjoy! 🚀 |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This issue was originally opened by @iroller as hashicorp/terraform#7957. It was migrated here as part of the provider split. The original body of the issue is below.
Terraform Version
0.7.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
I expected a string outout, e.g. "10.10.0.1,10.10.0.2"
Actual Behavior
No output at all.
References
The text was updated successfully, but these errors were encountered: