Giter Club home page Giter Club logo

well.terraform.module.s3bucket's Introduction

well.terraform.module.s3bucket

Intro

This Terraform module provides an efficient, repeatable way to create S3 buckets via Terraform that meet Well standards and best practices requirements:

  • KMS Encryption: can use either a specified key or the default AWS S3 key
  • Logging of S3 activity
  • Tags: Optional tags that will be added to the bucket (mandatory tags are automatically included)
  • Versioning on bucket objects: Versioning is required and included by default

Usage

Required parameters only

module "s3bucket-required-only" {
    source = "../well.terraform.module.s3bucket"
    bucket_name = "required-only"
    owning_team = "MyTeam"
}

All parameters

resource "aws_kms_key" "kms_s3_myteam" {
  description             = "KMS key for the MyTeam all-params S3 bucket"
}

module "s3bucket-all-params" {
    source = "../well.terraform.module.s3bucket"
    bucket_name = "all-params"
    owning_team = "MyTeam"
    kms_key_arn = aws_kms_key.kms_s3_myteam.arn
    tags = {
        ProductName = "MyTeamApp"
        ProductVersion = "1.2.3"
    }
}

Inputs

Name Description Type Default Required
bucket_name The name for our bucket string n/a yes
kms_key_arn (Optional) Specified KMS used for bucket encryption string null no
owning_team The team responsible for this bucket string n/a yes
tags (Optional) A mapping of tags to assign to the bucket. map(string) {} no

Outputs

Name Description
s3_bucket_fullname The fullname of our S3 bucket

Providers

Name Version
aws >= 4.67.0

Resources

  • resource.aws_s3_bucket.s3_b (main.tf#13)
  • resource.aws_s3_bucket_server_side_encryption_configuration.s3_sse (main.tf#28)
  • resource.aws_s3_bucket_versioning.s3_bv (main.tf#21)

well.terraform.module.s3bucket's People

Contributors

donbecker avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.