danbarr / terraform-aws-nocode-s3-static-website

Terraform module for a no-code enabled S3 static website in AWS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform module aws-nocode-s3-static-website

Provisions an AWS S3 bucket configured for static website hosting, with a sample HashiCafe website.

Enabled for Terraform Cloud no-code provisioning.

Prerequisites

For no-code provisioning, AWS credentials must be supplied to the workspace via environment variables (e.g. AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) or using dynamic provider credentials.

Requirements

Name Version
terraform >= 0.13
aws ~> 5.0
random ~> 3.4

Providers

Name Version
aws ~> 5.0
random ~> 3.4

Modules

No modules.

Resources

Name Type
aws_s3_bucket.www_bucket resource
aws_s3_bucket_ownership_controls.www_bucket resource
aws_s3_bucket_policy.www_bucket resource
aws_s3_bucket_public_access_block.www_bucket resource
aws_s3_bucket_server_side_encryption_configuration.www_bucket resource
aws_s3_bucket_versioning.www_bucket resource
aws_s3_bucket_website_configuration.www_bucket resource
aws_s3_object.images resource
aws_s3_object.index resource
random_integer.product resource
aws_iam_policy_document.s3_public_access_policy data source

Inputs

Name Description Type Default Required
department Value for the department tag. string "WebDev" no
env Value for the environment tag. string n/a yes
hashi_products n/a
list(object({
name = string
color = string
image_file = string
}))
[
{
"color": "#dc477d",
"image_file": "hashicafe_art_consul.png",
"name": "Consul"
},
{
"color": "#ffffff",
"image_file": "hashicafe_art_hcp.png",
"name": "HCP"
},
{
"color": "#60dea9",
"image_file": "hashicafe_art_nomad.png",
"name": "Nomad"
},
{
"color": "#63d0ff",
"image_file": "hashicafe_art_packer.png",
"name": "Packer"
},
{
"color": "#844fba",
"image_file": "hashicafe_art_terraform.png",
"name": "Terraform"
},
{
"color": "#2e71e5",
"image_file": "hashicafe_art_vagrant.png",
"name": "Vagrant"
},
{
"color": "#ffec6e",
"image_file": "hashicafe_art_vault.png",
"name": "Vault"
}
]
no
prefix This prefix will be included in the name of most resources. string n/a yes
region The region where the resources are created. string n/a yes

Outputs

Name Description
endpoint URL endpoint of the website.
product The product which was randomly selected.

About

Terraform module for a no-code enabled S3 static website in AWS

License:MIT License


Languages

Language:HCL 63.8%Language:HTML 36.2%