acceptable-army-69872
01/10/2020, 6:36 PMfunction getIp (server: aws.ec2.Instance) {
return pulumi.all([server.privateIp]).apply(([privateIp]) => {
return pulumi.interpolate`${privateIp}`;
});
}
to get the IP, but it still gives me the calling toString on an output error instead of the value. Thoughts on how to do this?gentle-diamond-70147
01/10/2020, 6:47 PMpulumi.interpolate
directly in that case.
const userData = pulumi.interpolate`
IP Address: ${instance.publicIp}
Subnet ID: ${vpc.publicSubnetIds[0]}
`;
acceptable-army-69872
01/10/2020, 7:01 PMconst str = pulumi.interpolate'config ${inst.privateIp}';
const otherStr = '${str}'
stocky-spoon-28903
01/12/2020, 7:07 PM