Cdk component that checks if system parameters are set correctly
Project description
@cloudcomponents/cdk-codepipeline-check-parameter-action
Cdk component that checks if system parameters are set correctly
Install
TypeScript/JavaScript:
npm i @cloudcomponents/cdk-codepipeline-check-parameter-action
Python:
pip install cloudcomponents.cdk-codepipeline-check-parameter-action
How to use
import { CodePipelineCheckParameterAction } from '@cloudcomponents/cdk-codepipeline-check-parameter-action';
import { Stack, StackProps } from 'aws-cdk-lib';
import { Repository } from 'aws-cdk-lib/aws-codecommit';
import { Pipeline, Artifact } from 'aws-cdk-lib/aws-codepipeline';
import { CodeCommitSourceAction } from 'aws-cdk-lib/aws-codepipeline-actions';
import { Construct } from 'constructs';
export class CodePipelineCheckParameterActionStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
const repository = new Repository(this, 'Repository', {
repositoryName: 'MyRepositoryName',
});
const sourceArtifact = new Artifact();
const sourceAction = new CodeCommitSourceAction({
actionName: 'CodeCommit',
repository,
output: sourceArtifact,
branch: 'master',
});
const checkAction = new CodePipelineCheckParameterAction({
actionName: 'Check',
parameterName: '/test',
regExp: /^The.*Spain$/,
logParameter: true,
});
new Pipeline(this, 'MyPipeline', {
pipelineName: 'MyPipeline',
stages: [
{
stageName: 'Source',
actions: [sourceAction],
},
{
stageName: 'Check',
actions: [checkAction],
},
],
});
}
}
API Reference
See API.md.
Example
See more complete examples.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cloudcomponents.cdk-codepipeline-check-parameter-action-2.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcda9c8cd40c9a23d061d2c6baebabe333ac68253194b601b3017bdb4dd4d0e8 |
|
MD5 | 49190d77e9c595213744a523196baad1 |
|
BLAKE2b-256 | de60e1865e5f63c9c4ae56370468f5a6d9d79c0e2ef06ec2531cca0abe50341e |
Close
Hashes for cloudcomponents.cdk_codepipeline_check_parameter_action-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e41bbe485618461b39bb9f5a6f539c7f994bd210f00052e1711c77bcb16a0eef |
|
MD5 | 3763bcaf62604518dc200dc2e74c47ef |
|
BLAKE2b-256 | 5cf925f94c6e6ef540a32572dafbfab0c92e631d1836b9629887ee744c393ab6 |