From 1da4646be1295e70f0b0f44435a3781c38c02132 Mon Sep 17 00:00:00 2001 From: Anthony Zawacki Date: Tue, 26 Sep 2023 15:08:31 -0400 Subject: [PATCH] Updated for input/output variables. --- README.md | 98 ++++++++++++++++++++++++++++++++++++--------- variables.common.tf | 24 ----------- variables.tf | 29 ++++++++++++++ 3 files changed, 108 insertions(+), 43 deletions(-) delete mode 100644 variables.common.tf diff --git a/README.md b/README.md index 2a7e9ee..77df87c 100644 --- a/README.md +++ b/README.md @@ -29,11 +29,6 @@ The csi-driver configuration takes place in the eks-configuration module. The name of the cluster to create. -**region** `string` - -The name of the region in which to create the cluster. - - **vpc_name** `string` The VPC named that will be used by this cluster. @@ -51,19 +46,6 @@ The Kuberentes version number to use for this EKS cluster. See https://docs.aws Default: `"1.27"` -**tag_costallocation** `string` - -The cost allocation group. - -Default: `"csvd:infrastructure"` - - -**profile** string - -The AWS configuration profile. - -Default: `""` - **subnets_name** `string` @@ -114,8 +96,37 @@ Namespace to create where operators will be installed. Default: `"operators"` +**census_private_cidr** `list(string)` + +Census Private CIR Blocks + +Default : `["148.129.0.0/16", "172.16.0.0/12", "192.168.0.0/16"]1 + + +**tag_costallocation** `string` + +The cost allocation group. + +Default: `"csvd:infrastructure"` + + +**tags** `map(string)` + +AWS Tags to apply to appropriate resources + +Default: `{}` + + +**aws_environment** `string` + +AWS Environment (govcloud | east-west) + +Default: `""` + ## Outputs +### Module information + **module_name** Description: The name of this module. @@ -125,6 +136,34 @@ Description: The name of this module. Description: The version of this module. +### Networking information + +**vpc_id** + +Description: The VPC id where the EKS cluster was deployed. + + +**vpc_cidr_block** + +Description: The CIDR block associated with the VPC. + + +**subnets** + +Description: The subnets configured for the VPC. + + +**security_group_all_worker_mgmt_id** + +Description: The security group to manage all of the worker nodes. + + +**cluster_fqdn** + +Description: The `cluster_name`.`domain` + + +### IRSA Roles Created **vpc_cni_irsa_role** @@ -146,6 +185,8 @@ Description: The arn/name/unique_id of the irsa role for the efs-csi-driver addo Description: The arn/name/unique_id of the iam role for the cluster +### Cluster information + **cluster_arn** Description: The Amazon Resource Name (ARN) of the cluster @@ -186,6 +227,8 @@ Description: Platform version for the cluster Description: Status of the EKS cluster. One of `CREATING`, `ACTIVE`, `DELETING`, `FAILED` +### KMS Key + **kms_key_arn** Description: The Amazon Resource Name (ARN) of the key @@ -201,6 +244,8 @@ Description: The globally unique identifier for the key Description: The IAM resource policy set on the key +### Cluster Security Group + **cluster_security_group_arn** Description: Amazon Resource Name (ARN) of the cluster security group @@ -216,6 +261,8 @@ Description: ID of the cluster security group Description: Cluster security group that was created by Amazon EKS for the cluster. Managed node groups use this security group for control-plane-to-data-plane communication. Referred to as 'Cluster security group' in the EKS console +### Node Security Group + **node_security_group_arn** Description: Amazon Resource Name (ARN) of the node shared security group @@ -226,6 +273,8 @@ Description: Amazon Resource Name (ARN) of the node shared security group Description: ID of the node shared security group +### IRSA + **oidc_provider** Description: The OpenID Connect identity provider (issuer URL without leading `https://`) @@ -246,16 +295,22 @@ Description: The URL on the EKS cluster for the OpenID Connect identity provider Description: The SHA1 fingerprint of the public key of the cluster's certificate +### EKS Addons + **cluster_addons** Description: Map of attribute maps for all EKS cluster addons enabled +### EKS Identity Provider + **cluster_identity_providers** Description: Map of attribute maps for all EKS identity providers enabled +### Cloudwatch Log Group + **cloudwatch_log_group_arn** Description: Arn of cloudwatch log group created @@ -266,11 +321,15 @@ Description: Arn of cloudwatch log group created Description: Name of cloudwatch log group created +### Fargate profile + **fargate_profiles** Description: Map of attribute maps for all EKS Fargate Profiles created +### EKS Managed Node Group + **eks_managed_node_groups** Description: Map of attribute maps for all EKS managed node groups created @@ -281,6 +340,8 @@ Description: Map of attribute maps for all EKS managed node groups created Description: List of the autoscaling group names created by EKS managed node groups +### Self Managed Node Group + **self_managed_node_groups** Description: Map of attribute maps for all self managed node groups created @@ -290,4 +351,3 @@ Description: Map of attribute maps for all self managed node groups created Description: List of the autoscaling group names created by self-managed node groups - diff --git a/variables.common.tf b/variables.common.tf deleted file mode 100644 index ce15994..0000000 --- a/variables.common.tf +++ /dev/null @@ -1,24 +0,0 @@ -variable "census_private_cidr" { - description = "Census Private CIR Blocks" - type = list(string) - default = ["148.129.0.0/16", "172.16.0.0/12", "192.168.0.0/16"] -} - -variable "tag_costallocation" { - description = "Tag CostAllocation (default)" - type = string - default = "csvd:infrastructure" -} - -variable "tags" { - description = "AWS Tags to apply to appropriate resources" - type = map(string) - default = {} -} - -variable "aws_environment" { - description = "AWS Environment (govcloud | east-west)" - type = string - default = "" -} - diff --git a/variables.tf b/variables.tf index 2cb84a4..b2e265b 100644 --- a/variables.tf +++ b/variables.tf @@ -60,3 +60,32 @@ variable "operators_ns" { type = string default = "operators" } + +################################################################### +# Common variables +################################################################### + +variable "census_private_cidr" { + description = "Census Private CIR Blocks" + type = list(string) + default = ["148.129.0.0/16", "172.16.0.0/12", "192.168.0.0/16"] +} + +variable "tag_costallocation" { + description = "Tag CostAllocation (default)" + type = string + default = "csvd:infrastructure" +} + +variable "tags" { + description = "AWS Tags to apply to appropriate resources" + type = map(string) + default = {} +} + +variable "aws_environment" { + description = "AWS Environment (govcloud | east-west)" + type = string + default = "" +} +