root@CPX-KLK3T0TNPT9:/home/ubuntu/Downloads/terraform-eks# terraform plan -out=plan.tr
Error: Unsupported block type
on cluster.tf line 19, in resource "aws_security_group" "eks-cluster":
19: tags {
Blocks of type "tags" are not expected here. Did you mean to define argument
"tags"? If so, use the equals sign to assign it a value.
Error: Unsupported block type
on main.tf line 55, in resource "aws_internet_gateway" "igw":
55: tags {
Blocks of type "tags" are not expected here. Did you mean to define argument
"tags"? If so, use the equals sign to assign it a value.
Error: Error in function call
on main.tf line 64, in resource "aws_key_pair" "eks-prod-key":
64: public_key = "${file("./it-admin-key.pub")}"
Call to function "file" failed: no file exists at it-admin-key.pub.
root@CPX-KLK3T0TNPT9:/home/ubuntu/Downloads/terraform-eks# terraform --version
Terraform v0.12.5
- provider.aws v2.20.0
- provider.http v1.1.1
/terraform-eks# kubens hola-mundo-naranja
Context "arn:aws:eks:us-east-1:947293917990:cluster/regulado-develop-eks" modified.
Active namespace is "hola-mundo-naranja".
root@CPX-KLK3T0TNPT9:/home/ubuntu/Downloads/terraform-eks# kubectl get all
NAME READY STATUS RESTARTS AGE
pod/hello-world-5fdc9bc659-48c99 1/1 Running 0 21d
pod/hello-world-5fdc9bc659-6q7kl 1/1 Running 0 21d
pod/hello-world-5fdc9bc659-pvxpb 1/1 Running 0 21d
pod/hello-world-5fdc9bc659-zvw6v 1/1 Running 0 21d
pod/hello-world-5fdc9bc659-zxhnl 1/1 Running 0 21d
pod/tuservicio-594495857f-hcq59 1/1 Running 0 21d
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/my-service LoadBalancer 10.100.19.245 8080:32628/TCP 21d
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
deployment.apps/hello-world 5 5 5 5 21d
deployment.apps/tuservicio 1 1 1 1 21d
NAME DESIRED CURRENT READY AGE
replicaset.apps/hello-world-5fdc9bc659 5 5 5 21d
replicaset.apps/tuservicio-594495857f 1 1 1 21d
root@CPX-KLK3T0TNPT9:/home/ubuntu/Downloads/terraform-eks#
root@CPX-KLK3T0TNPT9:/home/ubuntu/Downloads/terraform-eks# aws s3 ls
2019-07-24 09:57:09 elasticbeanstalk-us-east-1-947293917990
2019-07-02 16:18:45 fin-reg-develop-public
2019-06-11 16:37:37 terraform-regulado-devops
root@CPX-KLK3T0TNPT9:/home/ubuntu/Downloads/terraform-eks#
root@CPX-KLK3T0TNPT9:/home/ubuntu/Downloads/terraform-eks# terraform plan -out=plan.tr
Error: Unsupported block type
on cluster.tf line 19, in resource "aws_security_group" "eks-cluster":
19: tags {
Blocks of type "tags" are not expected here. Did you mean to define argument
"tags"? If so, use the equals sign to assign it a value.
Error: Unsupported block type
on main.tf line 55, in resource "aws_internet_gateway" "igw":
55: tags {
Blocks of type "tags" are not expected here. Did you mean to define argument
"tags"? If so, use the equals sign to assign it a value.
Error: Error in function call
on main.tf line 64, in resource "aws_key_pair" "eks-prod-key":
64: public_key = "${file("./it-admin-key.pub")}"
Call to function "file" failed: no file exists at it-admin-key.pub.
root@CPX-KLK3T0TNPT9:/home/ubuntu/Downloads/terraform-eks# terraform --version
Terraform v0.12.5
/terraform-eks# kubens hola-mundo-naranja
Context "arn:aws:eks:us-east-1:947293917990:cluster/regulado-develop-eks" modified.
Active namespace is "hola-mundo-naranja".
root@CPX-KLK3T0TNPT9:/home/ubuntu/Downloads/terraform-eks# kubectl get all
NAME READY STATUS RESTARTS AGE
pod/hello-world-5fdc9bc659-48c99 1/1 Running 0 21d
pod/hello-world-5fdc9bc659-6q7kl 1/1 Running 0 21d
pod/hello-world-5fdc9bc659-pvxpb 1/1 Running 0 21d
pod/hello-world-5fdc9bc659-zvw6v 1/1 Running 0 21d
pod/hello-world-5fdc9bc659-zxhnl 1/1 Running 0 21d
pod/tuservicio-594495857f-hcq59 1/1 Running 0 21d
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/my-service LoadBalancer 10.100.19.245 8080:32628/TCP 21d
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
deployment.apps/hello-world 5 5 5 5 21d
deployment.apps/tuservicio 1 1 1 1 21d
NAME DESIRED CURRENT READY AGE
replicaset.apps/hello-world-5fdc9bc659 5 5 5 21d
replicaset.apps/tuservicio-594495857f 1 1 1 21d
root@CPX-KLK3T0TNPT9:/home/ubuntu/Downloads/terraform-eks#
root@CPX-KLK3T0TNPT9:/home/ubuntu/Downloads/terraform-eks# aws s3 ls
2019-07-24 09:57:09 elasticbeanstalk-us-east-1-947293917990
2019-07-02 16:18:45 fin-reg-develop-public
2019-06-11 16:37:37 terraform-regulado-devops
root@CPX-KLK3T0TNPT9:/home/ubuntu/Downloads/terraform-eks#