|
| 1 | +# Terraform module aws-nocode-s3-static-website |
| 2 | + |
| 3 | +Provisions an AWS S3 bucket configured for static website hosting, with a sample HashiCafe website. |
| 4 | + |
| 5 | +Enabled for Terraform Cloud [no-code provisioning](https://developer.hashicorp.com/terraform/cloud-docs/no-code-provisioning/module-design). |
| 6 | + |
| 7 | +## Prerequisites |
| 8 | + |
| 9 | +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](https://developer.hashicorp.com/terraform/cloud-docs/workspaces/dynamic-provider-credentials). |
| 10 | + |
| 11 | +<!-- BEGIN_TF_DOCS --> |
| 12 | +## Requirements |
| 13 | + |
| 14 | +| Name | Version | |
| 15 | +|------|---------| |
| 16 | +| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13 | |
| 17 | +| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 5.0 | |
| 18 | +| <a name="requirement_random"></a> [random](#requirement\_random) | ~> 3.4 | |
| 19 | + |
| 20 | +## Providers |
| 21 | + |
| 22 | +| Name | Version | |
| 23 | +|------|---------| |
| 24 | +| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.17.0 | |
| 25 | +| <a name="provider_random"></a> [random](#provider\_random) | 3.5.1 | |
| 26 | + |
| 27 | +## Modules |
| 28 | + |
| 29 | +No modules. |
| 30 | + |
| 31 | +## Resources |
| 32 | + |
| 33 | +| Name | Type | |
| 34 | +|------|------| |
| 35 | +| [aws_s3_bucket.www_bucket](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket) | resource | |
| 36 | +| [aws_s3_bucket_ownership_controls.www_bucket](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_ownership_controls) | resource | |
| 37 | +| [aws_s3_bucket_policy.www_bucket](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy) | resource | |
| 38 | +| [aws_s3_bucket_public_access_block.www_bucket](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block) | resource | |
| 39 | +| [aws_s3_bucket_website_configuration.www_bucket](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_website_configuration) | resource | |
| 40 | +| [aws_s3_object.images](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_object) | resource | |
| 41 | +| [aws_s3_object.index](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_object) | resource | |
| 42 | +| [random_integer.product](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/integer) | resource | |
| 43 | +| [aws_iam_policy_document.s3_public_access_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | |
| 44 | + |
| 45 | +## Inputs |
| 46 | + |
| 47 | +| Name | Description | Type | Default | Required | |
| 48 | +|------|-------------|------|---------|:--------:| |
| 49 | +| <a name="input_department"></a> [department](#input\_department) | Value for the department tag. | `string` | `"WebDev"` | no | |
| 50 | +| <a name="input_env"></a> [env](#input\_env) | Value for the environment tag. | `string` | n/a | yes | |
| 51 | +| <a name="input_prefix"></a> [prefix](#input\_prefix) | This prefix will be included in the name of most resources. | `string` | n/a | yes | |
| 52 | +| <a name="input_region"></a> [region](#input\_region) | The region where the resources are created. | `string` | n/a | yes | |
| 53 | + |
| 54 | +## Outputs |
| 55 | + |
| 56 | +| Name | Description | |
| 57 | +|------|-------------| |
| 58 | +| <a name="output_endpoint"></a> [endpoint](#output\_endpoint) | URL endpoint of the website. | |
| 59 | +| <a name="output_product"></a> [product](#output\_product) | The product which was randomly selected. | |
| 60 | +<!-- END_TF_DOCS --> |
0 commit comments