Turn your Instant Pot on to the sauté program. Heat the olive oil on medium heat and sauté the bacon until crispy, just a couple of minutes. Once the bacon is crispy, remove it from the pan and set it aside.
Add the chopped onion, carrots, and celery (if using) and sauté until the vegetables start to cook down and caramelize about 3 minutes. Add the potato and garlic, and sauté for an additional 3 to 5 minutes until all the vegetables achieve a golden brown color.
Introduce the beans, diced tomatoes (or tomato passata), and chicken stock to the Instant Pot. Place a lid on the pan, turn, and pressure cook on high pressure for 5 minutes, followed by a natural release for 5 minutes.
Quick Release the pressure; all of your vegetables should be cooked at this point. Season with salt and pepper to taste and add the pasta. Cook the pasta according to package instructions. When the pasta is about 2 minutes away from being done, add the spinach and basil. Cook just until the spinach is wilted.
Add the bacon back to your pot and stir. Serve with good crusty Italian bread.