diff --git a/eks/output.tf b/eks/output.tf index 16674af..804be12 100644 --- a/eks/output.tf +++ b/eks/output.tf @@ -7,11 +7,3 @@ output "cluster_name" { description = "Kubernetes Cluster Name" value = aws_eks_cluster.eks_cluster.name } - -output "vpc" { - value = aws_vpc.main -} - -output "eks" { - value = aws_eks_cluster.eks_cluster -} \ No newline at end of file diff --git a/eks/security.tf b/eks/security.tf index 51d1822..168f14c 100644 --- a/eks/security.tf +++ b/eks/security.tf @@ -1,14 +1,4 @@ -# A basic security group for our nginx server (running on NodePort 31234) - -# resource "aws_security_group_rule" "public_out" { -# type = "egress" -# from_port = 0 -# to_port = 0 -# protocol = "-1" -# cidr_blocks = ["0.0.0.0/0"] -# -# security_group_id = aws_eks_cluster.eks_cluster.vpc_config[0].cluster_security_group_id -# } +# Basic rules to allow reaching sshd & service ports (31234) resource "aws_security_group_rule" "public_in_ssh" { type = "ingress" diff --git a/eks/sshkeys.tf b/eks/sshkeys.tf index fc1c967..ee0f112 100644 --- a/eks/sshkeys.tf +++ b/eks/sshkeys.tf @@ -14,6 +14,3 @@ resource "local_file" "pem_file" { directory_permission = "700" sensitive_content = tls_private_key.ssh.private_key_pem } - - -# ssh -i ~/.ssh/ec2-terraform.pem -l ec2-user 52.47.91.179 \ No newline at end of file