Skip to content

Instantly share code, notes, and snippets.

@Artureio
Last active May 5, 2023 22:51
Show Gist options
  • Save Artureio/9a61aba839aebdf103fd11478fb0082a to your computer and use it in GitHub Desktop.
Save Artureio/9a61aba839aebdf103fd11478fb0082a to your computer and use it in GitHub Desktop.
Bluearch.io Costing Report Engine (Master Account Role).
AWSTemplateFormatVersion: 2010-09-09
Description: Sets up the necessary resources to run the Costing Report Engine in the Manager account.
Parameters:
ChildAccountID:
Type: String
Description: The ID of the child account.
Default: 123456789012
Resources:
MasterDataCollerctorROLE:
Type: AWS::IAM::Role
Properties:
RoleName: MasterFinOpsDataCollector
AssumeRolePolicyDocument:
Version: 2012-10-17
Statement:
- Effect: Allow
Principal:
AWS: !Sub arn:aws:iam::${ChildAccountID}:root
Action:
- sts:AssumeRole
Policies:
- PolicyName: !Sub ${AWS::StackName}-MasterDataCollerctorROLE
PolicyDocument:
Version: 2012-10-17
Statement:
- Resource: "*"
Effect: Allow
Action:
- organizations:ListAccounts
- organizations:DescribeOrganization
- ssm:GetParameter
- ssm:GetParameters
- ce:GetDimensionValues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment