Remove comments & useless stuff.
This commit is contained in:
parent
38ae6b41ac
commit
0179bb0828
@ -7,11 +7,3 @@ output "cluster_name" {
|
|||||||
description = "Kubernetes Cluster Name"
|
description = "Kubernetes Cluster Name"
|
||||||
value = aws_eks_cluster.eks_cluster.name
|
value = aws_eks_cluster.eks_cluster.name
|
||||||
}
|
}
|
||||||
|
|
||||||
output "vpc" {
|
|
||||||
value = aws_vpc.main
|
|
||||||
}
|
|
||||||
|
|
||||||
output "eks" {
|
|
||||||
value = aws_eks_cluster.eks_cluster
|
|
||||||
}
|
|
@ -1,14 +1,4 @@
|
|||||||
# A basic security group for our nginx server (running on NodePort 31234)
|
# Basic rules to allow reaching sshd & service ports (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
|
|
||||||
# }
|
|
||||||
|
|
||||||
resource "aws_security_group_rule" "public_in_ssh" {
|
resource "aws_security_group_rule" "public_in_ssh" {
|
||||||
type = "ingress"
|
type = "ingress"
|
||||||
|
@ -14,6 +14,3 @@ resource "local_file" "pem_file" {
|
|||||||
directory_permission = "700"
|
directory_permission = "700"
|
||||||
sensitive_content = tls_private_key.ssh.private_key_pem
|
sensitive_content = tls_private_key.ssh.private_key_pem
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# ssh -i ~/.ssh/ec2-terraform.pem -l ec2-user 52.47.91.179
|
|
Reference in New Issue
Block a user