mirror of https://github.com/pulumi/pulumi.git
9 lines
309 B
TypeScript
9 lines
309 B
TypeScript
import * as pulumi from "@pulumi/pulumi";
|
|
import * as aws from "@pulumi/aws";
|
|
|
|
const logs = new aws.s3.Bucket("logs", {});
|
|
const bucket = new aws.s3.Bucket("bucket", {loggings: [{
|
|
targetBucket: logs.bucket,
|
|
}]});
|
|
export const targetBucket = bucket.loggings.apply(loggings => loggings?.[0]?.targetBucket);
|