-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a jump-host in the project to continue terraform installation #108
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is only for temporary approach, eventually we shall automate this.
project_id = "{{project_id}}" | ||
storage_multiregion = "US" | ||
region = "{{gcp_region}}" | ||
zone = "{{gcp_zone}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you need the zone here for bastion, please add a question var in copier.yaml. You can name it as bastion_host_zone
solutions_builder/template_root/terraform/stages/2-foundation/setup.bash
Outdated
Show resolved
Hide resolved
solutions_builder/template_root/terraform/stages/scripts/bastion_startup.sh
Outdated
Show resolved
Hide resolved
solutions_builder/template_root/terraform/stages/1-bootstrap/env.bash
Outdated
Show resolved
Hide resolved
gcloud compute instances update jump-host --deletion-protection --project="${PROJECT_ID}" | ||
|
||
# SCP github directory to jump host | ||
TEMPLATE_ROOT=$(cd ../../.. && pwd) | ||
gcloud compute scp "${TEMPLATE_ROOT}" jump-host:~ --zone="${ZONE}" --tunnel-through-iap --project="${PROJECT_ID}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add these three line into the script ran at the end of bastion module?
gcloud compute scp "${TEMPLATE_ROOT}" jump-host:~ --zone="${ZONE}" --tunnel-through-iap --project="${PROJECT_ID}" | ||
|
||
# Log onto the jump host using IAP and start tmux | ||
gcloud compute ssh jump-host --zone="${ZONE}" --tunnel-through-iap --project="${PROJECT_ID}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be the in the README
Replaced by #114 |
No description provided.