1
votes

Does AWS CodeBuild already has aws-cli installed? If yes, do i still need to configure a profile or a role attached to codebuild would be sufficient?

Best Regards

3

3 Answers

3
votes

For the first question, the answer is 'Yes'. The curated images have the aws-cli installed.

For the second question, the service role you provided in the project would be use, but you could still configure your profile if you want to.

0
votes

Just to make it clearer and concise: CodeBuild can't have aws-cli installed, but the images it uses to run a build can have it.

Images managed by AWS CodeBuild do have AWS CLI and you can verify it by simply adding aws --version to one of you commands (pre_build might be a good place for that).

Same check can be done for the custom images, if you're not sure.

0
votes

You can find more details on the Github page on what packages are installed in the images. In the AWS documentation you can find the links to the according Github pages.