concept new project in category pulumi

This is an excerpt from Manning's book Pulumi in Action.
Our calls to construct
new Bucket()andnew BucketObject()instances were exactly that — declarations to Pulumi of a desire to have these two resources exist in our infrastructure stack. Importantly, the resources weren’t actually created on AWS in that moment; rather, their details were simply captured by Pulumi, collected, and compared with our existing state. Since that state was empty (as new projects are), Pulumi computed that these resources should be created, so it assembled a list of operations to perform — create a new bucket, configure the bucket as website, create a new file in that bucket — and passed that list to the resource provider, which translated them into API requests to perform on the AWS service itself. When the work of the resource provider was complete and our resources created, Pulumi updated our stack’s state accordingly, saving it back to the Pulumi Service for use on the next run.