![image](https://private-user-images.githubusercontent.com/17798810/291579250-2497cd97-a3e0-402d-acbd-26e639302057.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MzcyNzcsIm5iZiI6MTcyMzgzNjk3NywicGF0aCI6Ii8xNzc5ODgxMC8yOTE1NzkyNTAtMjQ5N2NkOTctYTNlMC00MDJkLWFjYmQtMjZlNjM5MzAyMDU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE5MzYxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgwNDEzZmQwYzI3NjhkYzBhMTJlMjYwNGRiZmM3Y2NkNjdiOTZmZTlkNWRkYjQ4OTZmZWI0NDhkZTI4NDUyNDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.j1K6bPT768otLQPTOz6Tl-HL3C0kEFJRQOfp3k3QPQc)
![image](https://private-user-images.githubusercontent.com/17798810/291580788-d029598f-ec40-4310-9d0e-d31dca11d140.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MzcyNzcsIm5iZiI6MTcyMzgzNjk3NywicGF0aCI6Ii8xNzc5ODgxMC8yOTE1ODA3ODgtZDAyOTU5OGYtZWM0MC00MzEwLTlkMGUtZDMxZGNhMTFkMTQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE5MzYxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRhNjUzMTFjM2U2OTAwYTJlYTUzYjBjYjA3MmExOTkwZjNhMTVkNGJjYTBmNThiZmEzYjA2NmU1ZDNiY2NhOTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.r6fiXsp2QCydK8ohbJXczpOLPPYdahl5Eza7Vb7CZ5o)
1.AWS ECS has two launch types
A) EC2 launch type (Need to plan for the deployment and upgrades)
B) ECS FARGATE (This is s serverless service where the infra is taken care by AWS)
![image](https://private-user-images.githubusercontent.com/17798810/291581974-d557dc7d-4f3b-423c-95d8-39c43b8ea5df.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MzcyNzcsIm5iZiI6MTcyMzgzNjk3NywicGF0aCI6Ii8xNzc5ODgxMC8yOTE1ODE5NzQtZDU1N2RjN2QtNGYzYi00MjNjLTk1ZDgtMzljNDNiOGVhNWRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE5MzYxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNjZDhiNjExYmFjOTEwZTcyODlhY2NlN2VlYzM2ZmE1MDEzODRmMTcyMDg4MmQ4ODUxMmZhNWQyZTQyODQ3OTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HfmmNxzvj2SF_qicyD1iyQqDeZ9yO8ITcCGY8hnJrVs)
![image](https://private-user-images.githubusercontent.com/17798810/291583815-d3d22026-d57d-4d63-8a53-236e5c7b7467.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MzcyNzcsIm5iZiI6MTcyMzgzNjk3NywicGF0aCI6Ii8xNzc5ODgxMC8yOTE1ODM4MTUtZDNkMjIwMjYtZDU3ZC00ZDYzLThhNTMtMjM2ZTVjN2I3NDY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE5MzYxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlhZjc3MWM5MDRhM2Q2YjU0MmQ4MDQxMDUyMDcxNjFjYjk2YzJjYTFmM2ZlYTgzMTI1OTUyYTc1ZDVjZjVlNjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jo0dkcHSWo75d9K3YMO4fOb-umxpvOiYlNjV4x27NRo)
Fargate (ECS-Fargate)
Task Definition file
- Task definition file is used to define settings for each container
![image](https://private-user-images.githubusercontent.com/17798810/291585675-cb66796e-cecd-4fda-aee8-ac206869e810.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MzcyNzcsIm5iZiI6MTcyMzgzNjk3NywicGF0aCI6Ii8xNzc5ODgxMC8yOTE1ODU2NzUtY2I2Njc5NmUtY2VjZC00ZmRhLWFlZTgtYWMyMDY4NjllODEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE5MzYxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIyYWEyMTkwOWQ4N2NjZGUwODZhOThiYzRjZDE3M2ZmNzczNWI4NjMwZjI2YjllOTQ2Mjg4M2Q0ZTJlMzdmMDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.PRH8Q6OH5uDJ0f39i1u6uax_P0NdFelY_oyVpUsbeHo)
![image](https://private-user-images.githubusercontent.com/17798810/291586238-7f6de821-a7ad-40f8-9bbe-2bf2d117efef.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MzcyNzcsIm5iZiI6MTcyMzgzNjk3NywicGF0aCI6Ii8xNzc5ODgxMC8yOTE1ODYyMzgtN2Y2ZGU4MjEtYTdhZC00MGY4LTliYmUtMmJmMmQxMTdlZmVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE5MzYxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM4YWM2M2NmMDJiYzRkZjEwM2U3OTA0ODhiZWIyMjJmOWUyODIzNGFiMTRmOWY4NzI0NWU4MWI0NmNjNzkxYTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6vBpJrNAK_KBBL2bQzeGgTk8L5Q4cRrymD11IjBwpQI)
ECS service automatically takes care of launching the container.
![image](https://private-user-images.githubusercontent.com/17798810/292810360-2516b6fe-6d7b-44c7-a74b-3fdc35fa10a8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MzcyNzcsIm5iZiI6MTcyMzgzNjk3NywicGF0aCI6Ii8xNzc5ODgxMC8yOTI4MTAzNjAtMjUxNmI2ZmUtNmQ3Yi00NGM3LWE3NGItM2ZkYzM1ZmExMGE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE5MzYxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFmNjJkMTgxMzZiYTJlNDdjMGY4YjgwYzYzOGM2MDc3OTA0NDk5YmVjMTEyMDA0YzczNjkwMzRkMGY5MmMzNTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.CE83uzufnbNEXTZ4reMenaE0ABXm7a9Aq3ncJGQQN6w)