-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Error creating SecretVersion: googleapi: Error 400: Field [payload] is required. #8766
Error creating SecretVersion: googleapi: Error 400: Field [payload] is required. #8766
Comments
Thank you @edwardmedia ! |
Same behaviour with the exact copy/paste of the example |
@yanc0 can you share the full debug log for running the example? |
I am getting the same error with version 0.13.6 |
@edwardmedia here is the full debug log (I only targeted google secret resources, avoiding the entier cloudsql execution plan) |
@yanc0 I noticed you chose userManaged in the
|
Same error when changing replication type
|
@yanc0 can you share the full config along with the debug log? |
Thanks @edwardmedia ! |
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. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v0.14.9
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
The documentation says that only
secret
attribute is required. I expect the secret version to be createdhttps://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/secret_manager_secret_version#argument-reference
Actual Behavior
Google api returns a 400 error, saying that a payload is missing. If we add the
secret_data
attribute, there is no more error.Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: