Skip to content
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

Closed
wants to merge 5 commits into from

Conversation

lavjain
Copy link
Collaborator

@lavjain lavjain commented Aug 14, 2023

No description provided.

@lavjain lavjain requested a review from jonchenn August 14, 2023 15:55
Copy link
Collaborator

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}}"
Copy link
Collaborator

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

Comment on lines +20 to +24
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}"
Copy link
Collaborator

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}"
Copy link
Collaborator

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

@lavjain
Copy link
Collaborator Author

lavjain commented Sep 12, 2023

Replaced by #114

@lavjain lavjain closed this Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants