Using Bitbucket CodeStar Connection cross account

0

Account A has CodeStar Connection (sort of Admin account)

Account B wants to create a CodePipeline using the CodeStar connection in account A.

What permissions or setup is needed to achieve this?

Using the connection ARN from account A in account B causes sourcing error in pipeline with message "The provided role does not have sufficient permissions".

Is there any restriction of the "region" of the connection ARN to be used?

Suman
preguntada hace 2 años1050 visualizaciones
1 Respuesta
0

Note that CodeStar Connection does not officially support sharing across accounts. As a result, there is no direct way to have a CodeStar Connection (CSC) created in AccountA to trigger a CodePipeline in AccountB. CodeStar Connections will only trigger pipelines that are defined in the same account as the CodeStar Connection.

If you don't care about triggering the pipelines, then you can technically achieve this by:

  1. Creating the CodeStar Connection in AccountA
  2. Creating an IAM role in AccountA that has a trust policy allowing CodePipeline service in spoke accounts to assume it. Make sure that the permissions policy on this IAM role has codestar-connections:UseConnection for the CodeStar Connection created in Step 1.
  3. Use the IAM role from AccountA when defining the Source Action in the CodePipeline which resides in AccountB
AWS
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas