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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| artifacts | dict | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| cache | dict | |||
| debug_botocore_endpoint_logs | bool | false | ||
| description | str | |||
| encryption_key | str | |||
| endpoint_url | str | |||
| environment | dict | |||
| name | str | yes | ||
| profile | str | |||
| purge_tags | bool | true | ||
| region | str | |||
| secret_key | str | |||
| service_role | str | |||
| session_token | str | |||
| source | dict | |||
| state | str | present | ||
| tags | dict | |||
| timeout_in_minutes | int | 60 | ||
| validate_certs | bool | true | ||
| vpc_config | dict |
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