Skip to content

Instantly share code, notes, and snippets.

@patrickbrus
Created September 18, 2022 15:05
Show Gist options
  • Save patrickbrus/bf3c758979a8202a2170a79b79661f90 to your computer and use it in GitHub Desktop.
Save patrickbrus/bf3c758979a8202a2170a79b79661f90 to your computer and use it in GitHub Desktop.
CodeBuildDockerBirdsClassifierImage:
Type: AWS::CodeBuild::Project
Properties:
Name: !Ref CodeBuildProjectName
ServiceRole: !Ref CodeBuildBirdsClassifierImageServiceRole
Artifacts:
Type: CODEPIPELINE
LogsConfig:
CloudWatchLogs:
Status: ENABLED
GroupName: !Sub ${CodeBuildProjectName}-CloudWatchLogs-BuildLogGroup-Name
Environment:
Type: LINUX_CONTAINER
PrivilegedMode: true
Image: aws/codebuild/standard:6.0
ComputeType: BUILD_GENERAL1_SMALL
EnvironmentVariables:
- Name: IMAGE_TAG
Type: PLAINTEXT
Value: latest
- Name: IMAGE_REPO_NAME
Type: PLAINTEXT
Value: birds-classifier-image
- Name: BUCKET_NAME
Type: PLAINTEXT
Value: !Ref S3BucketNameTrainedModel
- Name: BUCKET_REGION
Type: PLAINTEXT
Value: eu-central-1
Source:
Type: CODEPIPELINE
BuildSpec: aws_build_specs/buildspec_zip.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment