Skip to content

Commit b84caab

Browse files
samuelkarpElad Ben-Israel
authored andcommitted
fix(aws-codepipeline-actions): use SecretValue (#3097)
cdk.SecretValue has replaced cdk.SecretParameter but the README was outdated.
1 parent 590b05c commit b84caab

File tree

1 file changed

+1
-1
lines changed
  • packages/@aws-cdk/aws-codepipeline-actions

1 file changed

+1
-1
lines changed

packages/@aws-cdk/aws-codepipeline-actions/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ To use GitHub as the source of a CodePipeline:
5656

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

0 commit comments

Comments
 (0)