1.0.1 • Published 2 years ago

@daysmart/cdk-base-cf-acm-r53 v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Welcome to the Open Source Construct for creating Route53 Alias, ACM Certificate, and CloudFront Distribution Base Resources!

This CDK Construct Library includes a simple construct (CdkBaseCfAcmR53) which is meant to be instantiated by the (CdkCloudfrontBehavior) construct. (CdkBaseCfAcmR53) creates a certificate manager certificate with the baseEnv, project, and domains[] provided; it also creates Route53 aliases given the domain format below:

${props.dynamicEnv}-${props.componentName}.${props.baseEnv}.${props.project}.${companyDomainName}

(and for baseEnv == "prod")

${project}.${companyDomainName}

and lastly, this construct creates a cloudfront distribution for the route53 domains and defines a default behavior for the distribution.

The construct defines an interface (CdkBaseCfAcmR53Props) with the following properties that can be passed in:

  • defaultBehaviorOptions: cloudfront.BehaviorOptions => The BehaviorOptions object according to the typescript cdk documentation
  • project: string => The project name (ex. onlineconverter)
  • baseEnv: string => The base environment for this project. (ex. dev)
  • componentName: string => The compoenent/service the url is for in a project (ex. ui)
  • (required only if a dynamic env) dynamicEnv: string => A dynamic environment for this project. (ex. dev-test)
  • (optional) certificateArn: string => The arn of an existing acm certificate; one will be created in the construct if not provided
  • domains: string[] => An array of domain names for this project environment. (ex. 'google.com', 'bing.com', 'apple.com')
  • (optional) loggingBucketName: string => The name of an existing s3 bucket for receiving logs. (ex. logbucket1)

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
1.0.1

2 years ago

1.0.0

2 years ago

0.1.8

3 years ago

0.1.9

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago