-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/aws: export elasticache nodes #1965
Conversation
Needs to wait for len(cluster.CacheNodes) == cluster.NumCacheNodes, since apparently that takes a bit of time and the initial response always has an empty collection of nodes
- request cache node info - read after create, to populate nodes
Tags: tags, | ||
} | ||
|
||
// parameter groups are optional and can be defaulted by AWS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooo nice catch.
- rename test to have _basic suffix, so we can run it individually - use us-east-1 for basic test, since that's probably the only region that has Classic - update the indexing of nodes; cache nodes are 4 digits
You need to explicitly tell the API that you want node info with |
Cool cool - LGTM! |
provider/aws: export elasticache nodes
@catsby Thanks so much! I am currently having a problem where sometimes terraform doesn't wait for the cluster to come up completely before continuing, so that its nodes don't exist. The state looks like this:
So |
I'm not sure I follow.. do you have any error messages you can share? |
That's because I reference |
Then I wait for the cluster to finish provisioning, run |
Understood, thanks! Phinze above suspected this, I'll check it out in the On Thursday, May 14, 2015, Saul Shanabrook notifications@github.com wrote:
Clint |
@catsby I'm seeing the same race condition and error in 0.5.2, any update on this? |
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. |
Here's a start to a fix for #1918
Needs to wait for
len(cluster.CacheNodes) == cluster.NumCacheNodes
, sinceapparently that takes a bit of time and the initial response always has
an empty collection of nodes.
I think that doing a complex
Computed
attribute is okay, and you can reference it likeaws_elasticache_cluster.foo.cache_nodes.0.address
.pushing up the WIP in case @catsby has bandwidth to finish this first
@catsby is doing:
parameter_group
, others)