rhythmic-whale-48997
10/27/2022, 7:28 AMattaching
while Pulumi states that it's created and my code then errors out.
Is there a way to check that Gatway is attached and then do the creation of VpnGatewayRoutePropagation
.
Sample code and errors bellow:
Code:
new aws.ec2.VpnGatewayAttachment("vpnAttachment", {
vpcId: vpc.id,
vpnGatewayId: vpnGatewayId,
});
let counter = 0;
vpc.vpc.mainRouteTableId.apply(id => {
new aws.ec2.VpnGatewayRoutePropagation(`rtp0-0`, {
routeTableId: id,
vpnGatewayId: vpnGatewayId,
});
});
Error:
aws:ec2:VpnGatewayRoutePropagation (rtp0-0):
error: 1 error occurred:
* error enabling Route Table (rtb-0758b4e60d9497beb) VPN Gateway (vgw-059b13ce88dec40dd) route propagation: Gateway.NotAttached: resource vgw-059b13ce88dec40dd
status code: 400, request id: d67fdaa0-7ecf-4019-bc97-1c33007dfd51
strong-helmet-83704
10/27/2022, 6:19 PMrhythmic-whale-48997
10/28/2022, 6:22 AMVpnGatewayAttachment
markes as created even if it is sill attaching.dependsOn
works. Tnx, I totally forgot about itstrong-helmet-83704
10/28/2022, 11:36 PM