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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46f6c832878910a9ab727715650f60670e461e96ceec146bcf628c992c8c1229 |
|
MD5 | 58a33c112937f6ebdcb710c1cb478a30 |
|
BLAKE2b-256 | a2328abf87637527398730c85d2e28566a6de735ec8496c091a9ea04cbb12c54 |
Close
Hashes for cloudcomponents.cdk_codepipeline_check_parameter_action-2.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da8bc0ac99285156450fad3ec7cd15d93778f2ccb19f982a3765c678e65dda51 |
|
MD5 | 29b7455e3b8b4a1f1043ec2e77962a4d |
|
BLAKE2b-256 | 93f3e405ecacddadf5dfed09f5b9b7a79fb5c17bc807b3943cae2c3f3a6f4c6a |