Description
- when setup cloud9 using node 18,it get error.
- when deploy eth sync node, need public subnets in default vpc, and the public subnets need to set
Auto-assign public IPv4 address
to YES
- when deploy eth rpc node, need at least two public subnets in different Availability Zones, and the cdk stack need to find the right public subnets
- [ yes] โ I have searched the open/closed issues and my issue is not listed.
Versions
2.95.1
Reproduction Code [Required]
nvm install 16
nvm use 16
nvm alias default 16
const vpcSubnets= {
subnetType: ec2.SubnetType.PUBLIC,
onePerAz: true,
availabilityZones: availabilityZones,
}
Steps to reproduce the behavior:
there are two public subnets in default vpc, which in az a and az f.
deploy eth rpc node using:
npx cdk deploy eth-rpc-nodes --json --outputs-file rpc-node-deploy.json
Expected behavior
the stack need to success
Actual behavior
eth-rpc-nodes (eth-rpc-nodes-geth-lighthouse): deploying... [1/1]
eth-rpc-nodes-geth-lighthouse: creating CloudFormation changeset...
1:51:52 AM | CREATE_FAILED | AWS::ElasticLoadBalancingV2::LoadBalancer | rpcnodesalbB907C546
Resource handler returned message: "At least two subnets in two different Availability Zones must be specified (Service: ElasticLoadBalancingV2, Status Code: 400, Request ID: d66b6cac-fa9f-4a15-a415-44929a702e73)" (RequestTo
ken: bcf88faf-74eb-eaec-7e1d-0af97aa6292e, HandlerErrorCode: InvalidRequest)
Terminal Output Screenshot(s)
โ eth-rpc-nodes (eth-rpc-nodes-geth-lighthouse) failed: Error: The stack named eth-rpc-nodes-geth-lighthouse failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "At least two subnets in two different Availability Zones must be specified (Service: ElasticLoadBalancingV2, Status Code: 400, Request ID: d66b6cac-fa9f-4a15-a415-44929a702e73)" (RequestToken: bcf88faf-74eb-eaec-7e1d-0af97aa6292e, HandlerErrorCode: InvalidRequest)
at FullCloudFormationDeployment.monitorDeployment (/home/ec2-user/environment/aws-blockchain-node-runners/node_modules/aws-cdk/lib/index.js:443:10232)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.deployStack2 [as deployStack] (/home/ec2-user/environment/aws-blockchain-node-runners/node_modules/aws-cdk/lib/index.js:446:153546)
at async /home/ec2-user/environment/aws-blockchain-node-runners/node_modules/aws-cdk/lib/index.js:446:136809
โ Deployment failed: Error: The stack named eth-rpc-nodes-geth-lighthouse failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "At least two subnets in two different Availability Zones must be specified (Service: ElasticLoadBalancingV2, Status Code: 400, Request ID: d66b6cac-fa9f-4a15-a415-44929a702e73)" (RequestToken: bcf88faf-74eb-eaec-7e1d-0af97aa6292e, HandlerErrorCode: InvalidRequest)
at FullCloudFormationDeployment.monitorDeployment (/home/ec2-user/environment/aws-blockchain-node-runners/node_modules/aws-cdk/lib/index.js:443:10232)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.deployStack2 [as deployStack] (/home/ec2-user/environment/aws-blockchain-node-runners/node_modules/aws-cdk/lib/index.js:446:153546)
at async /home/ec2-user/environment/aws-blockchain-node-runners/node_modules/aws-cdk/lib/index.js:446:136809
The stack named eth-rpc-nodes-geth-lighthouse failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "At least two subnets in two different Availability Zones must be specified (Service: ElasticLoadBalancingV2, Status Code: 400, Request ID: d66b6cac-fa9f-4a15-a415-44929a702e73)" (RequestToken: bcf88faf-74eb-eaec-7e1d-0af97aa6292e, HandlerErrorCode: InvalidRequest)
Additional context