Terraform workspace deployed in AWS with Terraform and awscli
- aws credentials
- aws EC2 SSH keyPair
- set auto vars
- admin source address
- aws key name
terraform init
terraform plan
terraform apply
- projectPrefix
-
project prefix/tag for all object names
eg: "user-build-sca-"
-
- awsRegion
-
aws region where build and resources are created
eg: "us-east-1"
-
- instanceType
-
instance typesize default is 4x16.
eg: "m4.xlarge"
-
- awsKeyName
-
Existing aws keypair name
eg: "myAws-keyPair"
-
- adminSrcAddr
-
admin source address https://www.ipchicken.com/ with cidr mask ip/32
eg: "1.1.1.1/32"
-
- repositories
-
Comma seperated list of repositories to clone
-
- onboardScript
-
url to onboard script to template
-
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
-
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
check for inspect folders