Open fathom-farhan opened 2 months ago
Hi @fathom-farhan, credentials_secret
field is for google-beta provider only. Reference:https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_transfer_job#credentials_secret
If you want to use credentials_secret
field, You can follow this documentation to use beta provider.
For this case, It should be done by adding this line provider = google-beta
in the resource definition.
Thanks @kautikdk, we did have the google-beta provider installed but realized we weren't passing it directly to the sts job resource.
We'll try your suggestion and update here when we get to it (may not be for a bit since our need for this job has passed)
Community Note
Terraform Version & Provider Version(s)
Terraform v1.6.3 on linux_arm64
Affected Resource(s)
google_storage_transfer_job
Terraform Configuration
Debug Output
No response
Expected Behavior
When defining the
azure_blob_storage_data_source
for thetransfer_spec
ingoogle_storage_transfer_job
, we should be able to define thecredentials_secret
and NOT define theazure_credentials
explicitly.This should be in beta from v5.21.0
Actual Behavior
Trying to deploy the storage transfer job resource with
credentials_secret
defined andazure_credentials
leads to the following errors:"cdktf-deploy-all": At least 1 "azure_credentials" blocks are required.
"cdktf-deploy-all": No argument or block type is named "credentials_secret"
stack trace:
Steps to reproduce
container
,storage_account
,path
andcredentials_secret
but not theazure_credentials
Important Factoids
No response
References
No response
b/352823434