diff --git a/cloud/terraform/aws/main.tf b/cloud/terraform/aws/main.tf index 533ee4bc..44185446 100644 --- a/cloud/terraform/aws/main.tf +++ b/cloud/terraform/aws/main.tf @@ -60,7 +60,7 @@ resource "aws_instance" "tpot" { volume_size = 128 delete_on_termination = true } - user_data = templatefile("../cloud-init.yaml", {timezone = var.timezone, password = var.linux_password, tpot_flavor = var.tpot_flavor, web_user = var.web_user, web_password = var.web_password}) - vpc_security_group_ids = [aws_security_group.tpot.id] + user_data = templatefile("../cloud-init.yaml", { timezone = var.timezone, password = var.linux_password, tpot_flavor = var.tpot_flavor, web_user = var.web_user, web_password = var.web_password }) + vpc_security_group_ids = [aws_security_group.tpot.id] associate_public_ip_address = true } diff --git a/cloud/terraform/aws/versions.tf b/cloud/terraform/aws/versions.tf index a0de97d3..9ae9023e 100644 --- a/cloud/terraform/aws/versions.tf +++ b/cloud/terraform/aws/versions.tf @@ -2,7 +2,7 @@ terraform { required_version = ">= 0.13" required_providers { aws = { - source = "hashicorp/aws" + source = "hashicorp/aws" version = "3.26.0" } }