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.

[custom-resources] is being re-deployed on every deployment

See original GitHub issue

Not sure if this is actually a bug, or a feature, but when I am using custom resources, notably AwsCustomResource, it seems to redeploy every time I am doing a deploy. Which takes a few minutes each time.

Reproduction Steps

Use AwsCustomResource and supply onCreate with some basic call.

Error Log

No errors.

Environment

  • CLI Version: 1.55.0
  • Framework Version: 1.55.0
  • Node.js Version: v12.18.2
  • OS: macos
  • Language (Version): TS

Other

N/A


This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jogoldcommented, Aug 17, 2020

I think that’s because your have multiple custom resources. Let’s discuss this again when #9515 is released.

0reactions
moltarcommented, Aug 17, 2020

@moltar you can now disable the latest SDK installation, it will speed up things.

Thank you for looking into this.

According to the log it seems to only add a max of one minute. But I’m seeing a tiny change take 6 minutes to deploy. That’s without the upload and so on. Just CF changes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploying applications to Elastic Beanstalk environments
Deployment IDs start at 1 and increment by one with each deployment and instance ... All at once, Downtime, No, Yes, Manual redeploy,...
Read more >
Extending the Kubernetes API with Custom Resources
Deploying a CRD into the cluster causes the Kubernetes API server to begin serving the specified custom resource. When you create a new...
Read more >
How do I force redeployment of my API Gateway using ...
I put a date/timestamp in my description to force a redeploy every time the templates are updated. This is pretty easy for me...
Read more >
Creating a CloudFormation Custom Resource | by Eden Hare
For example, if you need to deploy the same set of resources in multiple regions, ... What are CloudFormation Custom Resources?
Read more >
Top 10 Serverless Deployment Errors (and How to Fix Them)
You don't remember adding any custom resources. The cause: When you're configuring a function, if Trigger on First Deploy (or First/Every) is ...
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