cds-snc / notification-planning-core

Project planning for GC Notify Core Team
0 stars 0 forks source link

Automatically detect MIME Type of objects uploaded to assets with Terraform #250

Open ben851 opened 6 months ago

ben851 commented 6 months ago

Description

As a developer of Notify, I would like to be able to automatically sync the asset folder of admin using Terraform, and have multiple different file types so that the system deployment is fully automated.

WHY are we building?

Currently we hard-code the mime (content) type of all assets to svg images. This is because terraform doesn't seem to look at the content type of a file when uploading to an S3 bucket

WHAT are we building?

Investigate a way to have terraform read the content type of a file and set it appropriately when uploading to S3

VALUE created by our solution

Better user experience, increased stability

Acceptance Criteria

QA Steps