Error: Missing required argument
on file.tf line 31, in resource "aws_iam_role_policy" "iamcd2c87a":
31: resource "aws_iam_role_policy" "iamcd2c87a" {
The argument "policy" is required, but no definition was found.
Error: Unsupported block type
on file.tf line 33, in resource "aws_iam_role_policy" "iamcd2c87a":
33: policy {
Blocks of type "policy" are not expected here. Did you mean to define argument
"policy"? If so, use the equals sign to assign it a value.
Created an Inline policy and the resource isn't working
Terminal error
Terraform version: