How to Deploy Applications using GitHub Actions to AWS ECS. #aws #ecs #containers #amazonwebservices
Steps:
1. Create a Repository in GitHub.
2. create a .github/workflows directory in the Repository and create two files as below.
1. Create aws.yaml and provide details of workflow.
2. Create task-defination.json file.
-- This can be updated once we have created the task Definition.
-- aws ecs describe-task-definition \
--task-definition demo-deploy \
--query taskDefinition "Angle Bracket" task-definition.json
3. Review the role created to access the AWS account from Github.
4. Create a Repository in aws to store Images. --
5. Create Task Definition.
6. Create Cluster and service. -- Before this, we will generate the task-definition.json -- 2.2
7. Create dockerfile for the sample app -- we have this file created already. We will create the same file in the GitHub repository.
8. Update the dockerfile in the GitHub repository.
9. Check if the sample app is deployed on the ECS or not? -- It's there
10. Let's make some changes and check if it works.
[ Ссылка ]
#cloudarchitect
#amazonwebservices
#HowtoDeployApplicationsusingGitHubActionstoAWSECS.
Ещё видео!