k8s cluster deployed to AWS.

This commit is contained in:
Curtis Wilson
2021-12-15 08:53:37 -05:00
parent d4922cbcb9
commit afdd92e5ae
7 changed files with 80 additions and 26 deletions
+1
View File
@@ -3,6 +3,7 @@ resource "aws_instance" "nodes" {
instance_type = var.ec2-instance-type
# TODO REM double check this key.
# key_name = aws_key_pair.debug1.key_name
# TODO Make this a variable.
associate_public_ip_address = true
subnet_id = var.subnet-id
vpc_security_group_ids = var.security-group-ids
+4
View File
@@ -2,6 +2,10 @@ output "ips" {
value = aws_instance.nodes.*.public_ip
}
output "private_ips" {
value = aws_instance.nodes.*.private_ip
}
output "names" {
value = aws_instance.nodes.*.tags.Name
}