Deploy Convenant C2 Server to AWS.
- Terraform is installed and in the current $PATH
- You know your AWS access and secret keys. Official Documentation
- You created an AWS SSH Key. Official Documentation
- Create a variables.tf file.
- Copy example Content in Variables file. Enter your own access and secret key and change instance size preferences.
- Execute
terraform init
- Execute
terraform apply
variables.tf file:
variable "aws_access_key" {
default = "D0N7PV5HC23DST0617HVB"
}
variable "aws_secret_key" {
default = "D0N7PV5HC23DST0617HVB"
}
variable "aws_region" {
default = "eu-central-1"
}
variable "ssh_key_path" {
default = "C:/Users/...."
}
variable "instance_type" {
default = "t2.large"
}
variable "ssh_key_name" {
default = "terraform-key"
}
variable "ip_whitelist" {
default = ["1.3.3.7/32"]
}