Before configuring your application, you will need to create a secret in AWS Secrets Manager that contains the the necessary credentials for connecting to various cloud storage services such as Amazon S3, Azure Blob Storage, Google Cloud Storage, and Google Drive.
Create a Secret for Cloud Storage in AWS Secrets Manager #
1- Navigate to AWS Secrets Manager: #
- Open the [AWS Management Console](https://aws.amazon.com/console/).
- Select Secrets Manager from the services menu.
2- Create a New Secret: #
- Choose Other type of secrets.
- In the key value pairs section, add the following keys and values for the specific cloud environment or all cloud storage services such as S3, Blob Storage, GCS, Google Drive, etc.
where you want to run the operations: #
- AWS_ACCESS_KEY_ID: Your AWS access key ID
- AWS_SECRET_ACCESS_KEY: Your AWS secret access key
- AWS_REGION: The region where your S3 bucket is located
- AZURE_ACCOUNT: Your Azure Blob Storage account name
- AZURE_KEY:Your Azure Blob Storage account key
- GCS_SERVICE_ACCOUNT_FILE_KEY: Path to your GCS service account key JSON file
- GCS_PROJECT_NAME: Your Google Cloud project name
- GDRIVE_SERVICE_ACCOUNT_FILE_KEY: Path to your Google Drive service account key JSON file
- GDRIVE_SCOPE: Scope of Google Drive access (e.g., https://www.googleapis.com/auth/drive)
- GDRIVE_ROOT_FOLDER: The root folder ID in Google Drive
3- Name Your Secret: #
Give the secret a meaningful name such as `cloud_storage_connection` , to easily identify the purpose of the stored credentials.
4- Store the Secret #
Save the secret in Secrets Manager to securely store and retrieve the credentials required for connecting to various cloud storage services.