Billing access

Gives TrueMark access to Cost Explorer, invoices and other billing data.

truemark-billing-access/template.yaml

CloudFormation template · 31 lines

AWSTemplateFormatVersion: "2010-09-09"
Description: "Provides TrueMark billing and invoicing access"
Resources:
  BillingAccessRole:
    Type: AWS::IAM::Role
    Properties:
      RoleName: "TrueMarkBillingAccess"
      Description: "Provides TrueMark billing and invoicing access. Delete stack to remove access."
      AssumeRolePolicyDocument:
        Version: "2012-10-17"
        Statement:
          - Effect: Allow
            Action:
              - sts:AssumeRole
            Principal:
              AWS:
                - 617383789573
            Condition:
              StringLike:
                'aws:PrincipalArn':
                  - 'arn:aws:iam::617383789573:role/aws-reserved/sso.amazonaws.com/us-east-2/AWSReservedSSO_RemoteBillingAdmin_*'
      Path: "/"
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/job-function/Billing
Outputs:
  BillingAccessRoleARN:
    Value: !GetAtt BillingAccessRole.Arn
    Export:
      Name: BillingAccessRoleARN
Metadata:
  Version: "0"

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