Skip to content

zoitech/terraform-aws-s3-encrypted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-s3-encrypted

Terrafor module for creating encrypted S3 buckets in AWS

Description

This module creates the following resources:

  • S3 buckets

Features:

  • Optional full bucket encryption
  • Canned ACL
  • Optional versioning
  • Restrict public access
  • Tagging

Usage Example

module "my_bucket" {
  providers = {
    "aws" = "aws.module"
  }
  source            = "git::https://github.com/zoitech/terraform-aws-s3-encrypted.git?ref=1.1.2"
  bucket_name       = "my-bucket"
  region            = "eu-central-1"
  kms_master_key_id = "arn:aws:kms:us-central-1:111122223333:alias/my-key"
  acl               = "private"
  enable_versioning = true
  block_public_acls         = true
  ignore_public_acls        = true
  block_public_policy       = true
  restrict_public_buckets   = true
  bucket_tags = {
    creation      = "terraform"
    project       = "my-project"
  }
}

About

Module for creating encrypted S3 buckets in AWS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages