-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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_db_instance: Expose db_instance ca_cert_identifier #1256
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 Paul,
Just left a few comments regarding a typo and the actual existence of the attribute post-creation/update :)
Thanks for that! 👍
aws/data_source_aws_db_instance.go
Outdated
@@ -277,6 +282,7 @@ func dataSourceAwsDbInstanceRead(d *schema.ResourceData, meta interface{}) error | |||
d.Set("storage_type", dbInstance.StorageType) | |||
d.Set("timezone", dbInstance.Timezone) | |||
d.Set("replicate_source_db", dbInstance.ReadReplicaSourceDBInstanceIdentifier) | |||
d.Set("replicate_source_db", dbInstance.CACertificateIdentifier) |
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.
Small typo here regarding the attribute name :)
@@ -828,6 +832,8 @@ func resourceAwsDbInstanceRead(d *schema.ResourceData, meta interface{}) error { | |||
|
|||
d.Set("replicate_source_db", v.ReadReplicaSourceDBInstanceIdentifier) | |||
|
|||
d.Set("ca_cert_identifier", v.CACertificateIdentifier) |
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 we also check in the acctest that the attribute is set?
6de55d6
to
d46ead3
Compare
@Ninir this is now taken care of :)
P. |
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 @stack72
LGTM, thanks! :)
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSDBInstance_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSDBInstance_basic -timeout 120m
=== RUN TestAccAWSDBInstance_basic
--- PASS: TestAccAWSDBInstance_basic (609.45s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 609.494s
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! |
Fixes: #1166