s3-bucket

dod-iac/s3-bucket/aws

Terraform Module HCL AWS

Creates a AWS S3 bucket.

Install
module "s3-bucket" {
source = "dod-iac/s3-bucket/aws"
version = "2.0.1"
}
plain text: /constructs/tfmod-dod-iac-s3-bucket-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Usage Creates a AWS S3 bucket. ``hcl module "s3_bucket" { source = "dod-iac/s3-bucket/aws" name = format("app-%s-s3-%s", var.application, var.environment) tags = { Application = var.application Environment = var.environment Automation = "Terraform" } } ` Creates an encrypted AWS S3 bucket. `hcl module "s3_kms_key" { source = "dod-iac/s3-kms-key/aws" name = format("alias/app-%s-s3-%s", var.application, var.environment) description = format("A KMS key used to encrypt objects at rest in S3 for %s:%s.", var.application, var.environment) principals = ["*"] tags = { Application = var.application Environment = var.environment Automation = "Terraform" } } module "s3_bucket" { source = "dod-iac/s3-bucket/aws" kms_master_key_id = module.s3_kms_key.aws_kms_key_arn name = format("app-%s-s3-%s", var.ap

Inputs (12)
NameTypeDescriptionDefault
namestringThe name of the AWS S3 bucket. required
object_ownershipstringThe object ownership setting. One of the following values: "BucketOwnerEnforced""ObjectWriter"
lifecycle_ruleslist(object({ id = opA list of lifecycle rules.[]
loggingobject({ bucket = string The `bucket` is the bucket that will receive the log objects. The `prefix` is tnull
notificationslist(object({ id List of notifications to configure.[]
tagsmap(string)Tags applied to the AWS S3 bucket.{}
transfer_acceleration_enabledboolIf true, then AWS S3 Transfer Acceleration is enabled for the bucket.false
versioning_enabledboolEnable versioning. Once you version-enable a bucket, it can never return to an utrue
grantslist(object({ id List of ACL policy grants.[]
server_side_encryptionobject({ bucket_key_enableThe kms_master_key_id is the default KMS used for server-side encryption. If bunull
require_acl_bucket_owner_full_controlboolRequire the object ACL be set to "bucket-owner-full-control" on all PutObject APfalse
require_tlsboolRequire all API requests to use TLS connections.false
Outputs (6)
arn — The Amazon Resource Name (ARN) of the AWS S3 Bucket.
bucket_regional_domain_name — The regional domain name of the AWS S3 Bucket.
id — The ID of the AWS S3 Bucket.
endpoint_transfer_acceleration — If AWS S3 Transfer Acceleration is enabled, then the endpoint to use over IPv4.
endpoint_transfer_acceleration_dual_stack — If AWS S3 Transfer Acceleration is enabled, then the dual-stack endpoint to use over IPv4 or IPv6.
region — The AWS region this bucket resides in.
Resources (11)
aws_s3_bucketaws_s3_bucket_accelerate_configurationaws_s3_bucket_aclaws_s3_bucket_lifecycle_configurationaws_s3_bucket_loggingaws_s3_bucket_notificationaws_s3_bucket_ownership_controlsaws_s3_bucket_policyaws_s3_bucket_public_access_blockaws_s3_bucket_server_side_encryption_configurationaws_s3_bucket_versioning
Topics & Tags
terraformawss3
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.1
Cloud AWS
★ Stars1
Forks2
Total downloads5.8k
Inputs12
Outputs6
Resources11
Examples7
LicenseNOASSERTION
Namespacedod-iac
Updated