CloudWatchLogsGroup:
Type: AWS::IAM::Group
Properties:
Path: "/"
CloudWatchLogsRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Statement:
- Effect: Allow
Principal:
Service:
- ec2.amazonaws.com
Action:
- sts:AssumeRole
- Effect: Allow
Principal:
Federated: !Sub "arn:aws:iam::${AWS::AccountId}:saml-provider/UA_Shibboleth_IdP"
Action: sts:AssumeRoleWithSAML
Condition:
StringEquals:
SAML:aud: https:
CloudWatchLogsRoleProfile:
Type: AWS::IAM::InstanceProfile
DependsOn: CloudWatchLogsRole
Properties:
Path: "/"
Roles:
- Ref: CloudWatchLogsRole
User Roles CloudFormation Deployment
This CloudFormation template will deploy IAM roles for use by Users of this account.