This package has been deprecated

Author message:

This package has been deprecated. Please use @aligent/cdk-static-hosting instead.

@aligent/aws-cdk-static-hosting-stack
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Aligent AWS Static Hosting Stack

Overview

This repository defines a CDK stack for hosting a static website on AWS using S3 and CloudFront. It can be imported and use within CDK application.

Example

The following CDK snippet can be used to provision the static hosting stack.

import 'source-map-support/register';
import * as cdk from '@aws-cdk/core';
import { StaticHostingStack } from '@aligent/aws-cdk-static-hosting-stack'
import { Construct } from '@aws-cdk/core';

const hostingStackProps = {
     env: {
          region: 'ap-southeast-2',
          account: 'account-id-goes-here',
     },
     stackName: 'stack-name',
     subDomainName: 'sub.domain',
     domainName: 'domain.tld',
     certificateArn: 'arn:aws:acm:us-east-1:123456789:certificate/some-arn-id',
     createDnsRecord: true,
     createPublisherGroup: true,
     createPublisherUser: true,
};

const app = new cdk.App();

new StaticHostingStack(scope, 'PWA-hosting-stack', hostingStackProps);

Readme

Keywords

none

Package Sidebar

Install

npm i @aligent/aws-cdk-static-hosting-stack

Weekly Downloads

1

Version

0.1.1

License

GPL-3.0-only

Unpacked Size

59.3 kB

Total Files

9

Last publish

Collaborators

  • torbjorn.vanheeswijck
  • aligent-bot
  • aligent-danielvanderploeg
  • luke-denton-aligent
  • jarrod.swift