Amazon S3
how to configure preen to connect to Amazon S3.
Credentials
Preen's Amazon S3 integration uses the AWS SDK's credential chain to authenticate requests. This means you don't need to explicitly provide access keys in your application code or environment variables. Instead, the SDK will automatically look for credentials in the following order:
Environment variables
Shared credential file (~/.aws/credentials)
AWS IAM role for Amazon EC2 or ECS tasks
Setting Up Credentials
To set up your credentials, you have several options:
AWS CLI Configuration: If you have the AWS CLI installed, you can run
aws configure
to set up your credentials. This will create a shared credential file.Shared Credentials File: Manually create or edit the file
~/.aws/credentials
(on Linux/Mac) or%UserProfile%\.aws\credentials
(on Windows) with the following content:
Environment Variables: Set the following environment variables:
IAM Roles: If your application is running on an AWS EC2 instance or ECS task, you can assign an IAM role with the necessary permissions to access S3.
Region and Bucket Configuration
Region and bucket name are specified in your Preen source configuration.
Preen Source and Model Configuration for Amazon S3
Last updated