On demand Workspace for Terraform and Ansible in Google Cloud Platform on Ubuntu
- login to gcp and issue a service account with permissions to your project
! mark items as sensitive for write only access
-
projectPrefix
-
project prefix/tag for all object names
example: "mydeployment-"
-
-
gcpProjectId
-
the project ID you want to deploy in
example: ""
-
-
gcpRegion
- the gcp region you want to deploy in example: "us-east1"
-
gcpZone
-
the gcp zone you want to deploy in
example: "us-east1-b"
-
-
adminSrcAddr
-
ip/mask in cidr formatt for admin access
example: "myexternalip/32"
-
-
adminAccount
-
admin account name ( not admin)
example: "myuser"
-
-
adminPass [ sensitive]
-
your temp password
example: "MysuperPass"
-
-
gceSshPubKeyFile [ sensitive]
-
contents of the admin ssh public key file
example: ""
-
-
repositories
-
Comma seperated list of repositories to clone
-
-
onboardScript
-
url for onboard script
-
-
instanceType
-
gce machine type
example: "n1-standard-4"
-
-
https://code.visualstudio.com/docs/remote/remote-overview
Open Extensions menu:
Add Remote Devpack Extensions:
Configure Remote SSH extension:
-
ssh ids on reapply
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
win:
ssh-keygen -f "c:\\Users\\user/.ssh/known_hosts" -R 18.210.163.252
linux:
ssh-keygen -f "/root/.ssh/known_hosts" -R 18.210.163.252
-
VScode Remote
settings
extensions installed