Skip to content

deividduarte20/terraform-eks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform EKS

Objetivo

Consiste em provisionar AWS EKS, deployment, service e hpa utilizando o provider helm no terraform.

Baixe o repositório

git clone https://github.com/deividduarte20/terraform-eks.git

Entre no diretório

cd terraform-eks

Altere os valores das variáveis da pasta raiz no arquivo variables.tf.

Inicie o terraform

terraform init

Aplique a infraestrutura como código

terraform apply

Verifique os nodes

kubectl get nodes

Requirements

Name Version
aws 4.66.1

Providers

Name Version
aws 4.66.1

EKS Version

EKS Version
eks 1.28

Resources

Name Type
aws_eks_cluster.eks resource
aws_eks_node_group.node-grp resource
aws_iam_instance_profile.worker resource
aws_iam_policy.autoscaler resource
aws_iam_role.master resource
aws_iam_role.worker resource
aws_iam_role_policy_attachment.AmazonEC2ContainerRegistryReadOnly resource
aws_iam_role_policy_attachment.AmazonEKSClusterPolicy resource
aws_iam_role_policy_attachment.AmazonEKSServicePolicy resource
aws_iam_role_policy_attachment.AmazonEKSVPCResourceController resource
aws_iam_role_policy_attachment.AmazonEKSWorkerNodePolicy resource
aws_iam_role_policy_attachment.AmazonEKS_CNI_Policy resource
aws_iam_role_policy_attachment.AmazonSSMManagedInstanceCore resource
aws_iam_role_policy_attachment.autoscaler resource
aws_iam_role_policy_attachment.s3 resource
aws_iam_role_policy_attachment.x-ray resource
aws_instance.kubectl-server resource
aws_internet_gateway.gw resource
aws_route_table.rtb resource
aws_route_table_association.a-1 resource
aws_route_table_association.a-2 resource
aws_security_group.allow_tls resource
aws_subnet.public-1 resource
aws_subnet.public-2 resource
aws_vpc.main resource

Inputs

Name Description Type Default Required
instance-ami n/a string "ami-04cb4ca688797756f" yes
instance-type n/a string "t3a.medium" yes
key n/a string "name-key" yes
name-cluster n/a string "name-cluster" yes
name-sg n/a string "name-sg" yes
cluster-version n/a string "cluster-version" yes

Outputs

Name Description
cluster-arn after

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages