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

How to support local development environment without an AWS account? #8

Open
mikebronner opened this issue Mar 31, 2021 · 0 comments
Open

Comments

@mikebronner
Copy link
Contributor

mikebronner commented Mar 31, 2021

Hi @georgeboot, do you have any thoughts on how one might develop locally using https://github.com/tlaverdure/Laravel-Echo-Server, while on staging and production (Vapor) using your package?

There obviously needs to be a condition in bootstrap.js, but not quite sure how to best go about it. Also, I believe your composer package needs to be deactivated, so as not to validate security credentials?

I ask because I'm getting the following error when running unit tests:

Aws\Exception\CredentialsException: Error retrieving credentials from the instance profile metadata service. (Client error: `GET http://169.254.169.254/latest/meta-data/iam/security-credentials/` resulted in a `404 Not Found` response:
not found
)

What do you recommend?

My thoughts on this would be to disable the loading of the package in the service provider if the broadcast driver is not set to laravel-echo-api-gateway. I'd be happy to write up a PR if that route makes sense to you.

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

No branches or pull requests

1 participant