From fcf7e328a259adb21d18c49dbcd7d7b23c68d6a7 Mon Sep 17 00:00:00 2001 From: Olamide <65307752+OlamideOl1@users.noreply.github.com> Date: Tue, 26 Nov 2024 12:23:39 +0100 Subject: [PATCH] Revert "EKS access entries" (#217) --- aws/cluster/README.md | 12 ++++----- aws/cluster/main.tf | 22 +++++++--------- aws/cluster/modules/eks-cluster/README.md | 26 +++++++++---------- aws/cluster/modules/eks-cluster/main.tf | 5 ---- aws/cluster/modules/eks-cluster/variables.tf | 12 --------- aws/cluster/modules/eks-cluster/versions.tf | 2 +- aws/cluster/modules/eks-node-group/README.md | 8 +++--- .../modules/eks-node-group/versions.tf | 2 +- aws/cluster/modules/eks-node-role/README.md | 22 ++++++++-------- aws/cluster/modules/eks-node-role/versions.tf | 2 +- .../modules/k8s-oidc-provider/README.md | 6 ++--- .../modules/k8s-oidc-provider/versions.tf | 2 +- aws/cluster/variables.tf | 12 --------- aws/cluster/versions.tf | 2 +- aws/network-data/README.md | 10 +++---- aws/network-data/versions.tf | 2 +- aws/network/README.md | 8 +++--- aws/network/modules/nat-gateway/README.md | 8 +++--- aws/network/modules/nat-gateway/versions.tf | 2 +- .../modules/private-subnet-routes/README.md | 12 ++++----- .../modules/private-subnet-routes/versions.tf | 2 +- aws/network/modules/private-subnets/README.md | 6 ++--- .../modules/private-subnets/versions.tf | 2 +- .../modules/public-subnet-routes/README.md | 14 +++++----- .../modules/public-subnet-routes/versions.tf | 2 +- aws/network/modules/public-subnets/README.md | 6 ++--- .../modules/public-subnets/versions.tf | 2 +- aws/network/modules/vpc/README.md | 20 +++++++------- aws/network/modules/vpc/versions.tf | 2 +- aws/network/versions.tf | 2 +- 30 files changed, 100 insertions(+), 135 deletions(-) diff --git a/aws/cluster/README.md b/aws/cluster/README.md index 89a9eb95..b6c4bef4 100644 --- a/aws/cluster/README.md +++ b/aws/cluster/README.md @@ -64,13 +64,13 @@ module "cluster" { | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.14.8 | -| [aws](#requirement\_aws) | 5.74.0 | +| [aws](#requirement\_aws) | ~> 4.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.74.0 | +| [aws](#provider\_aws) | ~> 4.0 | ## Modules @@ -87,16 +87,14 @@ module "cluster" { | Name | Type | |------|------| -| [aws_ssm_parameter.node_role_arn](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/ssm_parameter) | resource | -| [aws_ssm_parameter.oidc_issuer](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/ssm_parameter) | resource | -| [aws_subnet.private](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/data-sources/subnet) | data source | +| [aws_ssm_parameter.node_role_arn](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_parameter) | resource | +| [aws_ssm_parameter.oidc_issuer](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_parameter) | resource | +| [aws_subnet.private](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/subnet) | data source | ## Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| -| [auth\_mode](#input\_auth\_mode) | Authentiation mode associated with the cluster Access config | `string` | `"API_AND_CONFIG_MAP"` | no | -| [bootstrap\_cluster\_creator\_admin\_permission](#input\_bootstrap\_cluster\_creator\_admin\_permission) | Bootstrap access config values to the cluster | `bool` | `false` | no | | [enabled\_cluster\_log\_types](#input\_enabled\_cluster\_log\_types) | Which EKS control plane log types to enable | `list(string)` | `[]` | no | | [endpoint\_private\_access](#input\_endpoint\_private\_access) | Enables the Amazon EKS private API server endpoint. | `bool` | `false` | no | | [endpoint\_public\_access](#input\_endpoint\_public\_access) | Enables the Amazon EKS public API server endpoint. | `bool` | `true` | no | diff --git a/aws/cluster/main.tf b/aws/cluster/main.tf index 28a5fb67..d7222ee1 100644 --- a/aws/cluster/main.tf +++ b/aws/cluster/main.tf @@ -16,18 +16,16 @@ module "network" { module "eks_cluster" { source = "./modules/eks-cluster" - auth_mode = var.auth_mode - bootstrap_cluster_creator_admin_permission = var.bootstrap_cluster_creator_admin_permission - enabled_cluster_log_types = var.enabled_cluster_log_types - endpoint_private_access = var.endpoint_private_access - endpoint_public_access = var.endpoint_public_access - k8s_version = var.k8s_version - log_retention_in_days = var.log_retention_in_days - name = module.cluster_name.full - private_subnet_ids = module.network.private_subnet_ids - public_subnet_ids = module.network.public_subnet_ids - tags = var.tags - vpc = module.network.vpc + enabled_cluster_log_types = var.enabled_cluster_log_types + endpoint_private_access = var.endpoint_private_access + endpoint_public_access = var.endpoint_public_access + k8s_version = var.k8s_version + log_retention_in_days = var.log_retention_in_days + name = module.cluster_name.full + private_subnet_ids = module.network.private_subnet_ids + public_subnet_ids = module.network.public_subnet_ids + tags = var.tags + vpc = module.network.vpc depends_on = [module.node_role] } diff --git a/aws/cluster/modules/eks-cluster/README.md b/aws/cluster/modules/eks-cluster/README.md index b7b7e1b2..b9a731bd 100644 --- a/aws/cluster/modules/eks-cluster/README.md +++ b/aws/cluster/modules/eks-cluster/README.md @@ -4,35 +4,33 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.14.8 | -| [aws](#requirement\_aws) | 5.74.0 | +| [aws](#requirement\_aws) | ~> 4.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.74.0 | +| [aws](#provider\_aws) | ~> 4.0 | ## Resources | Name | Type | |------|------| -| [aws_cloudwatch_log_group.eks](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/cloudwatch_log_group) | resource | -| [aws_eks_cluster.this](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/eks_cluster) | resource | -| [aws_iam_role.control_plane](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/iam_role) | resource | -| [aws_iam_role_policy_attachment.control_plane](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/iam_role_policy_attachment) | resource | -| [aws_kms_alias.eks_key_alias](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/kms_alias) | resource | -| [aws_kms_key.eks_key](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/kms_key) | resource | -| [aws_security_group.control_plane](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/security_group) | resource | -| [aws_security_group_rule.egress](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/security_group_rule) | resource | -| [aws_iam_policy_document.eks_assume_role](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/data-sources/iam_policy_document) | data source | -| [aws_partition.current](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/data-sources/partition) | data source | +| [aws_cloudwatch_log_group.eks](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource | +| [aws_eks_cluster.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_cluster) | resource | +| [aws_iam_role.control_plane](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource | +| [aws_iam_role_policy_attachment.control_plane](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | +| [aws_kms_alias.eks_key_alias](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_alias) | resource | +| [aws_kms_key.eks_key](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_key) | resource | +| [aws_security_group.control_plane](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group) | resource | +| [aws_security_group_rule.egress](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group_rule) | resource | +| [aws_iam_policy_document.eks_assume_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | +| [aws_partition.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/partition) | data source | ## Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| -| [auth\_mode](#input\_auth\_mode) | Authentiation mode associated with the cluster Access config | `string` | `"API_AND_CONFIG_MAP"` | no | -| [bootstrap\_cluster\_creator\_admin\_permission](#input\_bootstrap\_cluster\_creator\_admin\_permission) | Bootstrap access config values to the cluster | `bool` | `false` | no | | [enabled\_cluster\_log\_types](#input\_enabled\_cluster\_log\_types) | Which EKS control plane log types to enable | `list(string)` |
[
"api",
"audit"
]
| no | | [endpoint\_private\_access](#input\_endpoint\_private\_access) | Enables the Amazon EKS private API server endpoint. | `bool` | `false` | no | | [endpoint\_public\_access](#input\_endpoint\_public\_access) | Enables the Amazon EKS public API server endpoint. | `bool` | `true` | no | diff --git a/aws/cluster/modules/eks-cluster/main.tf b/aws/cluster/modules/eks-cluster/main.tf index 6c8dcc66..bc51f4b8 100644 --- a/aws/cluster/modules/eks-cluster/main.tf +++ b/aws/cluster/modules/eks-cluster/main.tf @@ -9,11 +9,6 @@ resource "aws_eks_cluster" "this" { tags = var.tags version = var.k8s_version - access_config { - authentication_mode = var.auth_mode - bootstrap_cluster_creator_admin_permissions = var.bootstrap_cluster_creator_admin_permission - } - vpc_config { security_group_ids = [aws_security_group.control_plane.id] subnet_ids = concat(var.private_subnet_ids, var.public_subnet_ids) diff --git a/aws/cluster/modules/eks-cluster/variables.tf b/aws/cluster/modules/eks-cluster/variables.tf index 3392e39d..015e5aea 100644 --- a/aws/cluster/modules/eks-cluster/variables.tf +++ b/aws/cluster/modules/eks-cluster/variables.tf @@ -58,15 +58,3 @@ variable "vpc" { type = object({ id = string }) description = "VPC in which this cluster should run" } - -variable "auth_mode" { - type = string - description = "Authentiation mode associated with the cluster Access config" - default = "API_AND_CONFIG_MAP" -} - -variable "bootstrap_cluster_creator_admin_permission" { - type = bool - description = "Bootstrap access config values to the cluster" - default = false -} diff --git a/aws/cluster/modules/eks-cluster/versions.tf b/aws/cluster/modules/eks-cluster/versions.tf index 43e4e634..020f4777 100644 --- a/aws/cluster/modules/eks-cluster/versions.tf +++ b/aws/cluster/modules/eks-cluster/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.74.0" + version = "~> 4.0" } } } diff --git a/aws/cluster/modules/eks-node-group/README.md b/aws/cluster/modules/eks-node-group/README.md index 4e119715..03240a83 100644 --- a/aws/cluster/modules/eks-node-group/README.md +++ b/aws/cluster/modules/eks-node-group/README.md @@ -4,20 +4,20 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.14.8 | -| [aws](#requirement\_aws) | 5.74.0 | +| [aws](#requirement\_aws) | ~> 4.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.74.0 | +| [aws](#provider\_aws) | ~> 4.0 | ## Resources | Name | Type | |------|------| -| [aws_eks_node_group.this](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/eks_node_group) | resource | -| [aws_launch_template.this](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/launch_template) | resource | +| [aws_eks_node_group.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_node_group) | resource | +| [aws_launch_template.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_template) | resource | ## Inputs diff --git a/aws/cluster/modules/eks-node-group/versions.tf b/aws/cluster/modules/eks-node-group/versions.tf index 43e4e634..020f4777 100644 --- a/aws/cluster/modules/eks-node-group/versions.tf +++ b/aws/cluster/modules/eks-node-group/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.74.0" + version = "~> 4.0" } } } diff --git a/aws/cluster/modules/eks-node-role/README.md b/aws/cluster/modules/eks-node-role/README.md index 3d9f35ae..189b764c 100644 --- a/aws/cluster/modules/eks-node-role/README.md +++ b/aws/cluster/modules/eks-node-role/README.md @@ -4,27 +4,27 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.14.8 | -| [aws](#requirement\_aws) | 5.74.0 | +| [aws](#requirement\_aws) | ~> 4.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.74.0 | +| [aws](#provider\_aws) | ~> 4.0 | ## Resources | Name | Type | |------|------| -| [aws_iam_role.this](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/iam_role) | resource | -| [aws_iam_role_policy_attachment.ec2_container_registry_policy](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/iam_role_policy_attachment) | resource | -| [aws_iam_role_policy_attachment.eks_cloudwatch_agent_policy](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/iam_role_policy_attachment) | resource | -| [aws_iam_role_policy_attachment.eks_cni_policy](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/iam_role_policy_attachment) | resource | -| [aws_iam_role_policy_attachment.eks_ssm_instance_policy](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/iam_role_policy_attachment) | resource | -| [aws_iam_role_policy_attachment.eks_worker_node_policy](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/iam_role_policy_attachment) | resource | -| [aws_iam_role_policy_attachment.eks_xray_writeonly_policy](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/iam_role_policy_attachment) | resource | -| [aws_iam_policy_document.assume_role](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/data-sources/iam_policy_document) | data source | -| [aws_partition.current](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/data-sources/partition) | data source | +| [aws_iam_role.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource | +| [aws_iam_role_policy_attachment.ec2_container_registry_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | +| [aws_iam_role_policy_attachment.eks_cloudwatch_agent_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | +| [aws_iam_role_policy_attachment.eks_cni_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | +| [aws_iam_role_policy_attachment.eks_ssm_instance_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | +| [aws_iam_role_policy_attachment.eks_worker_node_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | +| [aws_iam_role_policy_attachment.eks_xray_writeonly_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | +| [aws_iam_policy_document.assume_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | +| [aws_partition.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/partition) | data source | ## Inputs diff --git a/aws/cluster/modules/eks-node-role/versions.tf b/aws/cluster/modules/eks-node-role/versions.tf index 43e4e634..020f4777 100644 --- a/aws/cluster/modules/eks-node-role/versions.tf +++ b/aws/cluster/modules/eks-node-role/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.74.0" + version = "~> 4.0" } } } diff --git a/aws/cluster/modules/k8s-oidc-provider/README.md b/aws/cluster/modules/k8s-oidc-provider/README.md index b534e4a7..d16b6ae0 100644 --- a/aws/cluster/modules/k8s-oidc-provider/README.md +++ b/aws/cluster/modules/k8s-oidc-provider/README.md @@ -4,21 +4,21 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.14.8 | -| [aws](#requirement\_aws) | 5.74.0 | +| [aws](#requirement\_aws) | ~> 4.0 | | [tls](#requirement\_tls) | ~> 3.1 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.74.0 | +| [aws](#provider\_aws) | ~> 4.0 | | [tls](#provider\_tls) | ~> 3.1 | ## Resources | Name | Type | |------|------| -| [aws_iam_openid_connect_provider.this](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/iam_openid_connect_provider) | resource | +| [aws_iam_openid_connect_provider.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_openid_connect_provider) | resource | | [tls_certificate.this](https://registry.terraform.io/providers/hashicorp/tls/latest/docs/data-sources/certificate) | data source | ## Inputs diff --git a/aws/cluster/modules/k8s-oidc-provider/versions.tf b/aws/cluster/modules/k8s-oidc-provider/versions.tf index 42fa7f65..655f3680 100644 --- a/aws/cluster/modules/k8s-oidc-provider/versions.tf +++ b/aws/cluster/modules/k8s-oidc-provider/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.74.0" + version = "~> 4.0" } tls = { version = "~> 3.1" diff --git a/aws/cluster/variables.tf b/aws/cluster/variables.tf index c5823abc..f2818dce 100644 --- a/aws/cluster/variables.tf +++ b/aws/cluster/variables.tf @@ -1,15 +1,3 @@ -variable "auth_mode" { - type = string - description = "Authentiation mode associated with the cluster Access config" - default = "API_AND_CONFIG_MAP" -} - -variable "bootstrap_cluster_creator_admin_permission" { - type = bool - description = "Bootstrap access config values to the cluster" - default = false -} - variable "enabled_cluster_log_types" { type = list(string) default = [] diff --git a/aws/cluster/versions.tf b/aws/cluster/versions.tf index 43e4e634..020f4777 100644 --- a/aws/cluster/versions.tf +++ b/aws/cluster/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.74.0" + version = "~> 4.0" } } } diff --git a/aws/network-data/README.md b/aws/network-data/README.md index 0a8adb18..0033822f 100644 --- a/aws/network-data/README.md +++ b/aws/network-data/README.md @@ -4,21 +4,21 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.14.8 | -| [aws](#requirement\_aws) | 5.74.0 | +| [aws](#requirement\_aws) | ~> 4.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.74.0 | +| [aws](#provider\_aws) | ~> 4.0 | ## Resources | Name | Type | |------|------| -| [aws_subnets.private](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/data-sources/subnets) | data source | -| [aws_subnets.public](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/data-sources/subnets) | data source | -| [aws_vpc.this](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/data-sources/vpc) | data source | +| [aws_subnets.private](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/subnets) | data source | +| [aws_subnets.public](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/subnets) | data source | +| [aws_vpc.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/vpc) | data source | ## Inputs diff --git a/aws/network-data/versions.tf b/aws/network-data/versions.tf index 43e4e634..020f4777 100644 --- a/aws/network-data/versions.tf +++ b/aws/network-data/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.74.0" + version = "~> 4.0" } } } diff --git a/aws/network/README.md b/aws/network/README.md index 18d3c5e9..c0147a22 100644 --- a/aws/network/README.md +++ b/aws/network/README.md @@ -54,13 +54,13 @@ module "network" { | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.14.8 | -| [aws](#requirement\_aws) | 5.74.0 | +| [aws](#requirement\_aws) | ~> 4.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.74.0 | +| [aws](#provider\_aws) | ~> 4.0 | ## Modules @@ -77,8 +77,8 @@ module "network" { | Name | Type | |------|------| -| [aws_internet_gateway.this](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/internet_gateway) | resource | -| [aws_vpc.this](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/data-sources/vpc) | data source | +| [aws_internet_gateway.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/internet_gateway) | resource | +| [aws_vpc.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/vpc) | data source | ## Inputs diff --git a/aws/network/modules/nat-gateway/README.md b/aws/network/modules/nat-gateway/README.md index c81c4bd9..5e8b22d4 100644 --- a/aws/network/modules/nat-gateway/README.md +++ b/aws/network/modules/nat-gateway/README.md @@ -4,20 +4,20 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.14.8 | -| [aws](#requirement\_aws) | 5.74.0 | +| [aws](#requirement\_aws) | ~> 4.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.74.0 | +| [aws](#provider\_aws) | ~> 4.0 | ## Resources | Name | Type | |------|------| -| [aws_eip.nat](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/eip) | resource | -| [aws_nat_gateway.this](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/nat_gateway) | resource | +| [aws_eip.nat](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eip) | resource | +| [aws_nat_gateway.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/nat_gateway) | resource | ## Inputs diff --git a/aws/network/modules/nat-gateway/versions.tf b/aws/network/modules/nat-gateway/versions.tf index 43e4e634..020f4777 100644 --- a/aws/network/modules/nat-gateway/versions.tf +++ b/aws/network/modules/nat-gateway/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.74.0" + version = "~> 4.0" } } } diff --git a/aws/network/modules/private-subnet-routes/README.md b/aws/network/modules/private-subnet-routes/README.md index 76ab197e..73607ed9 100644 --- a/aws/network/modules/private-subnet-routes/README.md +++ b/aws/network/modules/private-subnet-routes/README.md @@ -4,22 +4,22 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.14.8 | -| [aws](#requirement\_aws) | 5.74.0 | +| [aws](#requirement\_aws) | ~> 4.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.74.0 | +| [aws](#provider\_aws) | ~> 4.0 | ## Resources | Name | Type | |------|------| -| [aws_route.nat](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/route) | resource | -| [aws_route_table.nat](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/route_table) | resource | -| [aws_route_table_association.nat](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/route_table_association) | resource | -| [aws_nat_gateway.vpc](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/data-sources/nat_gateway) | data source | +| [aws_route.nat](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route) | resource | +| [aws_route_table.nat](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route_table) | resource | +| [aws_route_table_association.nat](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route_table_association) | resource | +| [aws_nat_gateway.vpc](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/nat_gateway) | data source | ## Inputs diff --git a/aws/network/modules/private-subnet-routes/versions.tf b/aws/network/modules/private-subnet-routes/versions.tf index 43e4e634..020f4777 100644 --- a/aws/network/modules/private-subnet-routes/versions.tf +++ b/aws/network/modules/private-subnet-routes/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.74.0" + version = "~> 4.0" } } } diff --git a/aws/network/modules/private-subnets/README.md b/aws/network/modules/private-subnets/README.md index ee4cd1b8..d4cd96b5 100644 --- a/aws/network/modules/private-subnets/README.md +++ b/aws/network/modules/private-subnets/README.md @@ -4,19 +4,19 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.14.8 | -| [aws](#requirement\_aws) | 5.74.0 | +| [aws](#requirement\_aws) | ~> 4.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.74.0 | +| [aws](#provider\_aws) | ~> 4.0 | ## Resources | Name | Type | |------|------| -| [aws_subnet.this](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/subnet) | resource | +| [aws_subnet.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/subnet) | resource | ## Inputs diff --git a/aws/network/modules/private-subnets/versions.tf b/aws/network/modules/private-subnets/versions.tf index 43e4e634..020f4777 100644 --- a/aws/network/modules/private-subnets/versions.tf +++ b/aws/network/modules/private-subnets/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.74.0" + version = "~> 4.0" } } } diff --git a/aws/network/modules/public-subnet-routes/README.md b/aws/network/modules/public-subnet-routes/README.md index e63f42ae..99685f85 100644 --- a/aws/network/modules/public-subnet-routes/README.md +++ b/aws/network/modules/public-subnet-routes/README.md @@ -4,23 +4,23 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.14.8 | -| [aws](#requirement\_aws) | 5.74.0 | +| [aws](#requirement\_aws) | ~> 4.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.74.0 | +| [aws](#provider\_aws) | ~> 4.0 | ## Resources | Name | Type | |------|------| -| [aws_route.internet_gateway_ipv4](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/route) | resource | -| [aws_route.internet_gateway_ipv6](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/route) | resource | -| [aws_route_table.this](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/route_table) | resource | -| [aws_route_table_association.this](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/route_table_association) | resource | -| [aws_internet_gateway.vpc](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/data-sources/internet_gateway) | data source | +| [aws_route.internet_gateway_ipv4](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route) | resource | +| [aws_route.internet_gateway_ipv6](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route) | resource | +| [aws_route_table.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route_table) | resource | +| [aws_route_table_association.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route_table_association) | resource | +| [aws_internet_gateway.vpc](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/internet_gateway) | data source | ## Inputs diff --git a/aws/network/modules/public-subnet-routes/versions.tf b/aws/network/modules/public-subnet-routes/versions.tf index 43e4e634..020f4777 100644 --- a/aws/network/modules/public-subnet-routes/versions.tf +++ b/aws/network/modules/public-subnet-routes/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.74.0" + version = "~> 4.0" } } } diff --git a/aws/network/modules/public-subnets/README.md b/aws/network/modules/public-subnets/README.md index 384ef418..cd4d8d62 100644 --- a/aws/network/modules/public-subnets/README.md +++ b/aws/network/modules/public-subnets/README.md @@ -4,19 +4,19 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.14.8 | -| [aws](#requirement\_aws) | 5.74.0 | +| [aws](#requirement\_aws) | ~> 4.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.74.0 | +| [aws](#provider\_aws) | ~> 4.0 | ## Resources | Name | Type | |------|------| -| [aws_subnet.this](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/subnet) | resource | +| [aws_subnet.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/subnet) | resource | ## Inputs diff --git a/aws/network/modules/public-subnets/versions.tf b/aws/network/modules/public-subnets/versions.tf index 43e4e634..020f4777 100644 --- a/aws/network/modules/public-subnets/versions.tf +++ b/aws/network/modules/public-subnets/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.74.0" + version = "~> 4.0" } } } diff --git a/aws/network/modules/vpc/README.md b/aws/network/modules/vpc/README.md index 20bf2da9..6b41bc3d 100644 --- a/aws/network/modules/vpc/README.md +++ b/aws/network/modules/vpc/README.md @@ -8,26 +8,26 @@ Module for creating a VPC in AWS. | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.14.8 | -| [aws](#requirement\_aws) | 5.74.0 | +| [aws](#requirement\_aws) | ~> 4.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.74.0 | +| [aws](#provider\_aws) | ~> 4.0 | ## Resources | Name | Type | |------|------| -| [aws_cloudwatch_log_group.flow_logs](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/cloudwatch_log_group) | resource | -| [aws_flow_log.vpc](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/flow_log) | resource | -| [aws_iam_policy.flow_logs](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/iam_policy) | resource | -| [aws_iam_role.flow_logs](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/iam_role) | resource | -| [aws_iam_role_policy_attachment.flow_logs](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/iam_role_policy_attachment) | resource | -| [aws_vpc.this](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/resources/vpc) | resource | -| [aws_iam_policy_document.flow_logs](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/data-sources/iam_policy_document) | data source | -| [aws_iam_policy_document.flow_logs_assume_role](https://registry.terraform.io/providers/hashicorp/aws/5.74.0/docs/data-sources/iam_policy_document) | data source | +| [aws_cloudwatch_log_group.flow_logs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource | +| [aws_flow_log.vpc](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/flow_log) | resource | +| [aws_iam_policy.flow_logs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource | +| [aws_iam_role.flow_logs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource | +| [aws_iam_role_policy_attachment.flow_logs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | +| [aws_vpc.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc) | resource | +| [aws_iam_policy_document.flow_logs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | +| [aws_iam_policy_document.flow_logs_assume_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | ## Inputs diff --git a/aws/network/modules/vpc/versions.tf b/aws/network/modules/vpc/versions.tf index 43e4e634..020f4777 100644 --- a/aws/network/modules/vpc/versions.tf +++ b/aws/network/modules/vpc/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.74.0" + version = "~> 4.0" } } } diff --git a/aws/network/versions.tf b/aws/network/versions.tf index 43e4e634..020f4777 100644 --- a/aws/network/versions.tf +++ b/aws/network/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.74.0" + version = "~> 4.0" } } }