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 { Construct, Stack, StackProps } from '@aws-cdk/core';
import { Repository } from '@aws-cdk/aws-codecommit';
import { Pipeline, Artifact } from '@aws-cdk/aws-codepipeline';
import { CodeCommitSourceAction } from '@aws-cdk/aws-codepipeline-actions';
import { CodePipelineCheckParameterAction } from '@cloudcomponents/cdk-codepipeline-check-parameter-action';
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-1.51.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53954fc435a750d617d6bbb182f029b68db80cbd58b8c2cb9096c70c33d9b9b3 |
|
MD5 | 61f632f93e522861e0a908db501143c1 |
|
BLAKE2b-256 | e82b1a555bd5039a77ca4317d6a6f7259f2f7b1c7e4e6eed84f0957154c478d2 |
Close
Hashes for cloudcomponents.cdk_codepipeline_check_parameter_action-1.51.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 755502ad7d612ebbc1b5b56ac07a420235c2b7e19e53a7911ead46715544da6d |
|
MD5 | 26883337629b4304da7480c7e5972df7 |
|
BLAKE2b-256 | f69f1af763450a43d2c1e6e034d51c1b58106090938b5f1fab245d1357cb864b |