static-app
DNXLabs/static-app/aws
This is a module that creates a static application with a OAI Cloudfront.
terraform-aws-static-app   This is a module that creates a static application with a OAI Cloudfront. The following resources will be created: - A bucket to store logs from app - An Amazon CloudFront origin access identity - Enable an optional web acl (WAF) to attach to CloudFront - A hostname in the hosted zone passed - AWS Identity and Access Management (IAM) policy for the S3 Bucket Error: Variables not allowed: Variables may not be used here. Author Module managed by DNX Solutions. License Apache 2 Licensed. See LICENSE for full details.
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | Name of static app | required |
| hostnames | list(string) | List of hostnames to associate with the CloudFront distribution | required |
| s3_bucket_id | string | S3 Bucket ID to serve the static app from | required |
| hosted_zone | string | Hosted zone ID to create the record in | required |
| certificate_arn | string | Certificate ARN in us-east-1 for CloudFront | required |
| cloudfront_web_acl_id | string | Optional web acl (WAF) to attach to CloudFront | "" |
| dynamic_ordered_cache_behavior | list(object({ path_pattern | Ordered Cache Behaviors to be used in dynamic block | null |
| default_cache_behavior_forward_headers | list(string) | Default cache behavior headers forward | [
"Access-Control-Request-Headers",
|
| default_cache_behavior_cookies_forward | string | Default cache behavior cookies forward | "all" |
| hostname_alias | bool | Create an Alias host in route53 for Cloudfront (instead of CNAME)? | false |
| restriction_location | list(any) | The ISO 3166-1-alpha-2 codes for which you want CloudFront either to distribute | [] |
| default_root_object | string | Set the default file for the application | "index.html" |
| wait_for_deployment | bool | If enabled, the resource will wait for the distribution status to change from In | false |
| default_cache_behavior_response_headers_id | string | The identifier for a response headers policy | "" |
| lambda_edge | any | Lambda EDGE configuration | [] |
| alarms | map(any) | The keys of the map are the metric names. This list must be given as a comma-sep | {} |
| hostname_create | bool | Create hostname in the hosted zone passed? | true |
| module_enabled | bool | Enable the module to create resources | true |
| cloudfront_function_arn | string | ARN of an existing CloudFront Function (use this if create_cloudfront_function=f | null |
| response_page_path | string | Custom error response page path | "/index.html" |
| default_threshold | number | The default threshold for the metric. | 5 |
| restriction_type | string | The restriction type of your CloudFront distribution geolocation restriction. Op | "none" |
| dynamic_custom_origin_config | any | Configuration for the custom origin config to be used in dynamic block | [] |
| default_cache_behavior_forward_query_string | bool | Default cache behavior forward | true |
| cloudfront_logging_prefix | string | Logging prefix | "" |
cloudfront_distribution_id — CloudFront Distribution IDcloudfront_key_group_id — CloudFront Key Group IDcloudfront_public_key_id — CloudFront Key Group IDresponse_headers_policies_ids — Response headers policies for Cloudfrontcf_domain_name — CloudFront Domain NameAzure 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,