Defining two statements for the action on an IAM role
问题 Is it possible, to have two statements for the same action in an IAM role? For different actions, it works fine, but when creating a new statement for the same actions it's not working. Example: IamDeploymentRole: Type: "AWS::IAM::Role" Properties: RoleName: "iam-deployment" AssumeRolePolicyDocument: Version: "2012-10-17" Statement: - Effect: "Allow" Principal: AWS: - !Sub "arn:aws:iam::${ManagementAccountID}:root" Action: - "sts:AssumeRole" Condition: IpAddress: X - Effect: "Allow" Principal