Sha256: 7439b2809b54e5fbd22570e9bb077783892b390accb4e90d5dce6c35b659041f

Contents?: true

Size: 1.34 KB

Versions: 2

Compression:

Stored size: 1.34 KB

Contents

---
title: Naming Conventions
nav_order: 9
---

The codebuild tool follows a few naming conventions.

## Project Name

It will set the codebuild project name by inferring the name of the parent folder.  For example, if the parent folder is `demo`.

    cd demo
    cb deploy

The CodeBuild project is named `demo`. You can override this easily by providing a project name.

    cd deploy my-project # explicitly use my-project as CodeBuild project name

The CodeBuild project is named `my-project`

## Type Option

If the `--type` option is used, then it is appended to the CodeBuild project name. For example:

    cb deploy my-project --type unit

The CodeBuild project is named `my-project-unit`.

## CB_ENV_EXTRA

The `CB_ENV_EXTRA` also affects the name of the CodeBuild project.  It gets appended after the type option.

    CB_ENV_EXTRA=2 cb deploy my-project --type unit

The CodeBuild project is named `my-project-unit-2`.

## Settings append_env option

If the append_env is configured in the [Settings]({% link _docs/settings.md %}).

## Stack Name

The CloudFormation stack name which creates the CodeBuild related resources is named the same as the project name with `-cb` appended to the stack name. Examples:

CodeBuild Project Name | Stack Name
--- | ---
demo | demo-cb
demo-unit | demo-unit-cb
demo-web-unit | demo-web-unit-cb

{% include prev_next.md %}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
codebuild-0.6.3 docs/_docs/conventions.md
codebuild-0.6.2 docs/_docs/conventions.md