terraform-aws-modules / terraform-aws-eks

Terraform module to create Amazon Elastic Kubernetes (EKS) resources πŸ‡ΊπŸ‡¦
https://registry.terraform.io/modules/terraform-aws-modules/eks/aws
Apache License 2.0
4.47k stars 4.08k forks source link

`inline_policy` argument is deprecated in `aws_iam_role` #3162

Closed jmgalvez closed 1 month ago

jmgalvez commented 1 month ago

Description

Just to report a deprecated issue. With the new version of the Terraform AWS Provider 5.68.0 (https://github.com/hashicorp/terraform-provider-aws/releases/tag/v5.68.0) there is a deprecated warning to use _aws_iam_role_policies_exclusive or aws_iam_rolepolicy instead of _inlinepolicy

NOTES:

- resource/aws_iam_role: The inline_policy argument is deprecated. Use the aws_iam_role_policy resource instead. If Terraform should exclusively manage all inline policy associations (the current behavior of this argument), use the aws_iam_role_policies_exclusive resource as well. (https://github.com/hashicorp/terraform-provider-aws/issues/39203)

With the previous versions of the AWS Provider <= v5.67.0 there is no such warning.

Versions

Reproduction Code

Steps to reproduce the behavior:

Terraform init Terraform plan

Expected behavior

No warnings.

Actual behavior

β”‚ Warning: Argument is deprecated
β”‚
β”‚   with module.eks.aws_iam_role.this[0],
β”‚   on .terraform/modules/eks/main.tf line 402, in resource "aws_iam_role" "this":
β”‚  402: resource "aws_iam_role" "this" {
β”‚
β”‚ Use the aws_iam_role_policy resource instead. If Terraform should exclusively manage all inline policy associations (the current behavior of this argument), use the aws_iam_role_policies_exclusive resource as well.
β•΅
antonbabenko commented 1 month ago

This issue has been resolved in version 20.24.2 :tada:

github-actions[bot] commented 3 weeks ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.