зеркало из https://github.com/mozilla/hubs-ops.git
Allow tunnel to read hab ring
This commit is contained in:
Родитель
9aee918af2
Коммит
9f5ab26cb4
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче