-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
794b61e
commit c1943de
Showing
16 changed files
with
1,797 additions
and
910 deletions.
There are no files selected for viewing
File renamed without changes.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
AWSTemplateFormatVersion: "2010-09-09" | ||
Description: Deploy Cross-Account Role for PHD access | ||
Parameters: | ||
OrgMemberAccountId: | ||
Type: String | ||
AllowedPattern: '^\d{12}$' | ||
Description: AWS Account ID of the AWS Organizations Member Account that will run AWS Health Aware | ||
Resources: | ||
AWSHealthAwareRoleForPHDEvents: | ||
Type: "AWS::IAM::Role" | ||
Properties: | ||
Description: "Grants access to PHD events" | ||
Path: / | ||
AssumeRolePolicyDocument: | ||
Version: '2012-10-17' | ||
Statement: | ||
- Action: | ||
- sts:AssumeRole | ||
Effect: Allow | ||
Principal: | ||
AWS: !Sub 'arn:aws:iam::${OrgMemberAccountId}:root' | ||
Policies: | ||
- PolicyName: AllowHealthCalls | ||
PolicyDocument: | ||
Statement: | ||
- Effect: Allow | ||
Action: | ||
- health:DescribeAffectedAccountsForOrganization | ||
- health:DescribeAffectedEntitiesForOrganization | ||
- health:DescribeEventDetailsForOrganization | ||
- health:DescribeEventsForOrganization | ||
- health:DescribeEventDetails | ||
- health:DescribeEvents | ||
- health:DescribeEventTypes | ||
- health:DescribeAffectedEntities | ||
Resource: "*" | ||
- PolicyName: AllowsDescribeOrg | ||
PolicyDocument: | ||
Statement: | ||
- Effect: Allow | ||
Action: | ||
- organizations:ListAccounts | ||
- organizations:ListAWSServiceAccessForOrganization | ||
- organizations:DescribeAccount | ||
Resource: "*" | ||
Outputs: | ||
AWSHealthAwareRoleForPHDEventsArn: | ||
Value: !GetAtt AWSHealthAwareRoleForPHDEvents.Arn |
Oops, something went wrong.