provider/aws: Update S3 Bucket Object docs for KMS Key #6309
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #6172 with the power of documentation!
Currently our docs for S3 Bucket Object KMS support say this:
In Terraform terms, this is typically the id:
${aws_kms_key.foo.id}
.In AWS terms, this is... really the arn:
${aws_kms_key.foo.arn}
For creating a bucket object AWS will accept both the unique/random bits at the end of the arn, or the full arn itself as the "ID". Unfortunately when we do a READ on the bucket object, the KMS Key ID will be the full ARN. So users that specify the id will get a reoccurring plan after, as it wants to swap out the ARN it read for the ID is has.
This PR updates the documentation to clarify that you need to use the exported ARN attribute of a KMS Key resource.