@movenium/distribution-bucket
v1.0.17
Published
1. install pulumi in sub folder
Downloads
24
Keywords
Readme
Usage
- install pulumi in sub folder
mkdir pulumi
cd pulumi
pulumi new aws-typescript
- Add
@movenium/distribution-bucket
yarn add @movenium/distribution-bucket
- Copy this to index.ts
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";
import { DistributionBucket } from "@movenium/distribution-bucket"
let config = new pulumi.Config();
const dist = new DistributionBucket("dist-bucket", {url: config.require("url"), certificateArn: config.require("certificateArn")})
export const bucket = dist.bucketName
export const domain = dist.domain
- Add url and certificationArn to pulumi conf
pulumi config set url <url>
pulumi config set certificateArn <arn>
- run pulumi
pulumi up
Upgrading
Upgrading from 1.0.11 ->
CDN component naming has changed. Because of that you must set addCdnAliasForBackwardscompatibility
to true once (in atleast on pulumi up) so component naming is mapped correctly.