S3 configuration needs to be added to deployment scripts

Description

I have no idea how to use this as I don't do deployment engineering, but we need to add this bucket policy:

{
"Version": "2012-10-17",
"Id": "Policy20160803001",
"Statement": [
{
"Sid": "Stmt20160803001",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::docs.sagebridge.org/*"
}
]
}

Note that the resource ARN changes by environment:
arn:aws:s3:::docs.sagebridge.org/*
arn:aws:s3:::docs-staging.sagebridge.org/*
arn:aws:s3:::docs-develop.sagebridge.org/*
arn:aws:s3:::docs-local.sagebridge.org/*

And this CORS configuration:

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>PUT</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>

Same CORS configuration for each environment.

Environment

None

Status

Assignee

Alx Dark

Reporter

Alx Dark

Labels

None

Validator

Khai Do

Release Version History

None

Story Points

3

Components

Fix versions

Priority

Minor
Configure