Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add properties for AWS S3 regions, rather than auto-detecting #295

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

jnatten
Copy link
Contributor

@jnatten jnatten commented Sep 6, 2023

Fjerner auto-oppdagelse av aws region by default og introduserer miljøvariabler for å spesifisere.

Egentlig mest for å fjerne støyete logging dersom auto-oppdagelsen feiler (lokalt og på CI), men gir også mer mening sånn her, siden det ikke er noen automatikk i at applikasjonene må kjøre i samme region som s3-bøttene.
Så tenkte det var ryddig uansett.

Ny oppførsel:

  • Default uten variabel så blir regionen nå eu-west-1
  • Spesifisert variabel som auto gir gammel oppførsel
  • Spesifisert variabel som noe annet blir parset som aws region.

Ikke så mye å teste egentlig.
Kan se at man ikke får den støyete ec2 metadata fetching failed (e.l) feilmeldingen lokalt.

This patch adds a environment variable for the s3 buckets region.
Instead of attempting to find the region with ec2 metadata by default,
we simply default to `eu-west-1`. This makes more sense as there is
really no technical reason why the s3 bucket has to exist in the same
region as the application.

The old behavior is still available by specifying `auto` as the
environment variable, but i believe the default region with no
environment variable specified will be sufficient.
@jnatten jnatten requested a review from a team September 6, 2023 18:57
@jnatten jnatten merged commit 5b4487c into master Sep 8, 2023
12 checks passed
@jnatten jnatten deleted the awss3region branch September 8, 2023 04:38
@gunnarvelle
Copy link
Member

Har du forresten lagt inn miljøvariabler der det trengs?

@jnatten
Copy link
Contributor Author

jnatten commented Sep 18, 2023

Har du forresten lagt inn miljøvariabler der det trengs?

Trenger vi noen ny miljøvariabler da? s3-bøttene kjører vel alle i eu-west-1?
Eller kanskje ikke de "lokale"? I fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants