-
Notifications
You must be signed in to change notification settings - Fork 3
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
Close #LGVISIUM-101: Removed deprecated AWS Lambda script and removed the AWS Region from the environement variables #99
Conversation
05f9c47
to
9a6b890
Compare
… the AWS Region from the environement variables
9a6b890
to
cdc127c
Compare
AWS_ENDPOINT=your_endpoint_url | ||
AWS_S3_BUCKET=your_bucket_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you clarify why we need both AWS_ENDPOINT and AWS_S3_BUCKET? Is there any use case where these might refer to different buckets? Or if they always refer to the same bucket, then why can't we always connect using the endpoint URL (which contains the bucket name, if I recall correctly)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Geowerkstatt is using this structure for its environment variables, so I need to comply with it. When we developed the code, we passed all the information into the AWS_ENDPOINT
variable, but Oliver told me that they prefer to do it this way. I think that this indeed leaves you the flexibility to open several S3 buckets from the same AWS account by adapting the bucket name.
If you have a strong opinion about having everything in the AWS_ENDPOINT
then I can ask Oliver whether it is possible for them to adapt their code.
@stijnvermeeren-swisstopo I added the information provided by Oliver from Geowerkstatt to the README. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adapting the README. Overall, I think it makes sense to remove some information regarding the environment variables as this was taking quite some space in the README. The rationale behind having all this information was that even people who are not super experienced with the concept of environment variables can have a quick start. With some of the info removed, I think it is still feasible but requires a bit of research. That is fine for me. I will keep that in mind for future README edits
After working together with Oliver from Geowerkstatt, we were able to find a setup that makes it possible to integrate the data extraction API into the borehole application. This mainly involved figuring out which environment variables AWS needed to connect to the right S3 bucket in the correct region.
As it is also very unlikely that we will deploy the API using AWS Lambda in the near future I removed the code to avoid any sort of confusion.
The README was also edited to only document the possibility of passing the AWS credentials as environment variables to the container, as this is how the container is used in production.