vpc-eks

babakDoraniArab/vpc-eks/aws

Terraform Module HCL AWS

a terraform code to run aws vpc and eks

Install
module "vpc-eks" {
source = "babakDoraniArab/vpc-eks/aws"
version = "1.0.1"
}
plain text: /constructs/tfmod-babakdoraniarab-vpc-eks-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

How to configure VPC and EKS from scratch with this package you can have VPC and EKS from scratch. just clone it and then put the following commands. please be sure about your aws cli profile. terraform init terraform fmt terraform validate terraform apply create kub config check your kube config first cat ~/.kube/config create your context aws eks --region eu-west-1 update-kubeconfig --name eks --profile default you can find the k8s configuration on k8s folder k8s -> app.yaml you have to apply it with kubectl command and know you check your cluster

Outputs (31)
aws_nat_gateway_gw1_id — internet gateway id
aws_nat_gateway_gw1_subnet_id — gateway_nat1_subnet_id
aws_nat_gateway_gw2_allocation_id — gateway_gw2_allocation_id
internet_gateway_id — internet gateway id
vpc_enable_dns_hostnames — vpc enable_dns_hostnames
aws_nat_gateway_gw1_allocation_id — gateway_nat1_allocation_id
internet_gateway_arn — internet gateway arn
aws_nat_gateway_gw2_private_ip — gateway_gw2_private_ip
aws_nat_gateway_gw2_public_ip — gateway_gw2_public_ip
aws_eks_cluster_arn
vpc_id — vpc id
vpc_main_route_table_id — vpc main_route_table_id
aws_nat_gateway_gw1_tags_all — gateway_nat1_tags_all
aws_nat_gateway_gw2_subnet_id — gateway_gw2_subnet_id
internet_gateway_tags_all — internet gateway tags_all
aws_eks_cluster_endpoint
aws_eks_cluster_id
vpc_arn — vpc arn
vpc_enable_classiclink — vpc enable_classiclink
vpc_default_security_group_id — vpc default_security_group_id
aws_nat_gateway_gw2_id — internet gateway id
vpc_default_route_table_id — vpc default_route_table_id
aws_nat_gateway_gw1_public_ip — gateway_nat1_public_ip
aws_eks_cluster_status
vpc_instance_tenancy — vpc instance_tenancy
vpc_default_network_acl_id — vpc default_network_acl_id
aws_nat_gateway_gw1_private_ip — gateway_nat1_private_ip
aws_nat_gateway_gw2_tags_all — gateway_gw2_tags_all
vpc_enable_dns_support — vpc enable_dns_support
internet_gateway_owner_id — internet gateway owner_id
… and 1 more outputs
Resources (11)
aws_eipaws_eks_clusteraws_eks_node_groupaws_iam_roleaws_iam_role_policy_attachmentaws_internet_gatewayaws_nat_gatewayaws_route_tableaws_route_table_associationaws_subnetaws_vpc
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud AWS
★ Stars19
Forks1
Total downloads4.6k
Outputs31
Resources11
NamespacebabakDoraniArab
Updated