Roles deployed
Introduction
Sandbox Studio installs multiple roles in your environment, each serving different purposes:purposes
OrgMgtRole -
1. OrgMgtRole - SandboxStudio-{Namespace}-OrgMgtRole
(Move
2.
Hub
step functions,
3.able to assume the Org Management Role
Management
in Identity
4.
Member
IntermediateRole
5.
Hub
CodeBuildDeployRole
More info on LaunchTemplateExternalAccessRole
This role is a bit particular in the sense that it is created with the following policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Condition": {
"StringNotEquals": {
"aws:ResourceAccount": "<HUB ACCOUNT ID>"
}
},
"Action": [
"s3:GetObject",
"s3:ListBucket"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
This gives the role permissions to list buckets and get objects in every buckets that are NOT the Hub Account (The account where the role is created).
The purpose of this is to allow you to grant this role access to your own bucket should you have resources in other accounts.
For example, let's say you want to launch a template in a Sandbox Account with resources coming from an external S3 bucket (resources, CloudFormation templates, ...). You can grant access to your external bucket to this role through Bucket policy.
The codebuild task running your launch template will assume this role which in turn can access your resources in a secure manner.