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

Transfer GCP deployment to using terraform CDK #76

Open
tylerpotts opened this issue May 18, 2021 · 0 comments
Open

Transfer GCP deployment to using terraform CDK #76

tylerpotts opened this issue May 18, 2021 · 0 comments
Assignees

Comments

@tylerpotts
Copy link
Contributor

tylerpotts commented May 18, 2021

The files for terraform are stored here:
https://github.com/Quansight/qhub-hpc/tree/main/tests/gcp

The goal is to translate these terraform files into terraform CDK

The resources can be analyzed via the google console and searching for "compute engine"

Testing existing terraform files

Clone and cd into the proper directory:

git clone https://github.com/Quansight/qhub-hpc.git
cd qhub-hpc/tests/gcp

The terraform script requires a private key named id_rsa in the same directory as the script

ssh-keygen

When prompted for a name, enter ./id_rsa

Change the permissions on the file:

chmod 400 id_rsa

Now we can Initialize, plan, and apply the terraform files:

terraform init
terraform plan
terraform apply --auto-approve

To ssh directly to any of the instances, run ssh -i id_rsa ubuntu@<public_ip>

@viniciusdc viniciusdc self-assigned this May 18, 2021
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

No branches or pull requests

2 participants