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.50.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 180abd883d982865691919d0785153bee683c0d4751d0c8c6ad0871d3b562944 |
|
MD5 | 37499ef6e77bc620960966cbbf82d8ef |
|
BLAKE2b-256 | 90ff25c8140f1c1ddea5597ac37e9ae668c34edd5416604c74b85545ec11faaf |
Close
Hashes for cloudcomponents.cdk_codepipeline_check_parameter_action-1.50.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95c2f6491bf89cc4bbaabdc52e4cd0a9519e18637d17fda53b5618abed8c76ac |
|
MD5 | 39477eae8d0cb959d899921a8a1f3ca4 |
|
BLAKE2b-256 | 86d27a7d633a32906c421458c8044f05b0d56af52b2d0c15884bba385b7f04fe |