Associating an AWS account with an environment - Amazon CodeCatalyst

Associating an AWS account with an environment

Use the following instructions to associate an AWS account with an environment. When you associate an AWS account with an environment, workflow actions that are assigned the environment will be able to connect to the AWS account.

For more information about account connections, see Allowing access to AWS resources with connected AWS accounts.

Before you begin

You need the following:

To associate an AWS account with an environment
  1. Open the CodeCatalyst console at https://codecatalyst.aws/.

  2. Choose your project.

  3. In the navigation pane, choose CI/CD, and then choose Environments.

  4. Choose your environment (for example, Production).

  5. Choose Edit environment.

  6. Under Environment properties, in the AWS account connection - optional drop-down list, choose your desired AWS account.

    If the AWS account connection that you want to use is not listed, it might be because it's not allowed in your project. For more information, see Configuring project-restricted account connections in the Amazon CodeCatalyst Administrator Guide.

  7. In Default IAM role, choose the IAM role you want to associate with this environment. Workflow actions that are assigned this environment will inherit this IAM role, and will be able to use it to connect to services and resources in your AWS account.

    If the IAM role that you want to use as the default is not listed, it might be because you have not added it to your AWS account connection yet. To add an IAM role to an account connection, see Adding IAM roles to account connections.