aws-samples/aws-modern-application-workshop

Module-2: Codebuild: Error due to poor image specification (InvalidInputException)

Opened this issue · 0 comments

Issue

The file ~/environment/aws-modern-application-workshop/module-2/aws-cli/code-build-project.json raise (InvalidInputException) due to poor image specification.

Proposed Solution (Temporary)

Given the doc we can change the image to "aws/codebuild/standard:4.0"

{
"name": "MythicalMysfitsServiceCodeBuildProject",
"artifacts": {
"type": "no_artifacts"
},
"environment": {
"computeType": "BUILD_GENERAL1_SMALL",
"image": "aws/codebuild/standard:4.0",
"privilegedMode": true,
"environmentVariables": [
{
"name": "AWS_ACCOUNT_ID",
"value": "REPLACE_ME_ACCOUNT_ID"
},
{
"name": "AWS_DEFAULT_REGION",
"value": "REPLACE_ME_REGION"
}
],
"type": "LINUX_CONTAINER"
},
"serviceRole": "REPLACE_ME_CODEBUILD_ROLE_ARN",
"source": {
"type": "CODECOMMIT",
"location": "https://git-codecommit.REPLACE_ME_REGION.amazonaws.com/v1/repos/MythicalMysfitsService-Repository"
}
}