# Google Cloud Storage

## Steps to Configure GCS Artifacts <a href="#steps-to-configure-gcs-artifacts" id="steps-to-configure-gcs-artifacts"></a>

* Validated data from artifacts can consume GCS objects as artifacts, in multiple Spinnaker Stages.

### Prerequisites <a href="#prerequisites" id="prerequisites"></a>

* To have GCS enabled on Spinnaker, it’s mandatory to have GCP (Google Cloud Project) created to host a bucket in.
* To validate and confirm whether GCP is created or not, execute the following command

  ```
      gcloud info
  ```
* For Spinnaker to authenticate on GCP, it’s mandatory to have Google Credentials/JSON key downloaded. In case if the details are unavailable, click here to generate the same.

### Enable GCS Artifact Settings: <a href="#enable-gcs-artifact-settings" id="enable-gcs-artifact-settings"></a>

* Ensure to have the following values are enabled

  ```
      # Same as in Prerequisites section above
      SERVICE_ACCOUNT_DEST=~/.gcp/gcs-artifacts-account.json
      ARTIFACT_ACCOUNT_NAME=my-gcs-artifact-account
  ```
* Execute the following command to enable Artifact Support

  ```
      hal config features edit --artifacts true
  ```
* Execute, the following command to add Artifact account

  ```
      hal config artifact gcs account add $ARTIFACT_ACCOUNT_NAME \
      --json-path $SERVICE_ACCOUNT_DEST
  ```
* Finally, execute the following command to enable GCS artifact Support

  ```
      hal config artifact gcs enable
  ```

  **Note**: To Explore more options on this configuration, click here


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.opsmx.com/opsmx-1/opsmx-context-engine/additional-resources/previous-releases/isd-3.12/orchestration-module-opsmx-enterprise-for-spinnaker-oes/additional-feature-configuration/configure-artifact-support/google-cloud-storage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
