FAQ | This is a LIVE service | Changelog

Skip to content

fix: AWS console admin policy code

Dmitrii Unterov requested to merge fix-aws-code-example into master

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/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.

This is to fix warning:


│ Warning: Argument is deprecated

│   with aws_iam_role.admin,
│   on aws-admin.tf line 27, in resource "aws_iam_role" "admin":
│   27: resource "aws_iam_role" "admin" {

│ 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.
Edited by Dmitrii Unterov

Merge request reports

Loading