fix: AWS console admin policy code
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role
The
inline_policy
argument is deprecated. Use theaws_iam_role_policy
resource instead. If Terraform should exclusively manage all inline policy associations (the current behavior of this argument), use theaws_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