sparse-intern-71089
06/01/2022, 9:41 AMmammoth-diamond-90308
06/01/2022, 9:44 AM@pulumi/cdk
dependency
• install aws-cdk-lib
dependency
• added small chunk of code to create S3 bucket (next message)
• pulumi preview
or pulumi up
mammoth-diamond-90308
06/01/2022, 9:45 AMimport * as pulumi from "@pulumi/pulumi";
import * as pulumicdk from "@pulumi/cdk";
import * as s3 from "aws-cdk-lib/aws-s3";
class TestStack extends pulumicdk.Stack {
bucketName: pulumi.Output<string>;
constructor(id: string, options?: pulumicdk.StackOptions) {
super(id, options);
const testBucket = new s3.Bucket(this, "TestBucket", {
bucketName: "juan-pulumi-cdk-test-bucket",
});
this.bucketName = this.asOutput(testBucket.bucketName);
this.synth();
}
}
const stack = new TestStack("teststack");
export const url = stack.bucketName;
mammoth-diamond-90308
06/01/2022, 9:45 AMsparse-park-68967
06/01/2022, 6:06 PMmammoth-diamond-90308
06/01/2022, 6:15 PMsparse-park-68967
06/01/2022, 6:18 PMmammoth-diamond-90308
06/01/2022, 6:21 PMmammoth-diamond-90308
06/01/2022, 6:22 PMmammoth-diamond-90308
06/01/2022, 6:23 PMsparse-park-68967
06/01/2022, 6:25 PMquaint-hydrogen-7228
06/12/2022, 4:05 PM