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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86b868216825ee98defee0c4319e67bfc29395b8aba86a0fdf7966d243317d07 |
|
MD5 | 7de629641add1dda07d2fb7c78ae9562 |
|
BLAKE2b-256 | f841a01287540f724c7b68a5227e1e1f13bf9c71904f100ce8764e30805367b1 |
Close
Hashes for cloudcomponents.cdk_codepipeline_check_parameter_action-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb0509917e6fb3f08dae807eb9a69f39f5369a2591b410e00917f5bc9ed6befd |
|
MD5 | e0c7f1fcc573323eee9b54b2f48c9ea3 |
|
BLAKE2b-256 | a4f015b7c57e22e2b784d3cf7400c1f4cd7ee2e4cd34871abb1f30c91eb76ae2 |