Skip to content

champ-oss/terraform-aws-s3

Repository files navigation

terraform-aws-s3

A Terraform module for creating an AWS S3 Bucket

.github/workflows/module.yml .github/workflows/lint.yml .github/workflows/sonar.yml

SonarCloud

Quality Gate Status Vulnerabilities Reliability Rating

Example Usage

See the examples/ folder

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_s3_bucket.this resource
aws_s3_bucket_acl.this resource
aws_s3_bucket_lifecycle_configuration.this resource
aws_s3_bucket_policy.this resource
aws_s3_bucket_public_access_block.this resource
aws_s3_bucket_request_payment_configuration.this resource
aws_s3_bucket_server_side_encryption_configuration.this resource
aws_s3_bucket_versioning.this resource
aws_elb_service_account.this data source
aws_iam_policy_document.combined data source
aws_iam_policy_document.lb data source

Inputs

Name Description Type Default Required
acl https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_acl#acl string "private" no
block_public_acls https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block#block_public_acls bool true no
block_public_policy https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block#block_public_policy bool true no
enable_lb_policy Enable Load Balancer log delivery policy bool false no
enable_requester_pays https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_request_payment_configuration bool false no
expiration_lifecycle_days https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_lifecycle_configuration#days number 90 no
expiration_lifecycle_enabled https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_lifecycle_configuration#status bool false no
expiration_lifecycle_prefix https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_lifecycle_configuration#prefix string "/" no
git Identifier to be used on all resources string n/a yes
ignore_public_acls https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block#ignore_public_acls bool true no
kms_master_key_id https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_server_side_encryption_configuration#kms_master_key_id string null no
name Name used to identify the bucket string "s3" no
policy https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy#policy string "" no
protect Enables deletion protection on eligible resources bool true no
restrict_public_buckets https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block#restrict_public_buckets bool true no
sse_algorithm https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_server_side_encryption_configuration#sse_algorithm string "AES256" no
tags https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html map(string) {} no
use_name_prefix https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#bucket_prefix bool true no
versioning https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_versioning#status bool true no

Outputs

Name Description
arn https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#arn
bucket https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#id

Features

Contributing

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages