cloudformation template to create IAM role with inline policy


I am trying to create an IAM role using the below template. I am able to create the role with managed policies. When I try to add inline policy in my template I get the error

“Property PolicyDocument cannot be empty.”


Policies is a list of policy objects which is written as follows, with each individual policy object embedded in curly braces inside the [] list:

Leave a Reply