serverless-react

chroto/serverless-react/aws

Terraform Module HCL AWS

Terraform module which creates S3, CloudFront, and Route53 resources for hosting a React application

Install
module "serverless-react" {
source = "chroto/serverless-react/aws"
version = "1.0.0"
}
plain text: /constructs/tfmod-chroto-serverless-react-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

AWS Serverless React Terraform module ================================================ Terraform module which creates S3 and CloudFront resources for hosting a React application. These types of resources are supported: CloudFront Distribution S3 Bucket Usage ----- ``hcl module "my-app" { source = "chroto/serverless-react/aws" name = "my-app" `` Examples -------- Known Issues/Limitations ------------------------ CloudFront restrictions can not be configured Custom aliases and domain names are unavailable * Custom SSL Certificates are not supported Authors ------- Module managed by Chris Proto. License ------- Apache 2 Licensed. See LICENSE for full details.

Inputs (8)
NameTypeDescriptionDefault
nameanyThe name for the application required
logging_configanyList of config maps to describe the CloudFront logging configuration[]
min_ttlanyThe minimum amount of time that you want objects to stay in CloudFront caches be0
default_ttlanyThe default amount of time (in seconds) that an object is in a CloudFront cache 3600
max_ttlanyThe maximum amount of time (in seconds) that an object is in a CloudFront cache 86400
error_caching_min_ttlanyhe minimum amount of time you want HTTP error codes to stay in CloudFront caches60
environmentanyTag the resources with an environment. Default is `development`"development"
price_classanySet the price class for the CloudFront distribution"PriceClass_100"
Outputs (3)
cloudfront_id — The ID of the CloudFront distribution fronting the application
s3_bucket_id — The ID of the S3 Bucket hosting the application
domain_name — The CloudFront domain name
Resources (4)
aws_cloudfront_distributionaws_cloudfront_origin_access_identityaws_s3_bucketaws_s3_bucket_policy
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AWS
★ Stars3
Forks2
Total downloads6.7k
Inputs8
Outputs3
Resources4
LicenseNOASSERTION
Namespacechroto
Updated