Adding IAM roles to account connections
Part of creating your account connection includes adding the IAM role or roles you want to use with projects in your CodeCatalyst space.
Note
To use IAM roles with an account connection, make sure that the trust policy is updated to use the CodeCatalyst service principal.
Add IAM roles to an account connection (console)
-
In the AWS Management Console, make sure you are logged in with the same account that you want to manage.
Open the CodeCatalyst console at https://codecatalyst.aws/
. -
Navigate to your CodeCatalyst space. Choose Settings, and then choose AWS accounts.
-
Choose the Amazon CodeCatalyst display name of your account connection, and then choose Manage roles from AWS Management Console.
The Add IAM role to Amazon CodeCatalyst space page displays.
-
Do one of the following:
-
To create a service role that contains the permissions policy and trust policy for the developer role, choose Create CodeCatalyst development administrator role in IAM. The role will have a name
CodeCatalystWorkflowDevelopmentRole-
with a unique identifier appended. For more information about the role and role policy, see Understanding the CodeCatalystWorkflowDevelopmentRole-spaceName service role.spaceName
Choose Create development role.
-
To add a role that you have already created in IAM, choose Add an existing IAM role. In Select existing IAM role, choose the role from the drop-down list.
Choose Add role.
The page opens in the AWS Management Console. You might need to log in to access the page.
-
-
In the Amazon CodeCatalyst spaces page navigation pane, choose Spaces.
To directly access the page, sign in to the Amazon CodeCatalyst Spaces in the AWS Management Console at https://console.aws.amazon.com/codecatalyst/home/.
-
Choose the account added for your CodeCatalyst space. The connection page is shown.
-
On the connection page, under IAM roles available to CodeCatalyst, view the list of IAM roles added to your account. Choose Associate IAM role to CodeCatalyst.
-
On the Associate an IAM role pop-up, in Role ARN, enter the Amazon Resource Name (ARN) of the IAM role you want to associate with your CodeCatalyst space.
Under Purpose, choose a role purpose that describes how you want to use the role in your account connection. Specify
RUNNER
for roles that you use to run actions in workflows. SpecifySERVICE
for roles that you use to access another service.You can specify more than one purpose.
Note
Choosing a purpose for the role ARN is required.
-
Choose Associate an IAM role. Repeat these steps for additional IAM roles.