Skip to content

AWS::CodeBuild::Project - Add AutoRetryLimit #2170

Closed
@mdgm88

Description

@mdgm88

Name of the resource

AWS::CodeBuild::Project

Resource name

No response

Description

A new feature has been added to the SDK to set the AutoRetryLimit for a CodeBuild Project: https://docs.aws.amazon.com/codebuild/latest/userguide/auto-retry-build.html

It would be nice if support for this was added to AWS::CodeBuild::Project so we can use IaC to configure this new feature

Other Details

No response

Activity

colyoonamaz

colyoonamaz commented on Nov 1, 2024

@colyoonamaz

It seems like this feature is currently supported within CFN, but the documentation is slightly out of date. You can create a CodeBuild project with an AutoRetryLimit using the following template:

Resources:
  CodeBuildProject:
    Type: AWS::CodeBuild::Project
    Properties:
      Name: AutoRetryProject
      ServiceRole: <Service Role>
      Artifacts:
        Type: NO_ARTIFACTS
      Environment:
        Type: LINUX_CONTAINER
        ComputeType: BUILD_GENERAL1_SMALL
        Image: aws/codebuild/standard:1.0
      AutoRetryLimit: 3
      Source:
        Type: GITHUB
        Location: <Source Location>
mdgm88

mdgm88 commented on Nov 3, 2024

@mdgm88
Author

Thanks. That works, however cfn-lint sees it as invalid. Will need to raise a separate request on that repo

mdgm88

mdgm88 commented on Nov 3, 2024

@mdgm88
Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AWS::CodeBuild::Project - Add AutoRetryLimit · Issue #2170 · aws-cloudformation/cloudformation-coverage-roadmap