Skip to content

osodevops/aws-terraform-module-s3

Repository files navigation

README Header

S3 module to create a bucket with encrpytion, TLS, cors rules and intelligent tiering.

You can see a working example in the ./example directory.


Usage

Requirements

Terraform 1.1.7

Examples

Follow this example

module "s3" {
  source                  = "../"
  s3_bucket_name          = "exaple_bucket_name"
  s3_bucket_acl           = "private"
  s3_bucket_force_destroy = false
  common_tags             = var.common_tags

  # Bucket public access
  restrict_public_buckets = true
  block_public_acls       = true
  block_public_policy     = true
  ignore_public_acls      = true

  versioning = {
    status = "Enabled"
    mfa_delete = "Disabled"
  }

  cors_rule = {
    allowed_headers = ["Authorization"]
    allowed_methods = ["GET"]
    allowed_origins = ["*"]
    expose_headers  = []
    max_age_seconds = 3000
  }
  
}

Need some help

File a GitHub issue, send us an email or tweet us.

The legals

Copyright © 2017-2022 OSO | See LICENCE for full details.

OSO who we are

Who we are

We at OSO help teams to adopt emerging technologies and solutions to boost their competitiveness, operational excellence and introduce meaningful innovations that drive real business growth. Our developer-first culture, combined with our cross-industry experience and battle-tested delivery methods allow us to implement the most impactful solutions for your business.

Looking for support applying emerging technologies in your business? We’d love to hear from you, get in touch by email

Start adopting new technologies by checking out our other projects, follow us on twitter, join our team of leaders and challengers, or contact us to find the right technology to support your business.Beacon