From 1654b7c0cd135d852b600bed05a2625593bec99e Mon Sep 17 00:00:00 2001 From: Sacha Ligthert Date: Wed, 16 Nov 2022 22:43:34 +0100 Subject: [PATCH] Minor updates --- k8s-infra.tf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/k8s-infra.tf b/k8s-infra.tf index ae060ed..412d725 100644 --- a/k8s-infra.tf +++ b/k8s-infra.tf @@ -36,7 +36,7 @@ resource "aws_security_group" "k8s" { } resource "aws_instance" "controlplane" { - ami = "ami-0ee415e1b8b71305f" + ami = "ami-0fd8802f94ed1c969" associate_public_ip_address = true instance_type = "t3.large" key_name = "overseer.ligthert.net" @@ -44,10 +44,10 @@ resource "aws_instance" "controlplane" { Name = "controlplane" } root_block_device { - volume_size = "128" + volume_size = "64" volume_type = "gp2" } - user_data = "yum update -y" + #user_data = "sudo apt-get update -y; sudo apt-get upgrade -y" vpc_security_group_ids = [aws_security_group.k8s.id] } @@ -56,7 +56,7 @@ output "controlplane_public_ip" { } output "controlplane_private_ip" { - value = aws_instance.controlplane.private_ip + value = aws_instance.controlplane.private_ip } output "controlplane_instance_id" { @@ -64,7 +64,7 @@ output "controlplane_instance_id" { } resource "aws_instance" "node" { - ami = "ami-0ee415e1b8b71305f" + ami = "ami-0fd8802f94ed1c969" associate_public_ip_address = true instance_type = "t3.large" key_name = "overseer.ligthert.net" @@ -72,10 +72,10 @@ resource "aws_instance" "node" { Name = "node" } root_block_device { - volume_size = "128" + volume_size = "64" volume_type = "gp2" } - user_data = "yum update -y" + #user_data = "sudo apt-get update -y; sudo apt-get upgrade -y" vpc_security_group_ids = [aws_security_group.k8s.id] } @@ -84,7 +84,7 @@ output "node_public_ip" { } output "node_private_ip" { - value = aws_instance.node.private_ip + value = aws_instance.node.private_ip } output "node_instance_id" {