https://pulumi.com logo
#general
Title
# general
b

billions-postman-3362

08/17/2023, 9:02 PM
Hi, I try to create a S3 bucket on OVH, I get this error
Copy code
"error getting S3 Bucket request payment: NotImplemented: The requested resource is not implemented\"
I get it on “refresh” and on “up” The s3 is well created, I can see it on OVH web-interface but the error prevent me for going forward.
b

billowy-army-68599

08/17/2023, 9:28 PM
which provider are you using?
b

billions-postman-3362

08/18/2023, 8:10 AM
I am using aws provider with my OVH credentials
Copy code
const awsProvider = new aws.Provider(OVH_S3_AWS_PROVIDER_NAME, {
        region: 'gra' as aws.Region,
        accessKey: S3Credential.accessKeyId,
        secretKey: S3Credential.secretAccessKey,
        skipCredentialsValidation: true,
        skipRequestingAccountId: true,
        skipRegionValidation: true,
        endpoints: [
            {
                s3: OVH_S3_ENDPOINT,
            },
        ],
    });


    const bucket = new aws.s3.Bucket(
        'bucket',
        {
            bucket: `${projectName}-front-bucket`,
            corsRules: [
                {
                    allowedHeaders: ['Authorization'],
                    allowedMethods: ['GET', 'HEAD'],
                    allowedOrigins: ['*'],
                    exposeHeaders: ['Access-Control-Allow-Origin'],
                },
            ],
            acl: 'public-read',
        },
        { provider: awsProvider },
    );
My S3 is well created so I suppose that my credentials are corrects, but the problem might be in api
b

billowy-army-68599

08/18/2023, 11:57 AM
why are you using the AWS provider to create a bucket in OVH>?
the OVH API is s3 compatible for clients, but you’ll need to use an actual OVH provider to create infrastructure in OVH
b

billions-postman-3362

08/18/2023, 4:31 PM
Mains reasons • Can’t find anything to create a S3 with ovh resource. OVH does not seem to propose it • Every terraform tuto, articles I’ve found use aws provider to manage s3 bucket, even if the bucket is on OVH • it worked, the s3 is well created I’ve used properties design to skip some check
Copy code
skipCredentialsValidation: true,
        skipRequestingAccountId: true,
        skipRegionValidation: true,