eks

foss-cafe/eks/aws

Terraform Module HCL AWS

Terraform module for AWS EKS

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

!Static security analysis for Terraform Terraform module for AWS EKS Available features - IAM Roles and permissions - Security Groups for Control plane and Worker Nodes - Cloud-watch Log Group for EKS logs Usage ``hcl module "eks" { source = "git::https://github.com/foss-cafe/terraform-aws-eks-module.git" create_eks = true cluster_name = "Example" k8s_version = 1.16 enabled_cluster_log_types = ["api"] endpoint_private_access = true endpoint_public_access = true public_access_cidrs = ["192.168.1.1/24"] vpc_id = "vpc-xxxx" cluster_security_group_ids = ["sg-xxxx", "sg-yyyy"] worker_security_group_ids = ["sg-xxxx"] subnet_ids = ["subnet-xxxx", "subnet-yyyy", "subnet-zzzz"] additional_tags = { Environment = "dev" } } ` Requirements | Name | Version | |------|---------| | terraform | ~> 0.12.24

Inputs (13)
NameTypeDescriptionDefault
vpc_idstringThe VPC associated with your cluster. required
worker_security_group_idslistSecurity Group ID for Allowing pods to communicate with the EKS cluster API. onl[]
subnet_idslistList of subnet IDs. Must be in at least two different availability zones. Amazon[]
cluster_namestringName of the cluster"example-dev"
k8s_versionstringDesired Kubernetes master version."1.18"
cluster_log_retention_in_daysnumberSpecifies the number of days you want to retain log events in the specified log 90
endpoint_private_accessboolIndicates whether or not the Amazon EKS private API server endpoint is enabled. true
endpoint_public_accessboolIndicates whether or not the Amazon EKS public API server endpoint is enabled. Dfalse
public_access_cidrslistList of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS publi[]
cluster_security_group_idslistList of security group IDs for the cross-account elastic network interfaces that[]
tagsmap(string){}
create_eksboolDo you want to create EKStrue
enabled_cluster_log_typeslistA list of the desired control plane logging to enable[ "api", "audit", "authenticator",
Outputs (27)
master_role_name — The name of the role
worker_nodes_sg_id — The ID of the security group
eks_id — The name of the cluster
master_role_create_date — The creation date of the IAM role
nodes_role_arn — The Amazon Resource Name (ARN) specifying the role
nodes_role_id — The name of the role
eks_status — The status of the EKS cluster. One of CREATING, ACTIVE, DELETING, FAILED
master_role_unique_id — The stable and unique string identifying the role
eks_platform_version — The platform version for the cluster
master_sg_id — The ID of the security group
worker_nodes_sg_ingress_rules — The ingress rules
eks_vpc_config — The cluster security group that was created by Amazon EKS for the cluster.
nodes_role_unique_id — The stable and unique string identifying the role
master_sg_egress_rules — The egress rules
eks_version — The Kubernetes server version for the cluster.
master_role_arn — The Amazon Resource Name (ARN) specifying the role
master_role_id — The name of the role
nodes_role_name — The name of the role
master_sg_arn — The ARN of the security group
worker_nodes_sg_arn — The ARN of the security group
eks_endpoint — The endpoint for your Kubernetes API server.
eks_arn — The Amazon Resource Name (ARN) of the cluster.
eks_certificate_authority — The base64 encoded certificate data required to communicate with your cluster.
master_sg_ingress_rules — The ingress rules
worker_nodes_sg_egress_rules — The egress rules
eks_clg_arn — The Amazon Resource Name (ARN) specifying the log group
nodes_role_create_date — The creation date of the IAM role
Resources (8)
aws_cloudwatch_log_groupaws_eks_clusteraws_iam_instance_profileaws_iam_roleaws_iam_role_policyaws_iam_role_policy_attachmentaws_security_groupaws_security_group_rule
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud AWS
★ Stars0
Forks0
Total downloads6.1k
Inputs13
Outputs27
Resources8
LicenseNOASSERTION
Namespacefoss-cafe
Updated