If it’s aws resources, you can run LocalStack and point your local service endpoints to the localhost endpoints and create fake resources. Here’s an example of the approach: https://www.pulumi.com/blog/pulumi-and-localstack/
Note that I haven’t personally tested (or even fully read) that post, but I have used Pulumi with LocalStack before and it’s worked reasonably well