question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is your feature request related to a problem? Please describe. There is no way to set up Cloudfront logs or realtime logs

Describe the solution you’d like i would like a way to set up clodufront logs or disable to update cloudfront logs

Describe alternatives you’ve considered moving away from serverless framework.

Additional context something like this to tell to do not change the cloudfront log at deployment.

cloudfront:
      distributionId:  'distributionid'
      logs:
        update: false # true by default
      realtimelogs:
        udpdate: false # true by default  

otherwise give a way to set up logs

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:17 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
Raffaellocommented, Jan 26, 2022

@robertsonsamuel

meanwhile waiting for the merging of the PR and publish of the new version. I have created a workaround using patch-package:

then:

  1. install patch-package and add the postinstall script (“postinstall”: “patch-package”)
  2. imported the components in the project so it can be used from ./node_modules/ folder,
"@sls-next/aws-cloudfront"
"@sls-next/aws-lambda"
"@sls-next/aws-sqs":
"@sls-next/serverless-component":
  1. patch the aws-cloudfront with the generated files from TS, so the file in dist/ (in this case it should be only getDefaultCacheBehavior.js)
  2. yarn install to run the postinstall script of patch-package
  3. Using the latter in serverless.yml as component component: ./node_modules/@sls-next/component

the generated patch need to be done from the compiled JS from this PR #2301

and that it will work.

2reactions
chrisnealcommented, Jan 25, 2022

@Raffaello I’m sure @dphang will pick up the PR sometime soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wood Logs - Amazon.com
Kingcraft 6 Pack Large Birch Logs for Fireplace Unfinished Wood Crafts DIY Home Decorative Burning(Logs:2.4"-3.1" Dia. x 16" Long) · 4.5 out of...
Read more >
Warcraft Logs - Combat Analysis for Warcraft
Welcome to Warcraft Logs, a Web site that provides combat analysis for Blizzard's World of Warcraft MMO. Record your combats, upload them to...
Read more >
Log - Wikipedia
Log ; Logging, cutting down trees for logs ; Firewood, logs used for fuel ; Lumber or timber, converted from wood logs.
Read more >
Logs - Walmart.com
Shop for Logs at Walmart.com. Save money. Live better. ... Pine Mountain Traditional 3-Hour Firelogs, Long Burning Fire Log 6 Pack.
Read more >
LOGS NETWORK
LOGS Blog provides legal and organizational updates in real time. Check for regular posts and new content. READ IT NOW.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found