Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is my CFN IAM role failing with "Missing required field Action"?

My code clearly has an action. So I assume its a formatting error. I know it's a silly thing but I cant figure it out.

Resources:
  LambdaExecRole:
    Type: AWS::IAM::Role
    Properties:
      Path: "/"
       AssumeRolePolicyDocument:
        Version: "2012-10-17"
        Statement:
         -
          Effect: Allow
           Principal:
            Action:
              - "sts:AssumeRole"
            Service:
              - "lambda.amazonaws.com"
like image 728
Josh Beauregard Avatar asked Mar 28 '17 13:03

Josh Beauregard


1 Answers

Action needed to be at the same level as Principal.

like image 66
Josh Beauregard Avatar answered Oct 22 '22 19:10

Josh Beauregard