Last active
May 5, 2023 22:51
-
-
Save Artureio/9a61aba839aebdf103fd11478fb0082a to your computer and use it in GitHub Desktop.
Bluearch.io Costing Report Engine (Master Account Role).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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