https://github.com/blanxii/aws-load-balancer-broadcast-command
🗑️💩🗑️ Dirty script to broadcast command using load balancer. Don't plan to use this on your prod environment please.
https://github.com/blanxii/aws-load-balancer-broadcast-command
automation aws aws-codedeploy aws-console dirty-scripts productivity-hacks
Last synced: 16 days ago
JSON representation
🗑️💩🗑️ Dirty script to broadcast command using load balancer. Don't plan to use this on your prod environment please.
- Host: GitHub
- URL: https://github.com/blanxii/aws-load-balancer-broadcast-command
- Owner: blanxii
- Created: 2017-06-28T16:16:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-10T07:44:39.000Z (almost 9 years ago)
- Last Synced: 2025-08-22T02:42:59.519Z (9 months ago)
- Topics: automation, aws, aws-codedeploy, aws-console, dirty-scripts, productivity-hacks
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🗑️💩🗑️ AWS load balancer broadcast command
## Requirements
* [AWS-CLI](https://aws.amazon.com/es/cli/)
* [AWS configuration](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html)
* [JQ](https://stedolan.github.io/jq/download/) (used to parse JSON)
## Configuration
Remember you should give permission to launch.sh file like `chmod 777 launch.sh`
Create `config.cfg` file and add your variables on it.
* `LB_NAME` with your LB.
* `PATH_REMOTE_CODE` with the path you want to navigate
* `SSH_USER` with your user to connect to your instance like `ubuntu`
* `SSH_OPTIONS` if you need to set custom variables like .pem file
* `COMMAND` command you want to execute. For instance `git pull origin master`
You can use this script to broadcast a command to your LB instances.
Keep in mind you can create AMI after that using http://docs.aws.amazon.com/cli/latest/reference/ec2/create-image.html
## License
This project is released under the [WTFPL LICENSE](http://www.wtfpl.net/ "WTFPL LICENSE").