We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the following YAML program file is empty, but fileVar is correctly exported.
file
fileVar
name: yaml-bucket runtime: yaml variables: fileVar: fn::fileAsset: ./file.txt resources: bucket: type: aws:s3:BucketV2 textFile: type: aws:s3:BucketObjectv2 properties: bucket: ${bucket.id} source: fn::fileAsset: ./file.txt key: file.txt outputs: bucket: ${bucket.id} file: ${textFile.source} fileVar: ${fileVar}
Output:
Outputs: bucket : output<string> fileVar: asset(file:1c5b885) { ./file.txt }
In Python file is properly exported:
import pulumi from pulumi_aws import s3 bucket = s3.BucketV2("my-bucket") file = s3.BucketObjectv2( "file.txt", bucket=bucket.id, source=pulumi.FileAsset("./file.txt") ) pulumi.export("bucket", bucket.id) pulumi.export("file", file.source) pulumi.export("fileVar", pulumi.FileAsset("./file.txt"))
Outputs: bucket : output<string> file : { path: "./file.txt" } fileVar: { path: "./file.txt" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the following YAML program
file
is empty, butfileVar
is correctly exported.Output:
In Python
file
is properly exported:Output:
The text was updated successfully, but these errors were encountered: