Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update deprecated inline_policy argument in IAM role resource #79

Open
JPBou opened this issue Dec 24, 2024 · 0 comments
Open

fix: Update deprecated inline_policy argument in IAM role resource #79

JPBou opened this issue Dec 24, 2024 · 0 comments

Comments

@JPBou
Copy link

JPBou commented Dec 24, 2024

Description

When applying the Terraform configuration for Vantage integration, the following deprecation warning is displayed:

Warning: Argument is deprecated

  with module.vantage-integration.aws_iam_role.vantage_cross_account_connection_with_bucket[0],
  on .terraform/modules/vantage-integration/main.tf line 34, in resource "aws_iam_role" "vantage_cross_account_connection_with_bucket":
  34: resource "aws_iam_role" "vantage_cross_account_connection_with_bucket" {
The inline_policy argument is deprecated. Use the aws_iam_role_policy resource instead.

Proposed Solution

Replace the deprecated inline_policy argument with the recommended aws_iam_role_policy resource. If exclusive management of inline policies is required, also implement the aws_iam_role_policies_exclusive resource.

Additional Context

This warning appears in the Vantage integration module
The affected resource is aws_iam_role.vantage_cross_account_connection_with_bucket
The warning is from line 34 in main.tf

Version Information

Terraform Provider AWS version constraint: >= 4.0.0, < 6.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant