-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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(lambda): SingletonFunction ignores explicit declared dependencies #7997
Conversation
The problem here is that the Function construct underlying the SingletonFunction construct is attached directly to the Stack to enforce the Stack-wide singleton behaviour. This commit adds additional methods `addDependencies()` and `dependOn()` methods to let customers declare these. fixes #7568
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
@@ -65,6 +65,22 @@ export class SingletonFunction extends FunctionBase { | |||
return this.lambdaFunction.addPermission(name, permission); | |||
} | |||
|
|||
/** | |||
* Using node.addDependency() does not work on this method as the underlying lambda function is modeled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does not work on this construct?
…aws#7997) The problem here is that the Function construct underlying the SingletonFunction construct is attached directly to the Stack to enforce the Stack-wide singleton behaviour. This commit adds additional methods `addDependencies()` and `dependOn()` methods to let customers declare these. fixes aws#7568
Commit Message
fix(lambda): SingletonFunction ignores explicit declared dependencies (#7997)
The problem here is that the Function construct underlying the
SingletonFunction construct is attached directly to the Stack to enforce
the Stack-wide singleton behaviour.
This commit adds additional methods
addDependencies()
anddependOn()
methods to let customers declare these.
fixes #7568
End Commit Message
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license