Skip to content
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

Merged
merged 2 commits into from
Aug 17, 2017

Conversation

kl4w
Copy link
Contributor

@kl4w kl4w commented Aug 16, 2017

First PR so let me know if I'm missing anything.

Current docs state that aws_rds_cluster_instance returns the availability_zones attribute but is not the case https://www.terraform.io/docs/providers/aws/r/rds_cluster_instance.html#availability_zones

Enhanced resource to set the attribute and remove plural from docs.

@Ninir Ninir added the enhancement Requests to existing resources that expand the functionality or scope. label Aug 17, 2017
Copy link
Contributor

@Ninir Ninir left a 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)
Copy link
Contributor

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?

Copy link
Contributor Author

@kl4w kl4w Aug 17, 2017

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.

@Ninir Ninir added the waiting-response Maintainers are waiting on response from community or contributor. label Aug 17, 2017
@Ninir Ninir changed the title Set availability_zone attribute on cluster instance Set availability_zone attribute on RDS cluster instance Aug 17, 2017
@Ninir Ninir removed the waiting-response Maintainers are waiting on response from community or contributor. label Aug 17, 2017
Copy link
Contributor

@Ninir Ninir left a 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!

@Ninir Ninir merged commit 5dcfe6a into hashicorp:master Aug 17, 2017
@Ninir Ninir changed the title Set availability_zone attribute on RDS cluster instance resource/aws_rds_cluster_instance: Exposed availability_zone attribute Aug 17, 2017
nbaztec pushed a commit to nbaztec/terraform-provider-aws that referenced this pull request Sep 26, 2017
Set availability_zone attribute on RDS cluster instance
@kl4w kl4w deleted the cluster-instance-returns-az branch April 20, 2018 13:57
@ghost
Copy link

ghost commented Apr 6, 2020

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!

@ghost ghost locked and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants