DEV Community

Dimitrios Desyllas
Dimitrios Desyllas

Posted on

How I can emulate a network failure on aws codebuild?

Hello I need to emulate a network failure on my pipeline so I can check my caching solution I implement:

https://devops.stackexchange.com/q/11410/4396

Do you know how?

Top comments (2)

Collapse
 
akshaymahajan profile image
AKSHAY MAHAJAN

What's the relation between cache and pulling off the internet plug ?
Even if CodeBuild has access to internet, if cache was created the first time and is still not expired, you should verify if dependencies are coming from cache.

You can check CodeBuild logs and see if the overall duration was reduced.
In my understanding, the UPLOAD_ARTIFACTS duration should reduce, although DOWNLOAD_SOURCE duration may or may not decrease.

Additionally, you can verify if cache is getting created during build by going to S3 and manually deleting the old cache archive.

Collapse
 
pcmagas profile image
Dimitrios Desyllas

I want to test that if I pull the plug the build would also run with cached content.

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay