Skip to content

Commit 2fc98f3

Browse files
renovate[bot]cloudpossebotnitrocode
authored
Update Terraform cloudposse/iam-policy/aws to v0.4.0 (#32)
* Update Terraform cloudposse/iam-policy/aws to v0.4.0 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com> Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
1 parent 8c8c090 commit 2fc98f3

File tree

8 files changed

+35
-29
lines changed

8 files changed

+35
-29
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Available targets:
207207

208208
| Name | Version |
209209
|------|---------|
210-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13 |
210+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
211211
| <a name="requirement_helm"></a> [helm](#requirement\_helm) | >= 2.2 |
212212

213213
## Providers
@@ -220,7 +220,7 @@ Available targets:
220220

221221
| Name | Source | Version |
222222
|------|--------|---------|
223-
| <a name="module_eks_iam_policy"></a> [eks\_iam\_policy](#module\_eks\_iam\_policy) | cloudposse/iam-policy/aws | 0.3.0 |
223+
| <a name="module_eks_iam_policy"></a> [eks\_iam\_policy](#module\_eks\_iam\_policy) | cloudposse/iam-policy/aws | 0.4.0 |
224224
| <a name="module_eks_iam_role"></a> [eks\_iam\_role](#module\_eks\_iam\_role) | cloudposse/eks-iam-role/aws | 1.1.0 |
225225
| <a name="module_this"></a> [this](#module\_this) | cloudposse/label/null | 0.25.0 |
226226

@@ -257,8 +257,8 @@ Available targets:
257257
| <a name="input_force_update"></a> [force\_update](#input\_force\_update) | Force resource update through delete/recreate if needed. Defaults to `false`. | `bool` | `null` | no |
258258
| <a name="input_iam_policy_statements"></a> [iam\_policy\_statements](#input\_iam\_policy\_statements) | IAM policy for the service account. Required if `var.iam_role_enabled` is `true`. This will not do variable replacements. Please see `var.iam_policy_statements_template_path`. | `any` | `{}` | no |
259259
| <a name="input_iam_role_enabled"></a> [iam\_role\_enabled](#input\_iam\_role\_enabled) | Whether to create an IAM role. Setting this to `true` will also replace any occurrences of `{service_account_role_arn}` in `var.values_template_path` with the ARN of the IAM role created by this module. | `bool` | `false` | no |
260-
| <a name="input_iam_source_json"></a> [iam\_source\_json](#input\_iam\_source\_json) | IAM source JSON policy to use as `source_json` argument. This can be used with or instead of the `var.iam_policy_statements`. this cannot be used with `var.iam_source_json_url`. | `string` | `null` | no |
261260
| <a name="input_iam_source_json_url"></a> [iam\_source\_json\_url](#input\_iam\_source\_json\_url) | IAM source json policy to download. This will be used as the `source_json` meaning the `var.iam_policy_statements` and `var.iam_policy_statements_template_path` can override it. | `string` | `null` | no |
261+
| <a name="input_iam_source_policy_documents"></a> [iam\_source\_policy\_documents](#input\_iam\_source\_policy\_documents) | List of IAM policy documents that are merged together into the exported document. Statements defined in `source_policy_documents` or `source_json` must have unique sids. Statements with the same sid from documents assigned to the `override_json` and `override_policy_documents` arguments will override source statements. | `list(string)` | `null` | no |
262262
| <a name="input_id_length_limit"></a> [id\_length\_limit](#input\_id\_length\_limit) | Limit `id` to this many characters (minimum 6).<br>Set to `0` for unlimited length.<br>Set to `null` for keep the existing setting, which defaults to `0`.<br>Does not affect `id_full`. | `number` | `null` | no |
263263
| <a name="input_keyring"></a> [keyring](#input\_keyring) | Location of public keys used for verification. Used only if `verify` is true. Defaults to `/.gnupg/pubring.gpg` in the location set by `home`. | `string` | `null` | no |
264264
| <a name="input_kubernetes_namespace"></a> [kubernetes\_namespace](#input\_kubernetes\_namespace) | The namespace to install the release into. Defaults to `default`. | `string` | `null` | no |
@@ -487,7 +487,7 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
487487

488488
[![README Footer][readme_footer_img]][readme_footer_link]
489489
[![Beacon][beacon]][website]
490-
490+
<!-- markdownlint-disable -->
491491
[logo]: https://cloudposse.com/logo-300x69.svg
492492
[docs]: https://cpco.io/docs?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-helm-release&utm_content=docs
493493
[website]: https://cpco.io/homepage?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-helm-release&utm_content=website
@@ -518,3 +518,4 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
518518
[share_googleplus]: https://plus.google.com/share?url=https://github.com/cloudposse/terraform-aws-helm-release
519519
[share_email]: mailto:?subject=terraform-aws-helm-release&body=https://github.com/cloudposse/terraform-aws-helm-release
520520
[beacon]: https://ga-beacon.cloudposse.com/UA-76589703-4/cloudposse/terraform-aws-helm-release?pixel&cs=github&cm=readme&an=terraform-aws-helm-release
521+
<!-- markdownlint-restore -->

docs/terraform.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
| Name | Version |
55
|------|---------|
6-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13 |
6+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
77
| <a name="requirement_helm"></a> [helm](#requirement\_helm) | >= 2.2 |
88

99
## Providers
@@ -16,7 +16,7 @@
1616

1717
| Name | Source | Version |
1818
|------|--------|---------|
19-
| <a name="module_eks_iam_policy"></a> [eks\_iam\_policy](#module\_eks\_iam\_policy) | cloudposse/iam-policy/aws | 0.3.0 |
19+
| <a name="module_eks_iam_policy"></a> [eks\_iam\_policy](#module\_eks\_iam\_policy) | cloudposse/iam-policy/aws | 0.4.0 |
2020
| <a name="module_eks_iam_role"></a> [eks\_iam\_role](#module\_eks\_iam\_role) | cloudposse/eks-iam-role/aws | 1.1.0 |
2121
| <a name="module_this"></a> [this](#module\_this) | cloudposse/label/null | 0.25.0 |
2222

@@ -53,8 +53,8 @@
5353
| <a name="input_force_update"></a> [force\_update](#input\_force\_update) | Force resource update through delete/recreate if needed. Defaults to `false`. | `bool` | `null` | no |
5454
| <a name="input_iam_policy_statements"></a> [iam\_policy\_statements](#input\_iam\_policy\_statements) | IAM policy for the service account. Required if `var.iam_role_enabled` is `true`. This will not do variable replacements. Please see `var.iam_policy_statements_template_path`. | `any` | `{}` | no |
5555
| <a name="input_iam_role_enabled"></a> [iam\_role\_enabled](#input\_iam\_role\_enabled) | Whether to create an IAM role. Setting this to `true` will also replace any occurrences of `{service_account_role_arn}` in `var.values_template_path` with the ARN of the IAM role created by this module. | `bool` | `false` | no |
56-
| <a name="input_iam_source_json"></a> [iam\_source\_json](#input\_iam\_source\_json) | IAM source JSON policy to use as `source_json` argument. This can be used with or instead of the `var.iam_policy_statements`. this cannot be used with `var.iam_source_json_url`. | `string` | `null` | no |
5756
| <a name="input_iam_source_json_url"></a> [iam\_source\_json\_url](#input\_iam\_source\_json\_url) | IAM source json policy to download. This will be used as the `source_json` meaning the `var.iam_policy_statements` and `var.iam_policy_statements_template_path` can override it. | `string` | `null` | no |
57+
| <a name="input_iam_source_policy_documents"></a> [iam\_source\_policy\_documents](#input\_iam\_source\_policy\_documents) | List of IAM policy documents that are merged together into the exported document. Statements defined in `source_policy_documents` or `source_json` must have unique sids. Statements with the same sid from documents assigned to the `override_json` and `override_policy_documents` arguments will override source statements. | `list(string)` | `null` | no |
5858
| <a name="input_id_length_limit"></a> [id\_length\_limit](#input\_id\_length\_limit) | Limit `id` to this many characters (minimum 6).<br>Set to `0` for unlimited length.<br>Set to `null` for keep the existing setting, which defaults to `0`.<br>Does not affect `id_full`. | `number` | `null` | no |
5959
| <a name="input_keyring"></a> [keyring](#input\_keyring) | Location of public keys used for verification. Used only if `verify` is true. Defaults to `/.gnupg/pubring.gpg` in the location set by `home`. | `string` | `null` | no |
6060
| <a name="input_kubernetes_namespace"></a> [kubernetes\_namespace](#input\_kubernetes\_namespace) | The namespace to install the release into. Defaults to `default`. | `string` | `null` | no |

examples/complete/main-eks.tf

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ provider "aws" {
44

55
module "label" {
66
source = "cloudposse/label/null"
7-
version = "0.24.1"
7+
version = "0.25.0"
88
attributes = ["cluster"]
99

1010
context = module.this.context
@@ -34,22 +34,23 @@ locals {
3434

3535
module "vpc" {
3636
source = "cloudposse/vpc/aws"
37-
version = "0.21.1"
37+
version = "1.1.1"
3838

39-
cidr_block = "172.16.0.0/16"
40-
tags = local.tags
39+
ipv4_primary_cidr_block = "172.16.0.0/16"
40+
41+
tags = local.tags
4142

4243
context = module.this.context
4344
}
4445

4546
module "subnets" {
4647
source = "cloudposse/dynamic-subnets/aws"
47-
version = "0.38.0"
48+
version = "2.0.3"
4849

4950
availability_zones = var.availability_zones
5051
vpc_id = module.vpc.vpc_id
51-
igw_id = module.vpc.igw_id
52-
cidr_block = module.vpc.vpc_cidr_block
52+
igw_id = [module.vpc.igw_id]
53+
ipv4_cidr_block = [module.vpc.vpc_cidr_block]
5354
nat_gateway_enabled = true
5455
nat_instance_enabled = false
5556
tags = local.tags
@@ -61,7 +62,7 @@ module "subnets" {
6162

6263
module "eks_cluster" {
6364
source = "cloudposse/eks-cluster/aws"
64-
version = "0.39.0"
65+
version = "2.4.0"
6566

6667
region = var.region
6768
vpc_id = module.vpc.vpc_id
@@ -96,7 +97,7 @@ data "null_data_source" "wait_for_cluster_and_kubernetes_configmap" {
9697

9798
module "eks_node_group" {
9899
source = "cloudposse/eks-node-group/aws"
99-
version = "0.19.0"
100+
version = "2.4.0"
100101

101102
subnet_ids = module.subnets.private_subnet_ids
102103
cluster_name = data.null_data_source.wait_for_cluster_and_kubernetes_configmap.outputs["cluster_name"]
@@ -105,7 +106,9 @@ module "eks_node_group" {
105106
min_size = var.min_size
106107
max_size = var.max_size
107108
kubernetes_labels = var.kubernetes_labels
108-
disk_size = var.disk_size
109+
110+
# Prevent the node groups from being created before the Kubernetes aws-auth ConfigMap
111+
module_depends_on = module.eks_cluster.kubernetes_config_map_id
109112

110113
context = module.this.context
111114
}

examples/complete/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ module "helm_release" {
2424
create_namespace = var.create_namespace
2525
kubernetes_namespace = var.kubernetes_namespace
2626

27+
eks_cluster_oidc_issuer_url = module.eks_cluster.eks_cluster_identity_oidc_issuer
28+
2729
atomic = var.atomic
2830
cleanup_on_fail = var.cleanup_on_fail
2931
timeout = var.timeout

examples/complete/versions.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
terraform {
2-
required_version = ">= 0.12.26"
2+
required_version = ">= 1.0"
33

44
required_providers {
5-
local = {
6-
source = "hashicorp/local"
7-
version = ">= 1.2"
5+
helm = {
6+
source = "hashicorp/helm"
7+
version = ">= 2.2"
88
}
99
}
1010
}

main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ locals {
55

66
module "eks_iam_policy" {
77
source = "cloudposse/iam-policy/aws"
8-
version = "0.3.0"
8+
version = "0.4.0"
99

1010
enabled = local.iam_role_enabled
1111

12-
iam_source_json = var.iam_source_json
13-
iam_source_json_url = var.iam_source_json_url
14-
iam_policy_statements = var.iam_policy_statements
12+
iam_source_policy_documents = var.iam_source_policy_documents
13+
iam_source_json_url = var.iam_source_json_url
14+
iam_policy_statements = var.iam_policy_statements
1515

1616
context = module.this.context
1717
}

variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ variable "iam_role_enabled" {
88

99
## eks_iam_policy
1010

11-
variable "iam_source_json" {
12-
type = string
13-
description = "IAM source JSON policy to use as `source_json` argument. This can be used with or instead of the `var.iam_policy_statements`. this cannot be used with `var.iam_source_json_url`."
11+
variable "iam_source_policy_documents" {
12+
type = list(string)
13+
description = "List of IAM policy documents that are merged together into the exported document. Statements defined in `source_policy_documents` or `source_json` must have unique sids. Statements with the same sid from documents assigned to the `override_json` and `override_policy_documents` arguments will override source statements."
1414
default = null
1515
}
1616

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = ">= 0.13"
2+
required_version = ">= 1.0"
33

44
required_providers {
55
# Update these to reflect the actual requirements of your module

0 commit comments

Comments
 (0)