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

fix(dev): fix Localstack yet again #252

Merged
merged 5 commits into from
Sep 2, 2020
Merged

Conversation

mantariksh
Copy link
Contributor

Problem

All Localstack services (image upload, logo upload, storage mode attachments) were not working.

Closes #202

Solution

Initialising Localstack using awslocal

In their latest version, the awslocal CLI switched to using the edge port 4566 for all services by default. However, this edge port is not available to us, since we are using an older version of Localstack. Hence it is now necessary to specify the endpoint URL in init-localstack.sh when creating the S3 buckets.

Specifying mock AWS credentials

All actions involving S3 require the global AWS object to have its credentials configured. Since we removed the mock AWS credentials, those credentials could no longer be set, resulting in all S3 operations failing. The solution was to restore the mock credentials to docker-compose.

What about upgrading Localstack?

Sadly, the issue opened by our esteemed @karrui on the Localstack repo doesn't seem to have been resolved, since I tried upgrading Localstack but ran into the same problem. We seem to be stuck with v0.8.0 for now.

@karrui
Copy link
Contributor

karrui commented Sep 1, 2020

OH MY GOD YOU FIXED IT

@mantariksh
Copy link
Contributor Author

OH MY GOD YOU FIXED IT

This is not the issue that is causing Travis builds to fail though! This is just fixing the dev environment

@mantariksh mantariksh merged commit 4eb8413 into develop Sep 2, 2020
@karrui karrui deleted the fix-localstack-yet-again branch November 18, 2020 07:25
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.

Submitting attachments on Storage Mode does not work in development environment
3 participants