Skip to main content Link Menu Expand (external link) Document Search Copy Copied

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.1.0"
  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

  • versioningOptional. Defaults to false. If set to true, then object versioning is enabled in the S3 bucket.

  • aclOptional. 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