aws-samples / 1click-hpc

Deploy your HPC Cluster on AWS in 20min. with just 1-Click.
MIT No Attribution
62 stars 44 forks source link

Head Node was created in the private subnet #20

Closed rvencu closed 2 years ago

rvencu commented 2 years ago

I noticed the head node was created in the private subnet. Checked the parameters in the cloudformation where I supplied my custom VPC details:

PrivateSubnetAId | subnet-0112272390ac53c95 | - -- | -- | -- PublicSubnetAId | subnet-79775a34 | - PublicSubnetBId | subnet-2fd94770 | - VpcId | vpc-4678d63b

And the head node was created in the private subnet.

image

As a consequence, I cannot SSH into the EIP of the head node.

I can see the code makes this deliberately https://github.com/aws-samples/1click-hpc/blob/93d1930b4531d5f437defe106675fa0bfe321fd7/scripts/Cloud9-Bootstrap.sh#L74

If it is supposed to be there, then please explain how to SSH into the head node using the elastic IP.

rvencu commented 2 years ago

Well, I changed the logic in the bootstrap script and launched the headnode on the public subnet instead.

nicolaven commented 2 years ago

This is by design, the reason is you can ssh into the headnode only via Cloud9. of course if this does not work for you feel free to change the config.

Thanks