Closed polyglotm closed 3 months ago
Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement
Learn more about why HashiCorp requires a CLA and what the CLA includes
Have you signed the CLA already but the status is still pending? Recheck it.
I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
I changed the example.
In TaggedS3Bucket example this documents re-assigne value into this.tagsInput with spread operator like this.
I changed to
What’s the difference?
When use …
AKA spread operator
is a kind of duplicate mechanism And usually use fordont want impact to original value.
When using Object.assign it’s just extend the original object
In this document example …this.tagsInput is used for assing itself. which means
generate new object and assign to original object
It’s working but not best practice.If you change to Object.assign approach (my offer)
I love Terraform, and I wish Terraform document offer best practice Thank you.