<p>Need to move from use of minio client to a docker image having gcloud/gsutil and mysql images.</p>
<p>What i have currently:</p>
<ol>
<li>/tmp/mc alias set gcs1 <a href="https://storage.googleapis.com" rel="nofollow noreferrer">https://storage.googleapis.com</a> $ACCESS_KEY $SECRET_KEY</li>
<li>mysqldump --skip-lock-tables --triggers --routines --events   --set-gtid-purged=OFF --single-transaction --host=$PXC_SERVICE -u root --all-databases | /tmp/mc pipe gcs1/mysql-test-dr/mdmpdb10.sql</li>
</ol>
<p>What i need to change to:
3. &lt;something similar to line no.1 (authorization)&gt;
4. mysqldump --skip-lock-tables --triggers --routines --events   --set-gtid-purged=OFF --single-transaction --host=$PXC_SERVICE -u root --all-databases --skip-add-locks &gt; $FILE_NAME &amp;&amp; gsutil cp $FILE_NAME gs://$BUCKET_NAME/$FILE_NAME</p>
<p>Is there any replacement in gcloud/gsutil for the line no.1?
I was able to find gcloud auth activate-service-account [ACCOUNT] --key-file=[KEY_FILE]
But that would be the service account key. I need to authenticate to the bucket using hmac keys.</p>

<p>You'll need to generate a boto configuration file using <code>gsutil config -a</code>. If you also have gcloud auth credentials configured, you may have to tell gcloud to not pass those (non-HMAC) credentials to gsutil, as gsutil may not allow you to have multiple credential types active at once. You can do this by running this gcloud command:</p>
<pre><code>gcloud config set pass_credentials_to_gsutil false
</code></pre>
<p>This is all mentioned in the <code>gsutil config</code> docs page: <br />
<a href="https://cloud.google.com/storage/docs/gsutil/commands/config" rel="nofollow noreferrer">https://cloud.google.com/storage/docs/gsutil/commands/config</a></p>
