-
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: Elasticache cluster describe instances CacheClusterNotFound err handling #3767
provider/aws: Elasticache cluster describe instances CacheClusterNotFound err handling #3767
Conversation
…er may have been deleted manually
@@ -241,6 +241,11 @@ func resourceAwsElasticacheClusterRead(d *schema.ResourceData, meta interface{}) | |||
|
|||
res, err := conn.DescribeCacheClusters(req) | |||
if err != nil { | |||
if eccErr, ok := err.(awserr.Error); ok && eccErr.Code() == "CacheClusterNotFound" { |
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.
Let's log before we remove it
log.Printf("[WARN] ElastiCache Cluster (%s) not found", d.Id())
d.SetId("")
return nil
@catsby done :) |
Awesome! I squashed this and merged it as 9cee18b. Thanks! |
Also adds a regression test using Mock UI. Fixes #3767.
Also adds a regression test using Mock UI. Fixes #3767.
My bad here, I referenced the wrong issue number in a PR. |
Also adds a regression test using Mock UI. Fixes hashicorp#3767.
…dfront_distribution-domain_name-validatefunc resource/aws_cloudfront_distribution: Validate origin domain_name and origin_id at plan time
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. |
Fixing the Read method to take into account that an elasticache cluster may have been deleted manually
Fixes #3689
//cc @apparentlymart