Provisions an AWS S3 bucket configured for static website hosting, with a sample HashiCafe website.
Enabled for Terraform Cloud no-code provisioning.
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.
Name | Version |
---|---|
terraform | >= 1.3.0 |
aws | >= 5.0, < 5.17.0 |
random | ~> 3.4 |
Name | Version |
---|---|
aws | 5.16.2 |
random | 3.5.1 |
No modules.
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_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 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
department | Value for the department tag. | string |
"WebDev" |
no |
env | Value for the environment tag. | string |
n/a | yes |
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 |
Name | Description |
---|---|
endpoint | URL endpoint of the website. |
product | The product which was randomly selected. |