s3_buckets
Description
The Provose s3_buckets
module is a mapping of S3 buckets–which must have globally unique names–and some basic settings.
Examples
module "myproject" {
source = "github.com/provose/provose?ref=v1.0.2"
provose_config = {
authentication = {
aws = {
region = "us-east-1"
}
}
name = "myproject"
internal_root_domain = "example-internal.com"
internal_subdomain = "production"
}
s3_buckets = {
"example-bucket-name.example.com" = {}
"some-other-unique-bucket-name" = {
versioning = true
}
"third-bucket" = {
acl = "private"
}
}
}
Inputs
-
versioning
– Optional. Defaults tofalse
. If set totrue
, then object versioning is enabled in the S3 bucket. -
acl
– Optional. This is a field to specify a “canned ACL.” The default ACL is"private
”, where the bucket owner gets full control and nobody else has access rights. Valid ACL values are"private"
,"public-read"
,"public-read-write"
,"aws-read-exec"
,"authenticated-read"
,"bucket-owner-read"
,"bucket-owner-full-control"
, or"log-delivery-write"
. The meaning of these canned ACLs can be read on this page in the AWS documentation.
Outputs
s3_buckets.aws_s3_bucket.s3
– This is a mapping from bucket names toaws_s3_bucket
resources.