- Let us start by creating a bucket:
- name: create a bucket gc_storage: bucket: packt-mybucket mode: create gs_access_key: "{{ gs_access_key }}" gs_secret_key: "{{ gs_secret_key }}" tags: - recipe11
- We created a bucket named packt-mybucket in previous task. We should note that bucket names are global. This means that if another Google Cloud Storage user has taken a name, then it won't be available to us. Uploading a file is easy enough. We just need to specify the path of the file that we want to upload and the object name which would identify the file in the bucket. The file with name putmyfile.txt would be available in the packt-mybucket as key.txt. By default, the uploaded files are private which is good for backups but ...