-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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_rds_cluster_instance: Exposed availability_zone attribute #1439
Conversation
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.
Hey @kl4w
Just left a comment to address, nothing critical :)
Tell me if you need any help on that!
@@ -296,6 +301,7 @@ func resourceAwsRDSClusterInstanceRead(d *schema.ResourceData, meta interface{}) | |||
d.Set("promotion_tier", db.PromotionTier) | |||
d.Set("preferred_backup_window", db.PreferredBackupWindow) | |||
d.Set("preferred_maintenance_window", db.PreferredMaintenanceWindow) | |||
d.Set("availability_zone", db.AvailabilityZone) |
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.
Could you augment an existing acceptance test to check for this to be set? perhaps the basic one?
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.
Hi @Ninir
I've added to the basic test now and passed.
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.
Looks good to me @kl4w !
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSRDSClusterInstance_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSRDSClusterInstance_basic -timeout 120m
=== RUN TestAccAWSRDSClusterInstance_basic
--- PASS: TestAccAWSRDSClusterInstance_basic (1473.45s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 1473.488s
Thanks for the work here :) Nice first contribution!
Set availability_zone attribute on RDS cluster instance
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! |
First PR so let me know if I'm missing anything.
Current docs state that
aws_rds_cluster_instance
returns theavailability_zones
attribute but is not the case https://www.terraform.io/docs/providers/aws/r/rds_cluster_instance.html#availability_zonesEnhanced resource to set the attribute and remove plural from docs.