AWS Codebuild
Last updated
Was this helpful?
Last updated
Was this helpful?
Project configuration
Source
Environment
Buildspec
Artifacts
Logs
nothing special just put description
of project
in this guide use AWS CodePipeline
and that CodePipeline linked github
check Allow AWS CodeBuild to modify this service role so it can be used with this build project
this environment variables can not bring from AWS Systems Manager
Parameter Store
not yet (2019-08)
This environment variables using in Builspec
you should make Service role
for this. in IAM
go to IAM
make policies name such as custom-codbuild-policies
- Add CloudWatch Logs - Write
- Add S3 - Read, Write(include put Put)
make roles. name such as custom-codebuild-role
add custom-codbuild-policies
in custom-codebuild-role
this if for Amazon ECR repository name. you should make repository in Amazon ECR
IMAGE_TAG is literally tag name for docker image
you can check AWS_ACCOUNT_ID in Support center
https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html
AWS CodePipeline require buildspec
file
e.g
Getting Super Powers
Becoming a super hero is a fairly straight forward process:
Super-powers are granted randomly so please submit an issue if you're not happy with yours.
Once you're strong enough, save the world: