Pulumi plug-in that enables you to await the value of Output<T>
types.
To use from JavaScript or TypeScript in Node.js, install using either npm
:
npm install @lego/pulumi-get-value
or yarn
:
yarn add @lego/pulumi-get-value
import { getValue } from "@lego/pulumi-get-value"
import * as aws from '@pulumi/aws';
const bucket: aws.s3.Bucket = new aws.s3.Bucket('my-bucket');
// Using `.apply`
bucket.arn.apply((arn) => {
// Use arn
});
// Using `getValue()`
const arn: string = await getValue(bucket.arn);
This project welcomes contributions and suggestions. Would you like to contribute to the project? Learn how to contribute here.