platform-constructs
- Custom AWS Components following best practices for Developer use as objects in projects
- ServerlessWebsite
- Route 53 Domain Hosting
- Web Application Firewall with Filtering Rules
- CloudFront with SSL
- S3 Bucket with Encryption to host Static Files
npm install -g aws-cdk@1.93.0
mkdir website
cd website
npm install platform-constructs
cdk init --language typescript
- websiteFolder -> folder that contains website artifacts
- hook -> CLI command to run before synthesizing cloud formation templates
- stage -> environment to deploy to -> dev | test | prod
- domain -> domain name for the hosted zone
- bucketName -> name of s3 Bucket to host website assets
- createDomainName - create a domain name in the format 'MICROFRONTEND_SERRVICE_NAME-ui.STAGE.apps.DOMAIN'
- createBucketName - create a bucket name in the format 'AWS_ACCOUNT_NUMBER-AWS_REGION-MICROFRONTEND_SERVICE_NAME-STAGE'