Google Cloud Storage account details
To establish a connection to Google Cloud Storage, you must add an account that defines the account details to connect with. You can define these details by creating a configuration object in the App Connect Dashboard, the Red Hat® OpenShift® web console or CLI, or the Kubernetes CLI.
Account parameters
You can define one or more accounts for Google Cloud Storage.
For each account that you require, you can specify a new set of account details in any of the following ways:
- If you are using the App Connect Dashboard, either complete the
Account details fields in the
Create configuration
panel, or specify the account parameters in an accounts.yaml file before importing it into theCreate configuration
panel. For more information, see Accounts type. - If you are using the Red Hat OpenShift web console or CLI, or the Kubernetes CLI, specify the account parameters in an accounts.yaml file, and then use this configuration file to create a configuration object. For more information, see Creating the file for a configuration object of type Accounts.
The set of required and optional Account fields or parameters are listed in the following table.
For information about locating the values for these account parameters, see Locating the values for the account parameters.
Field | Parameter | Values | Condition | Description |
---|---|---|---|---|
Account name |
name |
User defined |
Required |
The name of a Google Cloud Storage account that is used in the exported flow. |
Secret |
secret |
User defined |
Required |
The secret for your Google Cloud Storage account. |
Access key |
accessKey |
User defined |
Required |
The access key for your Google Cloud Storage account. |
Bucket name |
bucketName |
User defined |
Optional Applicable if you have access only to specific buckets for data storage. |
The name of the bucket containing the data that you want to work with. |
Locating the values for the account parameters
- Open your Google Cloud Platform Storage browser in the Google Cloud Console.
If you are not already logged in, you will be prompted to enter the credentials for your Google Cloud Console account.
- Select an existing project that you want to work with, or create a project:
- Click the drop-down list in the page banner to open the "Select a project" panel.
- To select an existing project, click the project name in the Name column. To create a project, click NEW PROJECT, complete the fields, and click CREATE.
- Click Settings to open the Settings page.
- Click the INTEROPERABILITY tab and ensure that your project is selected in the page banner.
- In the User account HMAC section, configure the following settings:
- Set your project as the default project by clicking SET projectID AS DEFAULT PROJECT.
- Generate a hash-based message authentication code (HMAC) key pair for authenticating requests to Google Cloud Storage by clicking CREATE A KEY. An access key and secret are displayed.
Example
accounts:
googlecloudstorage:
- name: Account 1
credentials:
secretAccessKey: ZL0C+AbcdEFgHlbKBt2D3hkTdz6ppXgzdGcaF2by
accessKeyId: GOOGC7ABCCEDPQLJEMHTH7IS
bucketName: mygcsbucket
endpoint: {}