Question:
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Resources: LambdaExecRole: Type: AWS::IAM::Role Properties: Path: "/" AssumeRolePolicyDocument: Version: "2012-10-17" Statement: - Effect: Allow Principal: Action: - "sts:AssumeRole" Service: - "lambda.amazonaws.com" |
Answer:
Action needed to be at the same level as Principal.