AWSTemplateFormatVersion: '2010-09-09'
Description: 'Malformed Fn::Select, invalid intrinsic function use in index param'
Mappings:
  ListsInAMap:
    Lists1:
      a: []
      b: []
      c: 'sts:AssumeRole'
    Lists2:
      a: 1
      b: 'asd'
Resources:
  WebServerRole:
    Type: 'AWS::IAM::Role'
    Properties: 
      AssumeRolePolicyDocument: 
          Statement:
            - Effect: 'Allow'
              Principal:  
                Service: 'ec2.amazonaws.com'
              
              Action: !Select [ !Select ["0", ["0", "1"]], ["sts:AssumeRole"]]
      Path: '/'

