This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"travelExpenseEntries": | |
[ | |
{"currency":"EUR","amount":13.0,"amountHRK":96.59}, | |
{"currency":"EUR","amount":6.7,"amountHRK":49.781} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -X GET "http://DockerawslabLoadBalancer-f94101a56fec8043.elb.eu-central-1.amazonaws.com:8090/travel-expense/travel" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker ecs compose ps --format "table {{.Name}}\t{{.Ports}}" | |
NAME PORTS | |
currency-exchange DockerawslabLoadBalancer-f94101a56fec8043.elb.eu-central-1.amazonaws.com:8080->8080/tcp | |
travel-expense DockerawslabLoadBalancer-f94101a56fec8043.elb.eu-central-1.amazonaws.com:8090->8090/tcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
currency-exchange: | |
image: {amazon_ecr_registry}/docker-aws-lab_currency-exchange | |
ports: | |
- "8080:8080" | |
travel-expense: | |
image: {amazon_ecr_registry}/docker-aws-lab_travel-expense | |
ports: | |
- "8090:8090" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker ecs compose up | |
[+] Running 19/19 | |
⠿ dockerawslab CREATE_COMPLETE 282.0s | |
⠿ Cluster CREATE_COMPLETE 6.9s | |
⠿ TravelexpenseTaskExecutionRole CREATE_COMPLETE 17.0s | |
⠿ CurrencyexchangeTaskExecutionRole CREATE_COMPLETE 16.0s | |
⠿ LogGroup CREATE_COMPLETE 0.0s | |
⠿ DockerawslabLoadBalancer CREATE_COMPLETE 152.0s | |
⠿ CurrencyexchangeTCP8080TargetGroup CREATE_COMPLETE 0.0s | |
⠿ DockerawslabDefaultNetwork CREATE_COMPLETE 7.5s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker build -t docker-aws-lab_travel-expense . | |
$ docker tag docker-aws-lab_travel-expense:latest {amazon_ecr_registry}/docker-aws-lab_travel-expense:latest | |
$ docker push {amazon_ecr_registry}/docker-aws-lab_travel-expense:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tool requires the "new ARN resource ID format". | |
Check https://eu-central-1.console.aws.amazon.com/ecs/home#/settings | |
Learn more: https://aws.amazon.com/blogs/compute/migrating-your-amazon-ecs-deployment-to-the-new-arn-and-resource-id-format-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker build -t docker-aws-lab_currency-exchange . | |
$ docker tag docker-aws-lab_currency-exchange:latest {amazon_ecr_registry}/docker-aws-lab_currency-exchange:latest | |
$ docker push {amazon_ecr_registry}/docker-aws-lab_currency-exchange:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enter context name: aws | |
Use the arrow keys to navigate: ↓ ↑ → ← | |
? Select AWS Profile | |
✔ docker-aws-lab | |
Enter region: eu-central-1 | |
✗ Enter credentials: N |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://qpid.apache.org/components/qpid-jms/index.html#documentation | |
http://msdn.microsoft.com/en-us/library/jj841073.aspx | |
http://msdn.microsoft.com/en-us/library/dn574799.aspx |