@cosmos-building-blocks/pipeline
@cosmos-building-blocks/pipeline › Globals
Index
Classes
- BuildSpecBuilder
- CdkDeployAction
- CdkPipeline
- CodeCommitSourceProvider
- DockerPipeline
- GithubEnterpriseConnection
- GithubEnterpriseConnectionBase
- GithubEnterpriseConnectionImport
- GithubEnterpriseHost
- GithubEnterpriseSourceAction
- GithubEnterpriseSourceProvider
- NodePipeline
- SourceProvider
- StandardPipeline
- WebhookCustomResource
Interfaces
- AddDeployStackStageProps
- Artifact
- CdkDeployActionProps
- CdkPipelineProps
- Commands
- DockerPipelineProps
- GitHubEnterpriseSource
- GitHubEnterpriseSourceVariables
- GithubEnterpriseConnectionProps
- GithubEnterpriseHostProps
- GithubEnterpriseSourceActionProps
- GithubEnterpriseSourceProviderProps
- GithubEnterpriseWebhookProps
- IGithubEnterpriseConnection
- NodePipelineProps
- Report
- SourceProviderProps
- StandardPipelineProps
- WebhookCustomResourceProps
Type aliases
- BuildEnvironmentVariables
- BuildSpecObject
- EnvironmentVariables
- Event
- NullableString
- Phase
- Response
- Runtime
- Version
Variables
- DOCKER_BUILD
- DOCKER_EXPORT_APP_BUILD_VERSION
- DOCKER_PUSH
- ECR_LOGIN
- NPM_BUILD
- NPM_EXPORT_APP_BUILD_VERSION
- NPM_INSTALL
- NPM_LOGIN
- codebuild
- gitHubEnterprise
Functions
- createWebSocket
- deleteWebhook
- filterNullableStrings
- findAllStacksFromCdkApp
- findOutputFromCdkCheckout
- findStackDependencies
- findStacksFromCdkDeployActions
- getEcrLogin
- handler
- parseEnvs
- stackNames
- updateWebSocket
Type aliases
BuildEnvironmentVariables
Ƭ BuildEnvironmentVariables: Record‹string, BuildEnvironmentVariable | string | undefined›
Defined in packages/@cosmos-building-blocks/pipeline/src/utils.ts:3
BuildSpecObject
Ƭ BuildSpecObject: object
Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:34
Type declaration:
artifacts? : Artifact & object
cache? : undefined | object
env(): object
exported-variables? : string[]
git-credential-helper? : undefined | false | true
parameter-store? : Record‹string, string›
secrets-manager? : Record‹string, string›
shell? : undefined | string
variables? : Record‹string, string›
proxy? : undefined | object
reports? : Report[]
run-as? : undefined | string
version: "0.2"
EnvironmentVariables
Ƭ EnvironmentVariables: "variables" | "parameter-store" | "secrets-manager"
Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:6
Event
Ƭ Event: CloudFormationCustomResourceCreateEvent | CloudFormationCustomResourceUpdateEvent | CloudFormationCustomResourceDeleteEvent
Defined in packages/@cosmos-building-blocks/pipeline/src/source/github-enterprise-webhook-handler/index.ts:9
NullableString
Ƭ NullableString: string | null | undefined
Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:12
Phase
Ƭ Phase: "install" | "pre_build" | "build" | "post_build"
Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:8
Response
Ƭ Response: object | undefined
Defined in packages/@cosmos-building-blocks/pipeline/src/source/github-enterprise-webhook-handler/index.ts:14
Runtime
Ƭ Runtime: "android" | "dotnet" | "golang" | "nodejs" | "java" | "php" | "python" | "ruby"
Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:9
Version
Ƭ Version: "latest" | string
Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:10
Variables
Const
DOCKER_BUILD
• DOCKER_BUILD: "make build" = "make build"
Defined in packages/@cosmos-building-blocks/pipeline/src/commands.ts:14
Const
DOCKER_EXPORT_APP_BUILD_VERSION
• DOCKER_EXPORT_APP_BUILD_VERSION: "export APP_BUILD_VERSION=$(make version)" = "export APP_BUILD_VERSION=$(make version)"
Defined in packages/@cosmos-building-blocks/pipeline/src/commands.ts:16
Const
DOCKER_PUSH
• DOCKER_PUSH: "make push" = "make push"
Defined in packages/@cosmos-building-blocks/pipeline/src/commands.ts:15
Const
ECR_LOGIN
• ECR_LOGIN: string = aws ecr get-login-password --region ${Aws.REGION} | docker login --username AWS --password-stdin https://${Aws.ACCOUNT_ID}.dkr.ecr.${Aws.REGION}.amazonaws.com
Defined in packages/@cosmos-building-blocks/pipeline/src/commands.ts:4
Const
NPM_BUILD
• NPM_BUILD: "npm run build" = "npm run build"
Defined in packages/@cosmos-building-blocks/pipeline/src/commands.ts:10
Const
NPM_EXPORT_APP_BUILD_VERSION
• NPM_EXPORT_APP_BUILD_VERSION: "export APP_BUILD_VERSION=v$(node -p "require('./package.json').version")-${CODEBUILD_BUILD_NUMBER}" = "export APP_BUILD_VERSION=v$(node -p "require('./package.json').version")-${CODEBUILD_BUILD_NUMBER}"
Defined in packages/@cosmos-building-blocks/pipeline/src/commands.ts:11
Const
NPM_INSTALL
• NPM_INSTALL: "npm ci" = "npm ci"
Defined in packages/@cosmos-building-blocks/pipeline/src/commands.ts:9
Const
NPM_LOGIN
• NPM_LOGIN: "echo "//registry.npmjs.org/:_authToken=${NPM_KEY}" >> ~/.npmrc" = "echo "//registry.npmjs.org/:_authToken=${NPM_KEY}" >> ~/.npmrc"
Defined in packages/@cosmos-building-blocks/pipeline/src/commands.ts:8
Const
codebuild
• codebuild: CodeBuild‹› = new CodeBuild()
Defined in packages/@cosmos-building-blocks/pipeline/src/source/github-enterprise-webhook-handler/index.ts:23
Const
gitHubEnterprise
• gitHubEnterprise: gitHubEnterprise = Source.gitHubEnterprise
Defined in packages/@cosmos-building-blocks/pipeline/src/source/github-enterprise-webhook.ts:64
Functions
Const
createWebSocket
▸ createWebSocket(props
: GithubEnterpriseWebhookProps): Promise‹Response›
Defined in packages/@cosmos-building-blocks/pipeline/src/source/github-enterprise-webhook-handler/index.ts:38
Parameters:
Name | Type |
---|---|
props | GithubEnterpriseWebhookProps |
Returns: Promise‹Response›
Const
deleteWebhook
▸ deleteWebhook(props
: GithubEnterpriseWebhookProps): Promise‹Response›
Defined in packages/@cosmos-building-blocks/pipeline/src/source/github-enterprise-webhook-handler/index.ts:65
Parameters:
Name | Type |
---|---|
props | GithubEnterpriseWebhookProps |
Returns: Promise‹Response›
Const
filterNullableStrings
▸ filterNullableStrings(commands
: NullableString[]): string[]
Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:154
Parameters:
Name | Type |
---|---|
commands | NullableString[] |
Returns: string[]
Const
findAllStacksFromCdkApp
▸ findAllStacksFromCdkApp(scope
: IConstruct): Stack[]
Defined in packages/@cosmos-building-blocks/pipeline/src/pipeline/cdk-pipeline.ts:377
Parameters:
Name | Type |
---|---|
scope | IConstruct |
Returns: Stack[]
Const
findOutputFromCdkCheckout
▸ findOutputFromCdkCheckout(stages
: IStage[]): Artifact | undefined
Defined in packages/@cosmos-building-blocks/pipeline/src/pipeline/cdk-pipeline.ts:338
Parameters:
Name | Type |
---|---|
stages | IStage[] |
Returns: Artifact | undefined
Const
findStackDependencies
▸ findStackDependencies(stack
: Stack): Stack[]
Defined in packages/@cosmos-building-blocks/pipeline/src/pipeline/cdk-pipeline.ts:385
Parameters:
Name | Type |
---|---|
stack | Stack |
Returns: Stack[]
Const
findStacksFromCdkDeployActions
▸ findStacksFromCdkDeployActions(pipeline
: Pipeline): string[]
Defined in packages/@cosmos-building-blocks/pipeline/src/pipeline/cdk-pipeline.ts:350
Parameters:
Name | Type |
---|---|
pipeline | Pipeline |
Returns: string[]
Const
getEcrLogin
▸ getEcrLogin(registry
: IRepository): string
Defined in packages/@cosmos-building-blocks/pipeline/src/commands.ts:5
Parameters:
Name | Type |
---|---|
registry | IRepository |
Returns: string
handler
▸ handler(event
: Event): Promise‹Response›
Defined in packages/@cosmos-building-blocks/pipeline/src/source/github-enterprise-webhook-handler/index.ts:25
Parameters:
Name | Type |
---|---|
event | Event |
Returns: Promise‹Response›
Const
parseEnvs
▸ parseEnvs(envs
: BuildEnvironmentVariables | undefined): Record‹string, BuildEnvironmentVariable› | undefined
Defined in packages/@cosmos-building-blocks/pipeline/src/utils.ts:5
Parameters:
Name | Type |
---|---|
envs | BuildEnvironmentVariables | undefined |
Returns: Record‹string, BuildEnvironmentVariable› | undefined
Const
stackNames
▸ stackNames(stacks
: Array‹Stack | string›): string[]
Defined in packages/@cosmos-building-blocks/pipeline/src/pipeline/cdk-pipeline.ts:401
Parameters:
Name | Type |
---|---|
stacks | Array‹Stack | string› |
Returns: string[]
Const
updateWebSocket
▸ updateWebSocket(props
: GithubEnterpriseWebhookProps): Promise‹Response›
Defined in packages/@cosmos-building-blocks/pipeline/src/source/github-enterprise-webhook-handler/index.ts:52
Parameters:
Name | Type |
---|---|
props | GithubEnterpriseWebhookProps |
Returns: Promise‹Response›