Coder Social home page Coder Social logo

aws_s3_bucket's Introduction

S3 Bucket Module

This Terraform module creates an S3 bucket with best practices for security, scalability, reliability, and reuse.

Usage

module "s3_bucket" {
  source  = "path_to_your_module"

  bucket_name            = "my-bucket"
  acl                    = "private"
  versioning             = true
  lifecycle_enabled      = true
  lifecycle_transition_days = 30
  lifecycle_expiration_days = 365
  sse_algorithm          = "AES256"
  environment            = "prod"
  tags                   = {
    "Owner" = "user"
  }
  read_access_principals = ["arn:aws:iam::123456789012:role/ReadAccessRole"]
  write_access_principals = ["arn:aws:iam::123456789012:role/WriteAccessRole"]
}

output "bucket_id" {
  value = module.s3_bucket.bucket_id
}

output "bucket_arn" {
  value = module.s3_bucket.bucket_arn
}

output "bucket_domain_name" {
  value = module.s3_bucket.bucket_domain_name
}

aws_s3_bucket's People

Contributors

cavadus 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.