Redshift
Create a Secret for securing Amazon Redshift credentials.
Prerequisites
To create a Secret for securing Redshift credentials, you need the following information.
See Secret: Access control for who can create a Secret and how access to it is managed.
Source system requirements
Username: The Redshift username used to authenticate and access your Redshift cluster. Get this from the Redshift admin who manages user access.
Password: The password for the Redshift username. The password is set when the user account is created. Get it from the Redshift admin, or retrieve it securely if forgotten.
AWS Access Key ID: The Access Key ID for your AWS account, used to authenticate API requests. Get this from the AWS Identity and Access Management (IAM) console under your user's security credentials section.
AWS Secret Access Key: The Secret Access Key paired with your AWS Access Key ID, used for secure API requests. Get this from the AWS IAM console under your user's security credentials section. Store the secret key securely and keep it private.
Create a Secret for securing Redshift credentials
Redshift is a data warehouse: a centralized repository for structured data that supports efficient query and analysis.
To create a Redshift Secret in DataOS, you need access to the DataOS Command Line Interface (CLI) and the required permissions.
Step 1: Create a manifest file
Create a manifest file with the configuration details for your Redshift Secret.
name: ${{redshift-secret-name}}
version: v2alpha
type: secret
tags:
- ${{tag-1}}
- ${{tag-2}}
description: "Credentials for redshift depot"
layer: user
secret:
type: key-value
data:
username: ${{redshift-username}}
password: ${{redshift-password}}
aws_access_key: ${{redshift-aws-access-key-id}}
aws_secret_key: ${{redshift-aws-secret-access-key}}For more information about each attribute, refer to the configurations section.
Step 2: Apply the manifest
Use the apply command to create the Redshift Secret in DataOS.
Example Usage:
Step 3: Validate the Secret
Use the get command to verify the Redshift Secret in DataOS.
Expected Output:
To list all Secrets in the DataOS environment, run the following command.
Expected Output:
Delete the Secret
To delete the Redshift Secret, use one of the following commands:
Specify the Resource type and Secret name in the delete command.
Example Usage:
Last updated
Was this helpful?