This project outlines how terraform is used to deploy Cloud resources in AWS. The instance would run a script upon its initialization from file userdata.tpl
. The instance type can be changed depending upon the AMI in datasources.tf
. Some of the instructions would be given on the assumption that this project would be done in vscode
- Install
AWS ToolKit
in the Extention. - Ensure that Terraform is also installed in the Extention
Its automated. Check the folder ~/.ssh/mtckey
.
The Credentials file would be in the folder ~/.aws
. Set your account in this folder. It would be recommended to create an account for terraform in AWS and import its access key & secret key. You can either insert through AWS ToolKit or manually in the config
file.
[name_of_acc]
aws_access_key_id = access_key
aws_secret_access_key = secret_key
Ensure to download either linux-ssh-config.tpl
or windows-ssh-config.tpl
file based on the system being used.