GithubHelp home page GithubHelp logo

kendavis2 / terraform-s3-employee Goto Github PK

View Code? Open in Web Editor NEW

This project forked from turnerlabs/terraform-s3-employee

0.0 0.0 0.0 13 KB

A terraform module that creates a tagged S3 bucket with federated assumed role access

License: Other

HCL 100.00%

terraform-s3-employee's Introduction

terraform-s3-employee

A terraform module that creates a tagged S3 bucket with federated assumed role access using KMS key encryption by default.

Note that the role_users and roles must be valid roles that exist in the same account that the script is run in.

Inputs

Name Description Type Default Required
bucket_name name of the bucket string - yes
role_users bucket access: list of federated assumed role users (e.g., aws-account-devops/[email protected]). Roles must exist in the target account and are case sensitive. list - yes
roles bucket and kms key access: list roles that have access to encrypt and decrypt bucket content (e.g., aws-account-devops). Roles must exist in the target account and are case sensitive. list - yes
tag_application application tag string - yes
tag_contact-email contact-email tag string - yes
tag_customer customer tag string - yes
tag_environment environment tag string - yes
tag_team team tag string - yes
versioning enable versioning string false no
multipart_delete enable incomplete multipart upload deletion string true no
multipart_days incomplete multipart upload deletion days string 3 no

Outputs

Name Description
bucket_arn the arn of the bucket that was created

usage example

provider "aws" {
  profile = "aws-account:aws-account-devops"
}

module "s3_employee" {
  source      = "github.com/turnerlabs/terraform-s3-employee?ref=v0.2.0"
  
  bucket_name = "my-bucket"

  role_users = [
    "aws-account-devops/[email protected]",
    "aws-account-devops/[email protected]",
  ]

  roles = [
    "dev-my-task-role",
    "qa-my-task-role",
  ]

  tag_team          = "my-team"
  tag_contact-email = "[email protected]"
  tag_application   = "my-app"
  tag_environment   = "dev"
  tag_customer      = "my-customer"
}
terraform init
terraform plan
terraform apply

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.