Open PedDavid opened 5 years ago
@ericsysmin solution didn't work for me as f.write(data.content) gave an error because data.content was bytes.
the file needs to be opened in binary mode to write the content to the file. I opened the #44 to fix this issue.
https://requests.kennethreitz.org/en/master/user/quickstart/#binary-response-content
Awesome @swackhamer , thanks a lot 😄
The gcp_storage_object
module has been rewritten to use the google-cloud-storage Python library. This library is the Google official way of handling upload/downloads to GCS and fixes most of the problems that the (very buggy) current module has.
This shouldn't be an issue at the moment anymore. Let me know if you're having any more issues!
@rambleraptor, it is one of the recommended ways of managing secrets in Google Cloud (source).
I had that completely turned around. My mistake! Yeah, I'll look into this soon. Thanks for the suggestion.
Wait, sorry, this comment should've been on #27
We used it to manage secrets, as well. Hence why our issue with gcp_storage_object, and then also why I created the kms filter to handle decrypting the object
From GoogleCloudPlatform/magic-modules#2428
Related issue from @sparampalli ansible/ansible#56173