-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Pipelines: Support creating lambdas where code is in another repository #13600
Comments
I see where you're coming from, but this is not a design goal we're targeting for CDK Pipelines. We are targeting CDK apps using assets. If you want a "just-so" Pipeline that looks and behaves exactly like you want to, I recommend you use the |
|
The former doesn't support lambdas with code in another repository: aws/aws-cdk#13600
The former doesn't support lambdas with code in another repository: aws/aws-cdk#13600
…nt Target (#31435) ### Issue # (if applicable) Closes #31428. ### Reason for this change Kinesis Stream Event Target supports Dead Letter Queue (DLQ). But current [KinesisStream](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events_targets.KinesisStream.html) class in `events-target` does not support it. ### Description of changes Modified [KinesisStreamProps](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events_targets.KinesisStreamProps.html) to extend [TargetBaseProps](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events_targets.TargetBaseProps.html), enabling the configuration of DLQ and retry policy. This change has also been applied to other resources in #13600. ### Description of how you validated changes Add a unit test and an integ test. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Provide a mechanism to construct lambda Code object from a build artifact
Use Case
In the standard CodePipeline world I would use
CfnParametersCode
to pass lambda code and would useCloudFormationCreateUpdateStackAction
withparameterOverrides
to pass lambda code from the build artifact. However, CDK Pipeline has no means to override CFN parameters, therefore this method no longer works. Using Code.fromAsset only works when lambda code is in the same repo, and I don't think there is any other way to create lambda function where code comes from another repository.I also tried using
Code.fromBucket(Bucket.fromBucketName(this, 'ServiceBuildArtifactBucket', serviceBuildArtifact.bucketName), serviceBuildArtifact.objectKey)
but this fails withTemplate Error: Encountered unsupported function: Fn::GetArtifactAtt
.Proposed Solution
Either allow overriding CFN parameters in CDK Pipeline, or provide a new mechanism to create Code object (ex:
Code.fromArtifact
) with a solution aroundFn::GetArtifactAtt
issue.Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: