green-musician-49057
04/06/2021, 4:23 PMPolicy: pulumi.All(bucket.ID(), bucket.ID()).ApplyT(func(_args []interface{}) (string, error) {
bucketId := _args[0].(string)
bucketId1 := _args[1].(string)
// Policy fmt.Sprintf() here
}
Why is bucket.ID()
repeated 2x in the pulumi.All()
, and then assigned to two separate variables, bucketId
and bucketId1
? It's the same resource, so why does it need to be referenced 2x for the same policy doc? Is there some extra magic going on under the hood?faint-table-42725
04/06/2021, 5:05 PMwhite-balloon-205
04/07/2021, 7:10 AMgreen-musician-49057
04/07/2021, 3:33 PM