Repo spins up frontend application setup which include CloudFront distribution, S3 bucket and DNS record, waf.
module "this" {
source = "dasmeta/frontend-app/aws"
version = "1.1.0"
domain = "basic-test-front-app.devops.dasmeta.com"
zone = "devops.dasmeta.com"
providers = { aws : aws, aws.virginia : aws.virginia }
}
Name | Version |
---|---|
terraform | > 1.3.0 |
aws | >= 5.27.0, < 6.0 |
No providers.
Name | Source | Version |
---|---|---|
cdn | dasmeta/modules/aws//modules/cloudfront-ssl-hsts | 2.16.0 |
dns | dasmeta/dns/aws | 1.0.4 |
dns_alternative | dasmeta/dns/aws | 1.0.4 |
s3 | dasmeta/s3/aws | 1.2.1 |
waf | dasmeta/modules/aws//modules/waf | 2.15.6 |
No resources.
Name | Description | Type | Default | Required |
---|---|---|---|---|
alternative_domains | n/a | list(string) |
[] |
no |
alternative_zones | n/a | list(string) |
[] |
no |
cdn_configs | CDN configuration options | object({ |
{ |
no |
domain | domain full name | string |
n/a | yes |
enable_http_security_headers | Whether to enable http security headers by creating pass through lambda handler for cdn | bool |
false |
no |
s3_configs | S3 bucket configuration options | object({ |
{ |
no |
waf | waf configs | any |
null |
no |
zone | R53 zone name | string |
null |
no |
Name | Description |
---|---|
distribution_id | cloudfront distribution id |
s3_bucket_id | s3 bucket name/id |
s3_config | n/a |
web_acl_id | waf arm/id |