I'm working on a migration from an application, previously running on Kubernetes to a setup with S3 and Cloudfront. That application has 4 environments. Those environments were selected via a parameter like:
url/?env=env1
and so on. I want to replicate this scenario in AWS. I could use 4 buckets (or 4 folders within a bucket) and set the Cloudfront to consume the one that is needed. However, that would mean copying the static files 4 times (those files are the same, regardless of the environment). How could I handle this? If I could just have something like a symbolic link, and use 4 buckets, being 3 of them just a pointer to the one with the files, that would also be ok