mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-26 08:26:26 -06:00
3f5997a6c1
* Set up a VPC instead of assuming EC2 classic * Set up a keypair instead of requiring one be created beforehand; this fixes #1567 * Use SSH Agent for authentication instead of explicit private key.
25 lines
540 B
HCL
25 lines
540 B
HCL
variable "public_key_path" {
|
|
description = <<DESCRIPTION
|
|
Path to the SSH public key to be used for authentication.
|
|
Ensure this keypair is added to your local SSH agent so provisioners can
|
|
connect.
|
|
|
|
Example: ~/.ssh/id_rsa.pub
|
|
DESCRIPTION
|
|
}
|
|
|
|
variable "aws_region" {
|
|
description = "AWS region to launch servers."
|
|
default = "us-west-2"
|
|
}
|
|
|
|
# Ubuntu Precise 12.04 LTS (x64)
|
|
variable "aws_amis" {
|
|
default = {
|
|
eu-west-1 = "ami-b1cf19c6"
|
|
us-east-1 = "ami-de7ab6b6"
|
|
us-west-1 = "ami-3f75767a"
|
|
us-west-2 = "ami-21f78e11"
|
|
}
|
|
}
|