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

Adds storage_hmac_key_resource #1765

Conversation

modular-magician
Copy link
Collaborator

I'm working to get the hmac key resource active in the terraform provider.

Note: this code creates the key, but isn't printing the secret right now. I could use a second pair of eyes on this @rileykarson as this is my first magic-modules contrib. Thanks!
Note: At this point I've (manually) cruded and used the key that it returned. Thanks to the help of riley, I think we're pretty much just fine-tuning downstream outputs.

`google_storage_hmac_key`

Derived from GoogleCloudPlatform/magic-modules#3084

* Adds hmac key

* Fixes up hmacKey resource properties in terraform

* Update products/storage/terraform.yaml

Co-Authored-By: Riley Karson <rileykarson@google.com>

* Update products/storage/api.yaml

Co-Authored-By: Riley Karson <rileykarson@google.com>

* Adds an example, website links, and several fixes from review

* Adds test and fixes hmac_key id

* tweaking hmac_key example

* Update third_party/terraform/tests/resource_storage_hmac_key_test.go

Co-Authored-By: Riley Karson <rileykarson@google.com>

* Update products/storage/api.yaml

Co-Authored-By: Riley Karson <rileykarson@google.com>

* Update third_party/terraform/tests/resource_storage_hmac_key_test.go

Co-Authored-By: Riley Karson <rileykarson@google.com>

* hmac_key: adds doc warning about secrets, fixes yaml formatting, and improves test

* More fixes for review

* Fixing gofmt

* fix resource name

* more iteration

* More fixes

* RM unused var in hmac_key_test

* hmac_key: Pre-delete and more fixes

* Fixing wrong assumptions

* Edits to support read schema

* Get tests passing, handle deleted items properly

* Sidebar - to _

* Remove the update encoder because the docs are wrong on update format anyways

Co-authored-by: Riley Karson <rileykarson@google.com>
Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit 7ba30db into hashicorp:master Feb 13, 2020
@modular-magician modular-magician deleted the downstream-pr-6bf64554bc9378b3c407d04e98c091920d56d5e6 branch November 16, 2024 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant