s3

Aplyca/s3/aws

Terraform Module HCL AWS

Create S3 bucket optimized for web site hosting

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

Terraform AWS S3 module ========================= > Create a AWS S3 buckets optimized for static web hosting Create a New Public Bucket `` yaml module "public_static_bucket" { source = "Aplyca/s3/aws" version = "0.1.3" name = " " acl = "public-read" read_roles = [" ", " ] Resources with these roles can read the bucket write_roles = [" "] Resources with these roles can write website = [{ index_document = "index.html" error_document = "index.html" }] logging = [ { target_bucket = "logging-bucket-name" target_prefix = "log/" } ] cors_allowed_origins = [""] cors_allowed_headers = [""] cors_allowed_methods = ["GET"] cors_expose_headers = ["ETag"] cors_max_age_seconds = "0" tags { App = "App Name Public Resources" Environment = "Development" } } ` Create non public Bucket ` yaml module "nonpubli

Inputs (22)
NameTypeDescriptionDefault
cors_max_age_secondsstring"0"
versioning_enabledboolEnable versioning of bucket objectsfalse
replication_ruleslistReplication rules[]
tagsmapAdditional tags (e.g. map('BusinessUnit`,`XYZ`){}
cors_allowed_originslist[ "*" ]
cors_allowed_methodslist[ "GET" ]
access_identity_arnstring""
access_identityboolfalse
descriptionstringDescription of policy""
aclstringACL"private"
bucket_domain_formatstring"%s.s3.amazonaws.com"
cors_allowed_headerslist[ "*" ]
lifecycle_rulelist(Optional) A configuration of object lifecycle management[]
replication_rolestringReplication role""
logginglist[]
websitelistWebsite settings[]
read_permissionslistRecieve permissions granted to assumed role[ "s3:GetObject", "s3:ListBucket" ]
write_permissionslistSend permissions granted to assumed role[ "s3:PutObject", "s3:DeleteObject"
write_roleslistWrite permissions roles name[]
read_roleslistRead roles name[]
Outputs (3)
domain
arn
name
Resources (4)
aws_iam_policyaws_iam_role_policy_attachmentaws_s3_bucketaws_s3_bucket_policy
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.2
Cloud AWS
★ Stars5
Forks7
Total downloads13.2k
Inputs22
Outputs3
Resources4
LicenseMIT
NamespaceAplyca
Updated