s3
Aplyca/s3/aws
Create S3 bucket optimized for web site hosting
Install
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)
| Name | Type | Description | Default |
|---|---|---|---|
| cors_max_age_seconds | string | "0" | |
| versioning_enabled | bool | Enable versioning of bucket objects | false |
| replication_rules | list | Replication rules | [] |
| tags | map | Additional tags (e.g. map('BusinessUnit`,`XYZ`) | {} |
| cors_allowed_origins | list | [
"*"
] | |
| cors_allowed_methods | list | [
"GET"
] | |
| access_identity_arn | string | "" | |
| access_identity | bool | false | |
| description | string | Description of policy | "" |
| acl | string | ACL | "private" |
| bucket_domain_format | string | "%s.s3.amazonaws.com" | |
| cors_allowed_headers | list | [
"*"
] | |
| lifecycle_rule | list | (Optional) A configuration of object lifecycle management | [] |
| replication_role | string | Replication role | "" |
| logging | list | [] | |
| website | list | Website settings | [] |
| read_permissions | list | Recieve permissions granted to assumed role | [
"s3:GetObject",
"s3:ListBucket"
] |
| write_permissions | list | Send permissions granted to assumed role | [
"s3:PutObject",
"s3:DeleteObject"
|
| write_roles | list | Write permissions roles name | [] |
| read_roles | list | Read roles name | [] |
Outputs (3)
domainarnnameResources (4)
Details
Similar packages
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,