Skip to content

fix(lambda): SAM CLI asset metadata missing from image Functions#17368

Merged
mergify[bot] merged 14 commits intoaws:masterfrom
torresxb1:image-lambda-metadata
Nov 15, 2021
Merged

fix(lambda): SAM CLI asset metadata missing from image Functions#17368
mergify[bot] merged 14 commits intoaws:masterfrom
torresxb1:image-lambda-metadata

Conversation

@torresxb1
Copy link
Copy Markdown
Contributor

@torresxb1 torresxb1 commented Nov 5, 2021

Adds asset metadata to image-type lambda functions. This will allow SAM CLI to support local invocation of image-type lambdas from CDK-synthed templates.

It follows the same design and builds upon #1433

Fixes #14593

Uses some changes from #17293 to enable asset metadata generation in integration tests

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

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Nov 5, 2021

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Nov 5, 2021

Title does not follow the guidelines of Conventional Commits. Please adjust title before merge.

@torresxb1 torresxb1 changed the title add asset metadata to image-type lambdas fix(Function): add asset metadata to image-type lambdas Nov 5, 2021
@github-actions github-actions bot added the @aws-cdk/aws-lambda Related to AWS Lambda label Nov 5, 2021
@torresxb1 torresxb1 marked this pull request as ready for review November 5, 2021 21:35
* If asset staging is disabled, this will just be the original path.
* If asset staging is enabled it will be the staged path.
*/
public readonly assetPath: string;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do these all really need to be public ? I would be fine if they were private, and your feature would still work.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated them

};
}

public bindToResource(resource: cdk.CfnResource, options: ResourceBindOptions = { }) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Was this function already there?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yes, this function is already defined in Code class

@mergify mergify bot dismissed rix0rrr’s stale review November 12, 2021 18:09

Pull request has been modified.

@torresxb1 torresxb1 requested a review from rix0rrr November 12, 2021 18:10
@rix0rrr rix0rrr changed the title fix(Function): add asset metadata to image-type lambdas fix(lambda): SAM CLI asset metadata missing from container Functions Nov 15, 2021
@rix0rrr rix0rrr changed the title fix(lambda): SAM CLI asset metadata missing from container Functions fix(lambda): SAM CLI asset metadata missing from image Functions Nov 15, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Nov 15, 2021

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).

rix0rrr
rix0rrr previously approved these changes Nov 15, 2021
@mergify mergify bot dismissed rix0rrr’s stale review November 15, 2021 09:16

Pull request has been modified.

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Nov 15, 2021

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-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 531b7d9
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit f52d9bf into aws:master Nov 15, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Nov 15, 2021

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).

@torresxb1 torresxb1 deleted the image-lambda-metadata branch November 15, 2021 19:01
mpvosseller pushed a commit to mpvosseller/aws-cdk that referenced this pull request Nov 16, 2021
…#17368)

Adds asset metadata to image-type lambda functions. This will allow SAM CLI to support local invocation of image-type lambdas from CDK-synthed templates.

It follows the same design and builds upon aws#1433

Fixes aws#14593

Uses some changes from aws#17293 to enable asset metadata generation in integration tests

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
…#17368)

Adds asset metadata to image-type lambda functions. This will allow SAM CLI to support local invocation of image-type lambdas from CDK-synthed templates.

It follows the same design and builds upon aws#1433

Fixes aws#14593

Uses some changes from aws#17293 to enable asset metadata generation in integration tests

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@aws-cdk/aws-lambda Related to AWS Lambda

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(assets, aws-lambda): Add asset metadata for nested stack and image-type Lambda Function

5 participants