UNPKG

@gammarers/aws-frontend-web-app-deploy-stack

Version:

This is an AWS CDK Construct to make deploying a Frontend Web App (SPA) deploy to S3 behind CloudFront.

18 lines (17 loc) 690 B
import * as cdk from 'aws-cdk-lib'; import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; import { Construct } from 'constructs'; export interface CloudFrontOptions { readonly priceClass?: cloudfront.PriceClass; } export interface FrontendWebAppDeployStackProps extends cdk.StackProps { readonly domainName: string; readonly hostedZoneId: string; readonly originBucketName: string; readonly logBucketArn: string; readonly deploySourceAssetPath: string; readonly cloudFrontOptions?: CloudFrontOptions; } export declare class FrontendWebAppDeployStack extends cdk.Stack { constructor(scope: Construct, id: string, props: FrontendWebAppDeployStackProps); }