This message was deleted.
# getting-started
s
This message was deleted.
r
You'll need to create a provider with the correct region and use that explicit provider in the s3 bucket call. https://www.pulumi.com/registry/packages/aws/api-docs/provider/
Like this:
Copy code
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

// Create an AWS provider for the us-east-1 region
const eastProvider = new aws.Provider("eastProvider", {
    region: "us-east-1",
});

// Create an S3 bucket in the us-east-1 region using the custom provider
const s3Bucket = new aws.s3.Bucket("myS3Bucket", {}, { provider: eastProvider });
❤️ 1
m
Thanks Komal! Let me try this out