Basic Terraform Infrastructure for spinning up Development VMs on AWS or DigitalOcean
To use this Terraform Infrastructure, you will need to have the following environment variables set:
AWS_USERNAME
: AWS UsernameAWS_ACCESS_KEY_ID
: AWS Access Key ID for your accountAWS_SECRET_ACCESS_KEY
: AWS Secret Access Key for your accountAWS_ACCOUNT_NUMBER
: AWS Account NumberDO_TOKEN
: DigitalOcean API TokenSSH_FINGERPRINT
: SSH Fingerprint for DigitalOcean
To spin up a development VM, enable the type of VM you want in variables.tf:
- AWS VM (Intel)
For an intel architecture AWS vm set the enable_aws_amd64_dev
variable to true
:
variable "enable_aws_amd64_dev" {
type = bool
default = true
}
- AWS VM (ARM)
For an arm architecture AWS vm set the enable_aws_arm64_dev
variable to true
:
variable "enable_aws_arm64_dev" {
type = bool
default = true
}
- Digital Ocean VM (Intel)
For an intel architecture AWS vm set the enable_do_instance
variable to true
:
variable "enable_do_instance" {
type = bool
default = true
}
To apply the changes from your workstation, run the following commands:
make apply
Alternatively, you can commit your changes to the repository and let the github actions pipeline apply the changes for you.