cloudposse / terraform-aws-elastic-beanstalk-environment

Terraform module to provision an AWS Elastic Beanstalk Environment
https://cloudposse.com/accelerate
Apache License 2.0
303 stars 325 forks source link

Host not available despite having public IP #88

Open jakubgs opened 5 years ago

jakubgs commented 5 years ago

I was trying to access my EB host behind the ELB but I found out that when checking with nmap all ports were filtered.

I did have the following settings:

And yet I could not access any of the open ports on the instance.

I also had these set for the subnet module:

What did work was setting the private_subnets setting to use module.subnets.public_subnet_ids rather than module.subnets.private_subnet_ids.

(I found this out by adding a host to the same VPC manually but in the public rather than private subnet, and it had access.)

I was wondering if this is Intended behavior? And if so, maybe some additional documentation could help?

ff6347 commented 5 years ago

Same problem for me. Only after using the module.subnets.public_subnet_ids for the private_subnets i can configure eb-cli to use eb ssh

razorsedge commented 4 years ago

ssh_source_restriction is a variable but is not implemented in the tf code, so I imagine the security group is not being updated with a port 22/tcp rule.

helllicht commented 3 years ago

+1 have the same issue Is there a solution without moving EBS to public subnet?