Skip to content

Commit

Permalink
Updated for input/output variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
zawac002 committed Sep 26, 2023
1 parent 0610a68 commit 1da4646
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 43 deletions.
98 changes: 79 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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`

Expand Down Expand Up @@ -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.
Expand All @@ -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**

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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://`)
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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


24 changes: 0 additions & 24 deletions variables.common.tf

This file was deleted.

29 changes: 29 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
}

0 comments on commit 1da4646

Please sign in to comment.