Hi, I try to create a S3 bucket on OVH, I get this...
# general
b
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
which provider are you using?
b
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
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
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,