ecs-app-front

DNXLabs/ecs-app-front/aws

Terraform Module HCL AWS

This terraform module is an AWS ECS Application Module (frontend component).

Install
module "ecs-app-front" {
source = "DNXLabs/ecs-app-front/aws"
version = "1.15.0"
}
plain text: /constructs/tfmod-dnxlabs-ecs-app-front-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-ecs-app-front ![Lint Status](https://github.com/DNXLabs/terraform-aws-ecs-app-front/actions) ![LICENSE](https://github.com/DNXLabs/terraform-aws-ecs-app-front/blob/master/LICENSE) This terraform module is an AWS ECS Application Module (frontend component). It's designed to be used with DNXLabs/terraform-aws-ecs (https://github.com/DNXLabs/terraform-aws-ecs). and DNXLabs/terraform-aws-ecs-app (https://github.com/DNXLabs/terraform-aws-ecs-app). The following resources will be created: - Cloudwatch Metrics alarm - Provides a CloudWatch Metric Alarm resource. - Application Load Balancer (ALB) cloudfront key - Key generated by terraform-aws-ecs module to allow ALB connection from CloudFront - ALB Dns Name - ALB DNS Name that CloudFront will point as origin - Certificate Amazon Res

Inputs (33)
NameTypeDescriptionDefault
namestringName of your ECS service required
hosted_zonestringExisting Hosted Zone domain to add hostnames as DNS records required
alb_dns_namestringALB DNS Name that CloudFront will point as origin required
certificate_arnstringCertificate for this app to use in CloudFront (US), must cover `hostname`. required
hostnameslist(string)Hostnames to create DNS record for this app that the cloudfront distribution wil required
alb_cloudfront_keystringKey generated by terraform-aws-ecs module to allow ALB connection from CloudFron required
alarm_cloudfront_500_errors_thresholdnumberCloudfront 500 Errors rate threshold (use 0 to disable this alarm)5
dynamic_custom_origin_configanyConfiguration for the custom origin config to be used in dynamic block[]
cloudfront_function_namestringName of the CloudFront Functionnull
cloudfront_function_event_typestringEvent type to associate with the function: viewer-request or viewer-response"viewer-request"
wafv2_managed_rule_groupslist(string)List of WAF V2 managed rule groups, set to count[ "AWSManagedRulesCommonRuleSet" ]
wafv2_managed_block_rule_groupslist(string)List of WAF V2 managed rule groups, set to block[]
wafv2_rate_limit_rulenumberThe limit on requests per 5-minute period for a single originating IP address (l0
cloudfront_origin_read_timeoutnumberThe amount of time, in seconds, that CloudFront waits for a response from a cust30
cloudfront_logging_bucketstringBucket to store logs from appnull
alarm_sns_topics_uslist(string)Alarm topics to create and alert on metrics on US region[]
restriction_locationlist(any)The ISO 3166-1-alpha-2 codes for which you want CloudFront either to distribute []
dynamic_ordered_cache_behavioranyOrdered Cache Behaviors to be used in dynamic block[]
dynamic_custom_error_responselist(object({ error_code One or more custom error response elements (multiples allowed)[]
cloudfront_forward_headerslist(string)Headers to forward to origin from CloudFront[ "*" ]
iam_certificate_idstringSpecifies IAM certificate id for CloudFront distributionnull
alarm_prefixstringString prefix for cloudwatch alarms. (Optional)"alarm"
cloudfront_function_codestringJavaScript code (cloudfront-js-2.0) of the CloudFront Functionnull
hostname_createboolCreate hostnames in the hosted zone passed?true
minimum_protocol_versionstring The minimum version of the SSL protocol that you want CloudFront to use for "TLSv1.2_2018"
restriction_typestringThe restriction type of your CloudFront distribution geolocation restriction. Op"none"
Outputs (4)
cloudfront_distribution_hostname — The hostname of the CloudFront Distribution (use for DNS CNAME).
cloudfront_zone_id — The Zone ID of the CloudFront Distribution (use for DNS Alias).
aws_cloudfront_origin_access_identity — Define cloudfront origin access identity
cloudfront_distribution_id — The ID of the CloudFront Distribution.
Resources (7)
aws_cloudfront_distributionaws_cloudfront_functionaws_cloudfront_origin_access_identityaws_cloudwatch_metric_alarmaws_route53_recordaws_s3_bucket_policyaws_wafv2_web_acl
Details
FrameworkTerraform Module
LanguageHCL
Version1.15.0
Cloud AWS
★ Stars2
Forks5
Total downloads6.1k
Inputs33
Outputs4
Resources7
LicenseApache-2.0
NamespaceDNXLabs
Updated