Remote administrator access

Gives TrueMark engineers administrator access to your account.

remote-admin/template.yaml

CloudFormation template · 32 lines

AWSTemplateFormatVersion: "2010-09-09"
Description: "Provides TrueMark admin access"
Resources:
  RemoteAdminRole:
    Type: AWS::IAM::Role
    Properties:
      RoleName: "TrueMarkRemoteAdmin"
      Description: "Provides TrueMark admin access. Delete stack to remove access."
      AssumeRolePolicyDocument:
        Version: "2012-10-17"
        Statement:
          - Effect: Allow
            Action:
              - sts:AssumeRole
            Principal:
              AWS:
                - 617383789573
            Condition:
              'ForAnyValue:StringLike':
                'aws:PrincipalArn':
                  - >-
                    arn:aws:iam::*:role/aws-reserved/sso.amazonaws.com/*/AWSReservedSSO_RemoteAdmin_*
      Path: "/"
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/AdministratorAccess
Outputs:
  RemoteAdminRoleARN:
    Value: !GetAtt RemoteAdminRole.Arn
    Export:
      Name: RemoteAdminRoleARN
Metadata:
  Version: "0"

Launch stack opens the AWS CloudFormation console in us-east-2 with this template and the stack name truemark-remote-admin filled in. Deleting the stack removes the access.