Skip to content

Commit

Permalink
filter out inline/image functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Jul 25, 2023
1 parent 7234f73 commit 4cfa952
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "samp-cli",
"version": "1.0.25",
"version": "1.0.26",
"description": "CLI tool for extended productivity with AWS Serverless Application Model (SAM)",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions src/commands/local/cdk-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ for (const key of Object.keys(resources)) {
for (const fn of Object.keys(synthedTemplate.Resources)) {
const resource = synthedTemplate.Resources[fn];
if (resource.Type === "AWS::Lambda::Function") {
if (!resource.Properties?.Code?.S3Bucket) continue;
if (!resource.Properties?.Runtime.startsWith("node")) continue;
if (resource.Metadata?.["aws:asset:is-bundled"] === false) continue;
if (resource.Metadata?.['aws:cdk:path'].includes(`/${key}/`) && resource.Metadata?.['aws:cdk:path'].includes('/Resource')) {
//get filename from entry
Expand Down

0 comments on commit 4cfa952

Please sign in to comment.