Skip to content

Commit

Permalink
[IT-3301] Setup a participant manager role in Bridge (#1031)
Browse files Browse the repository at this point in the history
Setup a SSO participant manager role for Bridge AWS accounts.

Once merged we can provide Sonia with access to this role so
she can do her thing.
  • Loading branch information
zaro0508 authored Nov 21, 2023
1 parent cb34733 commit cdce849
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions org-formation/700-aws-sso/_tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ Parameters:
Type: String
Default: '906769aa66-e7083100-27d4-49bd-8ed2-c588371a1f91'

bridgeParticipantManagerGroup: #JC aws-bridge-participant-managers
Type: String
Default: '44085488-70f1-704b-c058-b6dde3aba1ef'

scipoolDevAdminGroup: #JC aws-scipooldev-admins
Type: String
Default: '906769aa66-5215fbe3-2331-4ea6-9cb3-ee25cdad4cc8'
Expand Down Expand Up @@ -1089,6 +1093,41 @@ SsoBridgeProdIosDeveloper:
]
}
SsoBridgeParticipantManager:
Type: update-stacks
Template: https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra/v0.3.8/templates/SSO/aws-sso.yaml
StackName: !Sub '${resourcePrefix}-${appName}-bridge-participant-manager'
StackDescription: 'SSO: role used by participant managers in bridge accounts'
DefaultOrganizationBindingRegion: !Ref primaryRegion
DefaultOrganizationBinding:
IncludeMasterAccount: true
OrganizationBindings:
TargetBinding:
Account:
!Ref BridgeDevAccount
!Ref BridgeProdAccount
Parameters:
instanceArn: !Ref instanceArn
principalId: !Ref bridgeParticipantManagerGroup
permissionSetName: 'bridge-participant-manager'
managedPolicies:
- arn:aws:iam::aws:policy/job-function/ViewOnlyAccess
- arn:aws:iam::aws:policy/CloudWatchLogsReadOnlyAccess
- arn:aws:iam::aws:policy/AmazonSNSReadOnlyAccess
sessionDuration: 'PT8H'
inlinePolicy: >-
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "SnsOptInOutAccess",
"Action": [ "sns:CheckIfPhoneNumberIsOptedOut", "sns:OptInPhoneNumber" ],
"Effect": "Allow",
"Resource": "*"
}
]
}
SsoScipoolDevAdmin:
Type: update-stacks
DependsOn: SsoAdministrator
Expand Down

0 comments on commit cdce849

Please sign in to comment.