- Create an S3 bucket in your AWS account (or use an equivalent service).
- Create an IAM user with access to this bucket. Ensure the user has the necessary permissions to read from and write to the bucket.
-
Configure CORS for the S3 bucket permissions, by adding the following under “Cross-origin resource sharing (CORS)”:
-
Set the following environment variables in your OpnForm installation (
api/.env):AWS_ACCESS_KEY_ID: Your IAM user’s access key IDAWS_SECRET_ACCESS_KEY: Your IAM user’s secret access keyAWS_DEFAULT_REGION: The AWS region where your S3 bucket is locatedAWS_BUCKET: The name of your S3 bucket