import { SQSClient } from '@aws-sdk/client-sqs';
import * as AWS from 'aws-sdk';

AWS.config.update({ region: process.env.AWS_REGION });

export const sqs = new AWS.SQS({
  apiVersion: process.env.AWS_API_VERSION,
  accessKeyId: process.env.AWS_ACCESS_KEY_ID,
  secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
});

export const s3 = new AWS.S3();
export const sqsClient = new SQSClient({
  region: process.env.AWS_REGION,
  credentials: {
    accessKeyId: process.env.AWS_ACCESS_KEY_ID,
    secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
  },
});

export const PIM_QUEUE_URL = process.env.AWS_QUEUE_URL;
export const deltaErrorBucketName = process.env.AWS_DELTA_ERROR_BUCKET_NAME;
export const deltaErrorKey = process.env.AWS_DELTA_ERROR_KEY;
export const bulkErrorBucketName = process.env.AWS_BULK_ERROR_BUCKET_NAME;
export const bulkErrorKey = process.env.AWS_BULK_ERROR_KEY;
export const PIM_DELTA_QUEUE_URL = process.env.AWS_DELTA_QUEUE_URL;
export const WILDFONT_S3_BUCKET = process.env.AWS_WILDFONT_S3_BUCKET;
export const WILDFONT_S3_URI = process.env.AWS_WILDFONT_S3_URI;
export const WILDFONT_QUEUE_URL = process.env.AWS_WILDFONT_QUEUE_URL;
