This commit is contained in:
Greg Fodor 2018-04-05 12:17:22 -07:00
Родитель 9aee918af2
Коммит 9f5ab26cb4
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -32,4 +32,5 @@ else
TARGET_IP=$(echo $EC2_INFO | jq -r ".Reservations | map(.Instances) | flatten | map(select(any(.Tags | from_entries ; .[\"host-type\"] == \"${ENVIRONMENT}-${HOST_TYPE_OR_NAME}\"))) | .[] | select(.State | .Name == \"running\") | .PrivateIpAddress" | shuf | head -n1)
fi
echo "ssh -i ~/.ssh/mozilla_mr_id_rsa -L \"$TO:$TARGET_IP:$FROM\" \"ubuntu@$BASTION_IP\""
ssh -i ~/.ssh/mozilla_mr_id_rsa -L "$TO:$TARGET_IP:$FROM" "ubuntu@$BASTION_IP"

Просмотреть файл

@ -78,6 +78,13 @@ resource "aws_security_group" "hab-ring" {
self = true
}
ingress {
from_port = "9631"
to_port = "9631"
protocol = "tcp"
security_groups = ["${data.terraform_remote_state.bastion.bastion_security_group_id}"]
}
ingress {
from_port = "9638"
to_port = "9638"