great-sunset-355
07/12/2021, 8:02 AMregister_outputs
should work with secrets opts=ResourceOptions(additional_secret_outputs=['password'])
The result of the code above is this for both the First
and the Second
component.
I'm probably doing something wrong that the password
is not marked as a secret value in resource outputs.
here is the result of pulumi stack export
{
"version": 3,
"resources": [
{
"urn": "urn:pulumi:dev::tests::pulumi:pulumi:Stack::tests-dev",
"custom": false,
"type": "pulumi:pulumi:Stack"
},
{
"urn": "urn:pulumi:dev::tests::custom:first::first",
"custom": false,
"type": "custom:first",
"outputs": {
"password": "222222",
"w2": "222222"
},
"parent": "urn:pulumi:dev::tests::pulumi:pulumi:Stack::tests-dev",
"additionalSecretOutputs": [
"password"
]
},
{
"urn": "urn:pulumi:dev::tests::custom:second::second",
"custom": false,
"type": "custom:second",
"outputs": {
"password": "Secret"
},
"parent": "urn:pulumi:dev::tests::pulumi:pulumi:Stack::tests-dev",
"additionalSecretOutputs": [
"password"
]
}
]
}
}
billowy-army-68599
07/12/2021, 4:29 PMadditional_secret_outputs
on the resource itself, not on the component. See here:
https://github.com/pulumi/examples/blob/ca40203279f393c0c159dadcadc97c6007122997/aws-py-assume-role/create-role/__main__.py#L40great-sunset-355
07/12/2021, 4:49 PMbillowy-army-68599
07/12/2021, 4:50 PMgreat-sunset-355
07/12/2021, 4:51 PMOutput
billowy-army-68599
07/12/2021, 4:55 PMgreat-sunset-355
07/12/2021, 7:29 PM