aws-codebuild-run-build icon indicating copy to clipboard operation
aws-codebuild-run-build copied to clipboard

[Feature Request] Support for computeTypeOverride

Open eogden93 opened this issue 3 years ago • 2 comments

At current I've not seen a way to set an override for the compute type for this action. I would like the ability to set this value as it seems to be supported by the API. https://docs.aws.amazon.com/codebuild/latest/APIReference/API_StartBuild.html#CodeBuild-StartBuild-request-computeTypeOverride

eogden93 avatar May 30 '22 16:05 eogden93

Probably you can use dark-mechanicum/aws-codebuild@v1 action to implement what you need.

name: Running example
on: [push]

env:
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
  AWS_REGION: ${{ secrets.AWS_REGION }}

jobs:
  deploy:
    name: 'Deployment'
    runs-on: ubuntu-latest
    steps:
      - name: Executing AWS CodeBuild task
        uses: dark-mechanicum/aws-codebuild@v1
        env:
          CODEBUILD__computeTypeOverride: BUILD_GENERAL1_MEDIUM
        with:
          projectName: '<your-aws-codebuild-job-name-here>'

akazakou avatar Jul 16 '22 15:07 akazakou

@edogden-pbx, it seems to be available now. In README.md it is listed under Usage/Inputs and also in the Examples. Just use e.g. compute-type-override: BUILD_GENERAL1_SMALL in with: block.

Daniel-BB avatar Sep 12 '22 07:09 Daniel-BB