dazzling-toddler-85798
04/16/2025, 8:29 AMaws:s3:BucketV2 (corridor.dev.BucketV2):
error: sdk-v2/provider2.go:509: sdk.helper_schema: creating S3 Bucket (corridor.dev.backend): operation error S3: CreateBucket, https response error StatusCode: 403, RequestID: 703D7JGSHBVTGASK, HostID: g871I2Ez8X1AnVPnZCvshAMmoUsaTTPwtKLdT+KPT8vIruUokT9FLITxEoSwsoaDli+uo0b1H6E=, api error NotSignedUp: Your account is not signed up for the S3 service. You must sign up before you can use S3.: provider=aws@6.77.0
error: 1 error occurred:
* creating S3 Bucket (corridor.dev.backend): operation error S3: CreateBucket, https response error StatusCode: 403, RequestID: 703D7JGSHBVTGASK, HostID: g871I2Ez8X1AnVPnZCvshAMmoUsaTTPwtKLdT+KPT8vIruUokT9FLITxEoSwsoaDli+uo0b1H6E=, api error NotSignedUp: Your account is not signed up for the S3 service. You must sign up before you can use S3.
It subsequently succeeds on the second attempt of running pulumi up
.
Is there something I should be doing to check account creation and roles are ready before continuing on wit the Provider and s3 setup?
Currently my code for the above process looks something like
const org = OrganizationalUnit(...)
const account = new aws.organizations.Account(
"Account",
{
parentId: org.id,
email: "<mailto:an.email@domain.com|an.email@domain.com>",
roleName: "OrganizationalAccountAccessRole",
closeOnDeletion: true,
},
{ parent: org },
);
const provider = new aws.Provider(
"Provider",
{
allowedAccountIds: [account.id],
assumeRole: {
roleArn: pulumi.interpolate`arn:aws:iam::${account.id}:role/${account.roleName}`,
},
},
{ parent: account },
);
const bucket = new aws.s3.BucketV2(
"Bucket",
{ bucket: "backend" },
{ parent: account },
);
echoing-dinner-19531
04/16/2025, 8:36 AMquick-house-41860
04/16/2025, 9:09 AMdazzling-toddler-85798
04/16/2025, 9:15 AMgreat-sunset-355
04/17/2025, 9:31 AMaws-native
because it is built on top of cloudformation and way slower than traditional API.
Another option you can try is to introduce a delay
https://www.pulumi.com/registry/packages/time/