Skip to content

Commit

Permalink
fix(aws-codepipeline-actions): use SecretValue (#3097)
Browse files Browse the repository at this point in the history
cdk.SecretValue has replaced cdk.SecretParameter but the README was
outdated.
  • Loading branch information
samuelkarp authored and Elad Ben-Israel committed Jun 27, 2019
1 parent 590b05c commit b84caab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-codepipeline-actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ To use GitHub as the source of a CodePipeline:

```typescript
// Read the secret from ParameterStore
const token = new cdk.SecretParameter(this, 'GitHubToken', { ssmParameter: 'my-github-token' });
const token = cdk.SecretValue.ssmSecure('my-github-token','1');
const sourceOutput = new codepipeline.Artifact();
const sourceAction = new codepipeline_actions.GitHubSourceAction({
actionName: 'GitHub_Source',
Expand Down

0 comments on commit b84caab

Please sign in to comment.