1.2.5 • Published 3 years ago

@sjmeverett/cfn v1.2.5

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

@sjmeverett/cfn

Deploy with CloudFormation from the comfort of TypeScript!

Overview

This package extends @sjmeverett/cfn-types to add helper functions for common scenarios, and a utility class to help with creating the changeset.

Example

import {
  createS3StaticWebsite,
  createFileAsset,
  DeploymentManager,
} from '@sjmeverett/cfn';

const deploymentBucket = 'my-deployment-bucket';

const websiteZip = createFileAsset('./dist/website.zip');

const website = createS3StaticWebsite({
  SourceBucket: deploymentBucket,
  SourceKey: websiteZip.key,
  HostedZoneName: 'example.com',
  DomainName: 'test.example.com',
  IndexDocument: 'index.html',
  ErrorDocument: 'error.html',
  CertificateArn: 'arn:...',
});

const deployment = new DeploymentManager({
  deploymentBucket,
  stackName: 'MyWebsite',
  stage: 'dev',
  changeId: 'v1',
});

await deployment.uploadStack([...website, websiteZip]);

await deployment.createOrUpdateChangeSet();
1.2.0

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago