aws-s3-bucket

Adaptavist/aws-s3-bucket/module

Terraform Module HCL MODULE
Install
module "aws-s3-bucket" {
source = "Adaptavist/aws-s3-bucket/module"
version = "1.0.0"
}
plain text: /constructs/tfmod-adaptavist-aws-s3-bucket-module/install.txt
⭐ Source on GitHub 📦 Registry page
README

AWS S3 Website This module creates and configures an S3 bucket for hosting a website. Variables | Name | Type | Required | Default | Description | | --------------- | -------------------------------------- | -------- | ---------- | ------------------------------------- | | domain | string | ✓ | | domain the bucket is hosting for | | index_document | string | | index.html | index object when one isn't specified | | error_document | string | | error.html | error object served | | policy | string | | null | IAM policy attached to the bucket | | routing_rules | string | | null | Routing rules JSON | | logging_enabled | bool | | false | Do you want to enable access logging | | logging_config | object({bucket=string, prefix=string}) | | null | access log configuration | | tags | map(string) | |

Inputs (8)
NameTypeDescriptionDefault
policystringIAM policy attached to the bucket required
routing_rulesstringRouting rules JSON required
logging_configobject({ bucket = string access log configuration required
domainstringdomain required
index_documentstring"index.html"
error_documentstring"error.html"
logging_enabledboolDo you want to enable access loggingfalse
tagsmap(string)tags applied to the resources{}
Outputs (7)
website_bucket_id
website_bucket_arn
website_bucket_name
website_bucket_dns
logging_bucket_id
logging_bucket_arn
logging_bucket_name
Resources (1)
aws_s3_bucket
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud MODULE
★ Stars0
Forks2
Total downloads782
Inputs8
Outputs7
Resources1
NamespaceAdaptavist
Updated