Comments (3)
Only taskdefs have been created with #106 but the deployment is still missing.
from aws-microservices-deploy-options.
Deployment is still missing and is being worked upon
from aws-microservices-deploy-options.
Creating cluster using CloudFormation and deploying the services using AWS CLI is not the recommended pattern. Here is the text for deploying to AWS CLI so far:
. Register task definitions:
.. In `webapp.json`, update the `INTERNAL_ALB_URL_GOES_HERE` to the value of `ALBPrivateCNAME`.
.. Register taskdefs:
aws ecs register-task-definition --cli-input-json file://greeting.json
aws ecs register-task-definition --cli-input-json file://name.json
aws ecs register-task-definition --cli-input-json file://webapp.json
. Create services. Replace the value in the following command with the output from the CloudFormation template, and create the services
.. `greeting` service:
aws ecs create-service \
--cluster <cluster-name> \
--service-name greeting-service \
--task-definition greeting \
--desired-count 1 \
--launch-type "FARGATE" \
--load-balancer "targetGroupArn=<greeting-target-group-ARN>,containerName=greeting,containerPort=8081" \
--health-check-grace-period-seconds 60 \
--network-configuration "awsvpcConfiguration={subnets=[<private-subnet-name1>,<private-subnet-name-2>],securityGroups=<sg-namehere>,assignPublicIp=ENABLED}"
.. `name` service:
aws ecs create-service \
--cluster <cluster-name> \
--service-name name-service \
--task-definition name \
--desired-count 1 \
--launch-type "FARGATE" \
--load-balancer "targetGroupArn=<name-target-group-ARN>,loadBalancerName=<private-ALB-name>,containerName=name,containerPort=8082" \
--health-check-grace-period-seconds 60 \
--network-configuration "awsvpcConfiguration={subnets=[<private-subnet-name1>,<private-subnet-name-2>],securityGroups=<sg-namehere>,assignPublicIp=ENABLED}"
.. `webapp` service:
aws ecs create-service \
--cluster <cluster-name> \
--service-name webapp-service \
--task-definition webapp \
--desired-count 1 \
--launch-type "FARGATE" \
--load-balancer "targetGroupArn=<webapp-target-group-ARN>,containerName=webapp,containerPort=8080" \
--health-check-grace-period-seconds 60 \
--network-configuration "awsvpcConfiguration={subnets=[<private-subnet-name-1>,<private-subnet-name-2>],securityGroups=<sg-namehere>,assignPublicIp=ENABLED}"
Access the service:
curl http://<public-ALB-CNAME>
Closing the issue for now.
from aws-microservices-deploy-options.
Related Issues (20)
- Deploy apps using Draft to k8s
- Deploy to k8s using Skaffold HOT 1
- Refactor Lambda pipeline HOT 1
- Unit testing of Lambda functions
- Incorrect link to this repo in slides HOT 1
- CanaryDeploymentType parameter not used in greeting-sam.yaml SAM template HOT 1
- Update CFN template location for ECS Deployment
- Refactor SAM templates and Lambda pipeline HOT 1
- Health checks are failing Fargate deployment pipeline HOT 5
- Distributed tracing of Kubernetes using Istio
- "hello" greeting service is reported not healthy HOT 5
- Telemetry using Conduit
- Endpoint created using Fargate CFN template returns only partial results
- Webapp endpoint gives {"message":"Missing Authentication Token"} HOT 2
- Update Conduit section to use microservices from this repo
- Ability to use --profile for aws login with ECR and Skaffold
- Permission denied when pushing to ECR using skaffold (ecr credential helper works)
- X-Ray Service map not showing call from one micro service to another AWS EKS Fargate
- Missing cloud formation resources
- How about Copilot CLI in considering a deployment option
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-microservices-deploy-options.