## Integration test resources

Certain resources need to be created to make sure the integration test
has backend resources to test against. Follow steps bellow to create them:

1. Create S3 Bucket

   1. Create Bucket with:

   ```console
   aws s3 mb s3://[BucketName] --region [Region]
   ```

   1. Put CORS config to the bucket

   ```console
    aws s3api put-bucket-cors --bucket [BucketName] --cors-configuration '{
   "CORSRules": [
    {
      "AllowedOrigins": ["*"],
      "AllowedMethods": ["GET", "PUT", "POST", "DELETE", "HEAD"],
      "MaxAgeSeconds": 3000,
      "ExposeHeaders": ["ETag", "Date"],
      "AllowedHeaders": ["*"]
    }
   ]
   }'
   ```

   1. supply the bucket name to the test but setting the ENV `AWS_SMOKE_TEST_BUCKET`

1. Run the test with ENV. For example:

   ```console
   AWS_SMOKE_TEST_REGION=[Region] AWS_SMOKE_TEST_BUCKET=[Bucket] yarn test:e2e
   ```