PARALLAX

codebuild_project

Create or delete an AWS CodeBuild project

Collection: community.aws

Full Name: community.aws.codebuild_project

Synopsis

Create or delete an AWS CodeBuild project

Parameters

NameTypeRequiredDefaultDescription
access_keystr
artifactsdict
aws_ca_bundlepath
aws_configdict
cachedict
debug_botocore_endpoint_logsboolfalse
descriptionstr
encryption_keystr
endpoint_urlstr
environmentdict
namestryes
profilestr
purge_tagsbooltrue
regionstr
secret_keystr
service_rolestr
session_tokenstr
sourcedict
statestrpresent
tagsdict
timeout_in_minutesint60
validate_certsbooltrue
vpc_configdict

Example

yaml
- name: Create or delete an AWS CodeBuild project
  community.aws.codebuild_project:
    name: my_project
    description: My nice little project
    service_role: "arn:aws:iam::123123:role/service-role/code-build-service-role"
    source:
        # Possible values: BITBUCKET, CODECOMMIT, CODEPIPELINE, GITHUB, S3
        type: CODEPIPELINE
        buildspec: ''
    artifacts:
        namespaceType: NONE
        packaging: NONE
        type: CODEPIPELINE
        name: my_project
    environment:
        computeType: BUILD_GENERAL1_SMALL
        privilegedMode: "true"
        image: "aws/codebuild/docker:17.09.0"
        type: LINUX_CONTAINER
        environmentVariables:
            - name: 'PROFILE'
              value: 'staging'
    encryption_key: "arn:aws:kms:us-east-1:123123:alias/aws/s3"
    region: us-east-1
    state: present
Search
    ↑ ↓ move↵ openesc close