You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strange VPC diffs and failed updates after 'pulumi refresh': "Only 1 of gateway_id, egress_only_gateway_id, nat_gateway_id, instance_id, network_interface_id or vpc_peering_connection_id is allowed"
#267
Closed
ggilmore opened this issue
May 10, 2019
· 2 comments
· Fixed by #268
constvpc=newawsx.ec2.Vpc(`${prefix}-vpc`,{// EKS requires at least two availability zones.numberOfAvailabilityZones: 3,// Ensure that there is a private AND public subnet in each AZ.// The Kubernetes worker nodes will be deployed to the private// subnet.//// The load balancers will be created in the public subnet.subnets: [{type: 'public'},{type: 'private'}],})
Here is the pulumi up preview right after I run pulumi refresh:
aws:ec2:Route (sourcegraph-REDACTED-REDACTED-replica-vpc-private-0-nat-0):
error: Plan apply failed: 1 error occurred:
* updating urn:pulumi:ds-REDACTED-replica-release::sg-REDACTED-REDACTED-replica::awsx:x:ec2:Vpc$awsx:x:ec2:Subnet$aws:ec2/route:Route::sourcegraph-REDACTED-REDACTED-replica-vpc-private-0-nat-0: Error: more than 1 target specified. Only 1 of gateway_id, egress_only_gateway_id, nat_gateway_id, instance_id, network_interface_id or vpc_peering_connection_id is allowed.
aws:ec2:Route (sourcegraph-REDACTED-REDACTED-replica-vpc-private-1-nat-1):
error: Plan apply failed: 1 error occurred:
* updating urn:pulumi:ds-REDACTED-replica-release::sg-REDACTED-REDACTED-replica::awsx:x:ec2:Vpc$awsx:x:ec2:Subnet$aws:ec2/route:Route::sourcegraph-REDACTED-REDACTED-replica-vpc-private-1-nat-1: Error: more than 1 target specified. Only 1 of gateway_id, egress_only_gateway_id, nat_gateway_id, instance_id, network_interface_id or vpc_peering_connection_id is allowed.
aws:ec2:Route (sourcegraph-REDACTED-REDACTED-replica-vpc-private-2-nat-2):
error: Plan apply failed: 1 error occurred:
* updating urn:pulumi:ds-REDACTED-replica-release::sg-REDACTED-REDACTED-replica::awsx:x:ec2:Vpc$awsx:x:ec2:Subnet$aws:ec2/route:Route::sourcegraph-REDACTED-REDACTED-replica-vpc-private-2-nat-2: Error: more than 1 target specified. Only 1 of gateway_id, egress_only_gateway_id, nat_gateway_id, instance_id, network_interface_id or vpc_peering_connection_id is allowed.
pulumi:pulumi:Stack (sg-REDACTED-REDACTED-replica-ds-REDACTED-replica-release):
(node:66606) ExperimentalWarning: queueMicrotask() is experimental.
error: update failed
If I run pulumi upagain (right after that last command), this is the pulumi preview output:
Notably, it looks like gatewayId is being replaced and placed in natGatewayId. This actually looks like it's a bug in the awsx package where we are using gatewayId instead of natGatewayId to provide this. I'm not even sure how that works in the first place, but I believe fixing it in awsx will address the core problem here.
With https://github.com/pulumi/pulumi-awsx/releases/tag/v0.18.3 (Typescript) (and Pulumi CLI
0.17.10
), I see some strange diffs to AWS VPC tags when I runpulumi up
after apulumi refresh
.Here is the code that I use to create the VPC:
Here is the
pulumi up
preview right after I runpulumi refresh
:Here is the
pulumi up
output after that refresh:If I run
pulumi up
again (right after that last command), this is thepulumi preview
output:And that second
pulumi update
succeeds!I have not made any changes to the AWS VPC configuration in between updates.
I'm not sure how to reproduce this, but I'm happy to hop on Slack and try to provide any more information.
The text was updated successfully, but these errors were encountered: