Praveen sivadasan
Praveen sivadasan

Reputation: 175

how to configure multiple AWS profiles in AWS code build buildspec file

I am trying to provision AWS services in multiple accounts (Same organization), using Terraform, Codebuild, Codecommit and Codepipeline. How to configure multiple named profiles (AWS Configure) in buildspec file? Is there any other workaround for this?

Upvotes: 1

Views: 495

Answers (1)

Marcin
Marcin

Reputation: 238209

multiple named profiles (AWS Configure) in buildspec file

This is not a good idea. Usually you allow for cross-account access using cross-account IAM roles. So in your case, your CB script would assume IAM roles for different accounts so that it can interact with them.

Upvotes: 1

Related Questions