terraform-aws-elastic-beanstalk-environment
terraform-aws-elastic-beanstalk-environment copied to clipboard
ssh_source_restriction is no longer available
The following change removed ssh_source_restriction https://github.com/cloudposse/terraform-aws-elastic-beanstalk-environment/commit/fe6d0d7242dff18928cc204fb3c693e104978b17#diff-7a370d8342e7203b805911c92454f0f4L494
but it is still present in the docs, and is also a variable that can be passed in, is this intentional?
I have checked a recent environment using the changes that have been made, and it no longer locks ssh down to the said source, but is now available to the world.
It was probably not intentional. Can you submit a PR to fix?
Just opened a PR: https://github.com/cloudposse/terraform-aws-elastic-beanstalk-environment/pull/124
If somebody will bring that back?
I figured out a work around for this issue - just set the additional_settings like this:
additional_settings = [{
namespace = "aws:autoscaling:launchconfiguration"
name = "SSHSourceRestriction"
value = "tcp,22,22,123.45.67.89/24"
}]
Where 123.45.67.89/24 is the CIDR block from which you would like to limit SSH access.