sparse-intern-71089
11/08/2023, 10:03 PMmost-mouse-38002
11/14/2023, 3:13 PMctx.Export("name", structName)
, but I would not recommend exporting everything as a way of debugging. Generally, once you have this information it has already been applied to your cloud provider and “works”.magnificent-actor-34704
11/16/2023, 10:39 PM{
"4dabf18193072939515e22adb298388d": "5cf8f73096256a8f31e491e813e4eb8e",
"packageVersion": "",
"urn": "urn:pulumi:dev::{project}::infra-pulumi-pkgs:externalS3Bucket:WithUser::{project}-dev-external-s3-bucket"
}
It's got like the urn, but none of the actual information I would want to see, i.e. vpcs in a cluster, s3 bucket arn, aws access key id for component resources containing those things. This is useful for more than just debugging, as it makes it a lot easier to get stack references. For example if you want to get any of the things above, or you just forgot that you wanted something in the outputs to stack reference, if you export all the values you don't have to go back and redeploy the initial stack because you've already got all the values you could possibly want available in the outputs. Pulumi takes care of making sure that secrets aren't shown, so I don't believe this is a security riskmost-mouse-38002
11/17/2023, 9:31 AMmagnificent-actor-34704
11/17/2023, 2:45 PMif err := ctx.RegisterResourceOutputs(esb, pulumi.Map{
"bucket": bucket,
"user": user,
"access_key": accessKey,
}); err != nil {
return nil, err
}