Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(aws-codepipeline-actions): use SecretValue #3097

Merged
merged 1 commit into from
Jun 27, 2019

Conversation

samuelkarp
Copy link
Contributor

cdk.SecretValue has replaced cdk.SecretParameter but the README was
outdated.


Please read the contribution guidelines and follow the pull-request checklist.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

cdk.SecretValue has replaced cdk.SecretParameter but the README was
outdated.
@samuelkarp samuelkarp requested review from RomainMuller, skinny85 and a team as code owners June 27, 2019 00:39
Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋 hi man!

@eladb eladb merged commit b84caab into aws:master Jun 27, 2019
@samuelkarp samuelkarp deleted the aws-codepipeline-actions-readme branch June 27, 2019 06:35
@@ -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');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, we have a problem here. CodePipeline does not accept SSM Secure parameters (only Plain Text ones), and trying to deploy with it results in an error like:

 ❌  Pipeline failed: ValidationError: SSM Secure reference is not supported in: 
[AWS::CodePipeline::Pipeline/Properties/Stages,AWS::CodePipeline::Webhook/Properties/AuthenticationConfiguration/SecretToken]

We need to change this example to use cdk.SecretValue.secretsManager().

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR: #3113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants