4
0
Fork 0

added availibility zone to instance

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2022-08-05 12:42:48 +01:00
parent d83ee52a98
commit f247239844
No known key found for this signature in database
GPG key ID: F734FDFC154B83FB

View file

@ -49,6 +49,7 @@ resource "aws_security_group" "github_actions" {
resource "aws_instance" "testing_vm" { resource "aws_instance" "testing_vm" {
ami = var.ami_id ami = var.ami_id
availability_zone = var.availability_zone
associate_public_ip_address = true associate_public_ip_address = true
key_name = var.ami_key_pair_name # This is the key as known in the ec2 key_pairs key_name = var.ami_key_pair_name # This is the key as known in the ec2 key_pairs
instance_type = var.instance_type instance_type = var.instance_type