Specifically, handle index and relative traversal expressions, and clean up the code a little bit. This should also help us pick up more `pulumi.interpolate` calls in TS.
8 lines
278 B
TypeScript
8 lines
278 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[0].targetBucket;
|