sparse-intern-71089
08/17/2023, 9:02 PMbillowy-army-68599
billions-postman-3362
08/18/2023, 8:10 AMconst 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 },
);
billions-postman-3362
08/18/2023, 8:10 AMbillowy-army-68599
billowy-army-68599
billions-postman-3362
08/18/2023, 4:31 PMskipCredentialsValidation: true,
skipRequestingAccountId: true,
skipRegionValidation: true,