Skip to content

Commit

Permalink
Merge pull request enghwa#1 from yiangmeng/patch-1
Browse files Browse the repository at this point in the history
Updated to include httpie installation
  • Loading branch information
enghwa authored Jul 9, 2019
2 parents b0701cb + 3eda6ec commit d004d0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ npx cdk@0.36.1 deploy --require-approval never "*"
This is a spring boot CRUD app with RDS (mysql).

```
# install httpie: https://httpie.org/doc/1.0.2
# on Cloud9: sudo pip install --upgrade httpie
# use httpie to POST to ALB endpoint / api/notes , eg:
http POST sprin-sprin-????????????.ap-southeast-1.elb.amazonaws.com/api/notes title="title 2" content="sample content"
Expand Down Expand Up @@ -83,4 +85,4 @@ Trigger custom metric autoscaling:
while true; do aws cloudwatch put-metric-data --metric-name CDKTestingCustomMetric --namespace "CDK/Testing" --value $(( ( RANDOM % 10 ) + 180 )); sleep 60; done
```
Spring boot tasks should autoscale from 2 to 3,4,5...progressively. Watch the task count using Cloudwatch Dashboard. A max of 20 tasks will be launched as long as the custom metric stays above 150.
Spring boot tasks should autoscale from 2 to 3,4,5...progressively. Watch the task count using Cloudwatch Dashboard. A max of 20 tasks will be launched as long as the custom metric stays above 150.

0 comments on commit d004d0a

Please sign in to comment.