Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.83 KB

README.md

File metadata and controls

43 lines (30 loc) · 1.83 KB

Terraform AWS S3 module

This is a Dynamic modules in Terraform to create a S3 bucket and block public access permissions.

  • main.tf : contains all the resources which will be created with terraform apply command.
  • variables.tf : contains all variables required to create the resources.
  • outputs.tf : contains output attributes of the resources.

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_s3_bucket.s3_bucket resource
aws_s3_bucket_public_access_block.s3_bucket_public_access_block resource

Inputs

Name Description Type Default Required
environment Name of the environment where infrastructure is being built. string n/a yes
name Name is the prefix to use for resources that needs to be created. string n/a yes
region The AWS region where terraform builds resources. string "us-east-1" no
tags Common tags to attach all the resources create in this project. map(string) n/a yes

Outputs

Name Description
bucket_arn The arn of the bucket will be in format arn:aws:s3::bucketname
bucket_id Bucket Name (aka ID)