Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jkapuscik2/poultry
https://github.com/jkapuscik2/poultry
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jkapuscik2/poultry
- Owner: jkapuscik2
- Created: 2020-01-19T19:42:44.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T11:37:06.000Z (almost 2 years ago)
- Last Synced: 2023-03-01T04:10:47.157Z (over 1 year ago)
- Language: PHP
- Size: 6.95 MB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Poultry
Sample application created with use of Lumen framwork. It is supposed to showcase possibility of automating horizontal scaling using AWS services. CloudFormation configuration is available in `/infrastructure` directory.
More details available in the following articles:
- [introduction](https://medium.com/@j.kapuscik2/autoscale-your-website-in-5-minutes-or-less-3c47f6483b72)
- [CI/CD pipline](https://medium.com/gitconnected/deployment-to-aws-auto-scaling-group-8585178cdc8a)
- [using AWS Fault Injection Symulator experiments](https://j-kapuscik2.medium.com/whats-aws-fault-injection-simulator-54edd298c904)## Deploymant
In order to deploy application to AWS you can use manage.sh script with approperaite paramaters:
| Parameter | Type | Description |
| :--- | :--- | :--- |
| `Command` | `string` | **Required**. Name of a command - create, update, delete, help |
| `StackName` | `string` | **Required**. Name CF stack |
| `KeyName` | `string` | **Required**. Name of ec2 ssh access key |
| `DatabaseName` | `string` | Name of RDS database. Default: "PoultryDB" |
| `DatabaseUsername` | `string` | Name of RDS database admin user. Default: "admin" |
| `DatabaseUserPassword` | `string` | Name CF stack |
| `BucketName` | `string` | Name of S3 bucket. **Warning**. Name needs to be unique in whole AWS |Parameters have to provided in proper order:
```
sh manage.sh create STACK_NAME KEY_NAME DB_NAME DB_USER DB_USER_PASSWORD BUCKET_NAME
```## Setup
Database migration:
`php artisan migrate`Database seeding:
`php artisan db:seed`![Screenshot](screenshot.png?raw=true "Screenshot")