little-cartoon-10569
01/21/2021, 12:28 AMbored-river-53178
01/21/2021, 12:48 AMlittle-cartoon-10569
01/21/2021, 12:49 AMawsx.ec2.Vpc.fromExistingIds()
gives double-wrapped subnet ids, and there's no way (afaik) to make one of those subnet IDs available to a top-level export
.declare module '@pulumi/pulumi' {
export interface OutputInstance<T> {
promise(withUnknowns?: boolean): Promise<T>;
}
}
but that introduces all sorts of issues when pulumi.Input is used in the same file, because Outputs start auto-converting themselves to Promises...bored-river-53178
01/21/2021, 1:08 AMlittle-cartoon-10569
01/21/2021, 1:13 AMpulumi.Input<pulumi.Input<string>[]>
of subnet IDs to the constructor of aws.alb.LoadBalancer, and I want to pass a pulumi.Input<string>
to the constructor of aws.ec2.Instance. I don't want to call any constructors inside a then or apply, as per Pulumi recommendations. How do I do this?bored-river-53178
01/21/2021, 1:15 AMlittle-cartoon-10569
01/21/2021, 1:20 AMpulumi.Input<pulumi.Input<string>[]>
array of private subnet IDs from the VPC, and I'm passing the pulumi.Input<string>
as a config parameter to the stack. This makes for the cleanest code, with no duplication. I'd like to improve that, because I could just pick a random subnet ID from that array.. but I haven't been able to find a way to do it.bored-river-53178
01/21/2021, 1:33 AMvpcs : {
eu-central-1: [
[0]: {
id : "vpc-xxx"
name : "main"
subnetIds : [
[0]: "subnet-xxx"
[1]: "subnet-yyy"
[2]: "subnet-zzz"
]
}
]
}
prehistoric-kite-30979
01/24/2021, 1:54 PM