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.
No requirements.
Name | Version |
---|---|
aws | n/a |
No modules.
Name | Type |
---|---|
aws_s3_bucket.s3_bucket | resource |
aws_s3_bucket_public_access_block.s3_bucket_public_access_block | resource |
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 |
Name | Description |
---|---|
bucket_arn | The arn of the bucket will be in format arn:aws:s3::bucketname |
bucket_id | Bucket Name (aka ID) |