Inspired by this module, but split up in different modules and added various security and other settings (e.g. encryption, access logging, versioning, ...).
Inputs
Name
Description
Type
Default
Required
bucket_name
The name of the bucket.
string
"static-web"
no
deployer_groups
The IAM groups that will get the policy assigned to deploy to the s3 bucket
list(string)
[]
no
deployer_users
The IAM users that will get the policy assigned to deploy to the s3 bucket
list(string)
[]
no
environment
Environment of the project. Also used as a prefix in names of related resources.
string
n/a
yes
logging_prefix
A prefix in names for logging bucket
string
"logs/"
no
manage_log_bucket
Defines whether this module should generate and manage its own s3 bucket for logging
bool
"true"
no
project
Name of the project. Also used as a prefix in names of related resources.