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

confighooks #42

Open
Nizari opened this issue Dec 24, 2020 · 7 comments
Open

confighooks #42

Nizari opened this issue Dec 24, 2020 · 7 comments
Labels
enhancement New feature or request

Comments

@Nizari
Copy link

Nizari commented Dec 24, 2020

Hello!

First of thank you for this repo. Some nice extra info!
I was wondering if you also have confighooks? Based on https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-linux-extend.html#platforms-linux-extend.example when you for example update your environment variables, a different set of hooks seems to be triggered. Or am I seeing this wrong?

@Nizari
Copy link
Author

Nizari commented Dec 24, 2020

P.S. I have now a full workflow as well. It differs in a couple of aspects from whats inside here, but if you're interested let me know. I'm glad to help.

@rennokki
Copy link
Owner

Well, as far as I see, this concept is new to me and I didn't know it exists. From what I read, whenever the environment receives a configuration update (switching from Nginx to Apache or vice-versa, changing autoscaling, settings, etc.), it runs some arbitrary code. I can't find a specific use-case for Laravel to run something when the AWS Configuration changes.

I personally don't think Laravel needs to run something when the configuration changes. Prolly is a good idea to refresh nginx or something on configuration update, but I'll look at it.

I'll tag this as enhancement and perhaps it will be some scaffolding in the future.

@rennokki rennokki added the enhancement New feature or request label Dec 24, 2020
@Nizari
Copy link
Author

Nizari commented Jan 13, 2021

Well, as far as I see, this concept is new to me and I didn't know it exists. From what I read, whenever the environment receives a configuration update (switching from Nginx to Apache or vice-versa, changing autoscaling, settings, etc.), it runs some arbitrary code. I can't find a specific use-case for Laravel to run something when the AWS Configuration changes.

I personally don't think Laravel needs to run something when the configuration changes. Prolly is a good idea to refresh nginx or something on configuration update, but I'll look at it.

I'll tag this as enhancement and perhaps it will be some scaffolding in the future.

The only case I can think of is when you change environment variables. While testing I'm 99% sure it only runs the webhooks from the confighooks directory and not from the normaal hooks folder. You can verify this in the eb-engine.log. If that isn't the case for you then it's not really required

@rmsj
Copy link

rmsj commented Feb 19, 2021

@Nizari how did you solve this?

@rmsj
Copy link

rmsj commented Feb 19, 2021

Noobie question, How would you start the environment?
Via EB console, or command line? How?

@Nizari
Copy link
Author

Nizari commented Mar 23, 2021

@rmsj sorry for the late reply. Github notifications are making it hard to see spam from real.
Below a example of the folder structure.

image

You can read all details here https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-linux-extend.html

image

image

@Nizari
Copy link
Author

Nizari commented Mar 23, 2021

Noobie question, How would you start the environment?
Via EB console, or command line? How?

I use the AWS EB CLI. With that you can easily create new environments. It has many cool other funcitons like downloading a entire config file of your EB environment which you can use to quickly create new environments (in case you current EB environment is corrupt for some reason)

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-configuration.html

@github-staff github-staff deleted a comment from p4u1d34n Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants
@rmsj @Nizari @rennokki and others