Simple Storage Service (Amazon S3)
Create a Secret for securing Amazon S3 credentials.
Prerequisites
To create a Secret for securing Amazon Simple Storage Service (S3) 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
Access Key ID: The access key ID used to authenticate AWS requests. Retrieve this from the AWS Management Console under IAM > Users, selecting the relevant user, and viewing their Security Credentials.
AWS Access Key ID: The AWS-specific access key ID. Retrieve this from the IAM > Users section in the AWS Management Console under Security Credentials.
AWS Secret Access Key: The secret access key paired with the AWS access key ID. AWS displays this only once when the key is generated. If lost, create a new access key in the IAM > Users section under Security Credentials.
Secret Key: Another key used for authentication.
Create a Secret for securing Amazon S3 credentials
S3 is an object storage system. Object stores are distributed storage systems for managing large amounts of unstructured data.
To create an S3 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 S3 Secret.
name: ${{aws-secret-name}}
version: v2alpha
type: secret
tags:
- ${{tag-1}}
- ${{tag-2}}
description: "Credentials for s3 depot"
layer: user
secret:
type: key-value
data:
aws_access_key: ${{s3-aws-access-key}}
aws_secret_key: ${{s3-aws-secret-key}}For more information about each attribute, refer to the configurations section.
Step 2: Apply the manifest
Use the apply command to create the S3 Secret in DataOS.
Example Usage:
Step 3: Validate the Secret
Use the get command to verify the S3 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 S3 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?