Terraform module which deploys a static website to a S3 bucket.
See: https://registry.terraform.io/modules/kota65535/s3-deployment/aws/
Name | Version |
---|---|
terraform | >= 1.4.0 |
shell | >= 1.7 |
temporary | >= 0.2 |
unarchive | >= 0.4 |
Name | Version |
---|---|
shell | >= 1.7 |
temporary | >= 0.2 |
unarchive | >= 0.4 |
No modules.
Name | Type |
---|---|
shell_script.invalidation | resource |
shell_script.objects | resource |
shell_script.modifications | data source |
temporary_directory.archive | data source |
unarchive_file.main | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
archive_path | Path of the archive file containing your static website resources | string |
n/a | yes |
aws_config | AWS CLI configurations. See AWS provider's configuration reference | object({ |
{} |
no |
bucket | Name of a S3 bucket for hosting your static website | string |
n/a | yes |
cloudfront_distribution_id | CloudFront distribution ID. Used to invalidate the cache when any resources has changed | string |
null |
no |
file_exclusions | Glob patterns to exclude files when extracting the archive | list(string) |
null |
no |
file_patterns | Glob patterns to filter files when extracting the archive | list(string) |
null |
no |
file_replacements | File replacement settings. * filename : Name of the file to be replaced. Glob pattern is available. If patterns of the multiple settings match, only the first matched one is used. * content : Content string to store in the file |
list(object({ |
[] |
no |
json_overrides | JSON override settings. * filename : Name of a JSON file whose properties will be overridden. Glob pattern is available. If patterns of the multiple settings match, only the first matched one is used. * content : JSON string whose properties will override them |
list(object({ |
[] |
no |
object_metadata | Object metadata settings. * glob : Glob pattern to match files to set metadata values. If patterns of the multiple settings match, only the first matched one is used. * cache_control : Cache-Control metadata value * content_disposition : Content-Disposition metadata value * content_encoding : Content-Encoding metadata value * content_language : Content-Language metadata value * content_type : Content-Type metadata value |
list(object({ |
[] |
no |
resources_depends_on | Optional 'depends_on' values for resources only to control the deployment order | list(any) |
[] |
no |
No outputs.