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

Ensure that a created secret is available as a concrete type #17

Merged
merged 3 commits into from
Feb 28, 2020

Conversation

winjer
Copy link
Contributor

@winjer winjer commented Feb 28, 2020

We just return whatever we were given, or what we've got. It is up to the user to know what they provided.

This works, I can tag secrets created by this resource.

@winjer winjer requested a review from plumdog February 28, 2020 16:21
throw new Error("Cannot set both secret and secretName")
} else if(props.secret) {
this.secretArn = props.secret.secretArn;
this.secret = undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

This line feels really weird, but I think I'm persuaded that it makes sense.

If you've passed in the Secret or ISecret, then you don't need it returned back to you, I guess.

@plumdog plumdog changed the title support both sorts of secret Ensure that a created secret is available as a concrete type Feb 28, 2020
@plumdog plumdog merged commit b1c8461 into master Feb 28, 2020
@plumdog plumdog deleted the support-both-secret-types branch February 28, 2020 16:56
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.

2 participants