sparse-intern-71089
05/20/2020, 9:31 PMlittle-cartoon-10569
05/20/2020, 9:38 PMApply
? Can you post some code?mammoth-night-22453
05/20/2020, 9:43 PM// NAT gateway needs an elastic IP
var elasticIpForNat = new Eip($"{Request.Name}_NAT_Gateway", new EipArgs
{
Vpc = true
});
Result.NatGateway = new NatGateway(NatGatewayName, new NatGatewayArgs
{
SubnetId = PublicPrimarySubnet.Id,
AllocationId = elasticIpForNat.AllocationId
});
little-cartoon-10569
05/20/2020, 9:55 PMAllocationId = elasticIpForNat.Apply(eip => eip.AllocationId)
mammoth-night-22453
05/20/2020, 9:58 PMResult.NatGateway = new NatGateway(NatGatewayName, new NatGatewayArgs
{
SubnetId = PublicPrimarySubnet.Id,
AllocationId = elasticIpForNat.AllocationId.Apply(x=>x)
});
But I get the same error. This did cause a few other things to try to create that it did not get to before - and those failed too, but that's something else I can work throughlittle-cartoon-10569
05/20/2020, 10:02 PMmammoth-night-22453
05/20/2020, 10:35 PM// NAT gateway needs an elastic IP
var elasticIpForNat = new Eip($"{Request.Name}_NAT_Gateway", new EipArgs
{
Vpc = true
});
Result.NatGateway = new NatGateway(NatGatewayName, new NatGatewayArgs
{
SubnetId = PublicPrimarySubnet.Id,
AllocationId = elasticIpForNat.Id
});
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by