# DevOps CD

DevOps CD contains CD code for devops infrastructure.

## Package Structure

* `./` - The root dir for typescript project that contains the `package.json` and `tsconfig.json`.

* `./common` - Shared helpful functions.

* `./infra`

    It is used to deploy shared AWS resources, so it only contains two stack `staging` and `prod`.

* `./infra-in-base` The CD code used to deploy devops infrastructure in base aws account.

    It is used to deploy shared AWS resources in base account. It contains two stack `dev`, `staging` and `prod`.

    | NOTE: `dev` and `staging` stacks both use `PingCAP` account, so be careful about name conflicts. It is recommended to include the environment in each AWS resource name.

* `./service`

    It is used to deploy AWS resources of all services. It contains two stack `dev`, `staging` and `prod`.

    | NOTE: `dev` and `staging` stacks both use `clinic-dev` account, so be careful about name conflicts. It is recommended to include the environment in each AWS resource name.