s3

clouddrove/s3/aws

Terraform Module HCL AWS

Terraform module to create default S3 bucket with logging and encryption type specific features.

Install
module "s3" {
source = "clouddrove/s3/aws"
version = "2.0.0"
}
⭐ Source on GitHub 📦 Registry page
README

Terraform AWS S3 Terraform module to create default S3 bucket with logging and encryption type specific features. We eat, drink, sleep and most importantly love DevOps. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy Bigger problems are always solved by breaking them into smaller manageable problems . Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller connected yet manageable pieces within the infrastructure. This module is basically combination of Terraform open source and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining th

Inputs (50)
NameTypeDescriptionDefault
versioningboolEnable Versioning of S3.true
sse_algorithmstringThe server-side encryption algorithm to use. Valid values are AES256 and aws:kms"AES256"
object_ownershipstringObject ownership. Valid values: BucketOwnerEnforced, BucketOwnerPreferred or Obj"ObjectWriter"
configuration_statusstringVersioning state of the bucket. Valid values: Enabled, Suspended, or Disabled. D"Enabled"
repositorystringTerraform current module repo"https://github.com/clouddrove/terraform
bucket_policyboolConditionally create S3 bucket policy.false
vpc_endpointsany[]
timeoutsmap(string)Define maximum timeout for creating, updating, and deleting VPC endpoint resourc{}
acl_grantslist(object({ id =A list of policy grants for the bucket. Conflicts with `acl`. Set `acl` to `nullnull
attach_public_policyboolControls if a user defined public bucket policy will be attached (set to `false`true
managedbystringManagedBy, eg 'CloudDrove'."hello@clouddrove.com"
aclstringCanned ACL to apply to the S3 bucket.null
enable_server_side_encryptionboolEnable enable_server_side_encryptionfalse
kms_master_key_idstringThe AWS KMS master key ID used for the SSE-KMS encryption. This can only be used""
bucket_prefixstring (Optional, Forces new resource) Creates a unique bucket name beginning with thenull
force_destroyboolA boolean that indicates all objects should be deleted from the bucket so that tfalse
loggingboolLogging Object to enable and disable loggingfalse
request_payerstring(Optional) Specifies who should bear the cost of Amazon S3 data transfer. Can benull
object_lock_enabledboolWhether S3 bucket should have an Object Lock configuration enabled.false
s3_namestringname of s3 bucketnull
… and 10 more inputs
Outputs (10)
bucket_regional_domain_name — The bucket region-specific domain name. The bucket domain name including the region name, please ref
s3_bucket_lifecycle_configuration_rules — The lifecycle rules of the bucket, if the bucket is configured with lifecycle rules. If not, this wi
s3_bucket_website_endpoint — The website endpoint, if the bucket is configured with a website. If not, this will be an empty stri
s3_bucket_website_domain — The domain of the website endpoint, if the bucket is configured with a website. If not, this will be
id — The ID of the s3 bucket.
bucket_domain_name — The Domain of the s3 bucket.
s3_bucket_hosted_zone_id — The Route 53 Hosted Zone ID for this bucket's region.
arn — The ARN of the s3 bucket.
tags — A mapping of tags to assign to the resource.
s3_bucket_policy — The policy of the bucket, if the bucket is configured with a policy. If not, this will be an empty s
Resources (20)
aws_s3_bucketaws_s3_bucket_accelerate_configurationaws_s3_bucket_aclaws_s3_bucket_analytics_configurationaws_s3_bucket_cors_configurationaws_s3_bucket_intelligent_tiering_configurationaws_s3_bucket_inventoryaws_s3_bucket_lifecycle_configurationaws_s3_bucket_loggingaws_s3_bucket_metricaws_s3_bucket_object_lock_configurationaws_s3_bucket_ownership_controlsaws_s3_bucket_policyaws_s3_bucket_public_access_blockaws_s3_bucket_replication_configurationaws_s3_bucket_request_payment_configurationaws_s3_bucket_server_side_encryption_configurationaws_s3_bucket_versioningaws_s3_bucket_website_configurationaws_vpc_endpoint
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud AWS
★ Stars33
Forks13
Total downloads30.5k
Inputs50
Outputs10
Resources20
LicenseApache-2.0
Namespaceclouddrove
Updated