salmon-account-74572
08/07/2019, 3:01 PMgetAvailabilityZones
function in pulumi/@aws
shows the use of the output
function to access the data returned by the function. However, the only way I was able to make it work was without the output
function, like so:
const rawAzInfo = aws.getAvailabilityZones({
state: "available",
});
let azNames: Array<string> = rawAzInfo.names;
let numberOfAZs: number = azNames.length;
Am I missing/overlooking/not understanding something? Or is this an error in the docs?white-balloon-205
08/07/2019, 4:19 PMsalmon-account-74572
08/07/2019, 4:20 PMwhite-balloon-205
08/07/2019, 4:22 PM