![image](https://private-user-images.githubusercontent.com/17798810/291579250-2497cd97-a3e0-402d-acbd-26e639302057.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3Mjg5NTgsIm5iZiI6MTcxODcyODY1OCwicGF0aCI6Ii8xNzc5ODgxMC8yOTE1NzkyNTAtMjQ5N2NkOTctYTNlMC00MDJkLWFjYmQtMjZlNjM5MzAyMDU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDE2MzczOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE5ZTRiNWFiMzAxZGU1N2ZlOTFhODIzMGM4NzM3NGE2NzE1YmJmNTI4YjQ5MTdmMzg5Y2Y0YWEyODFkOGE1ZGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.h4CwMCiZNztmRpJnSJtUGMNiKIzETwIeiv3isLx5T7g)
![image](https://private-user-images.githubusercontent.com/17798810/291580788-d029598f-ec40-4310-9d0e-d31dca11d140.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3Mjg5NTgsIm5iZiI6MTcxODcyODY1OCwicGF0aCI6Ii8xNzc5ODgxMC8yOTE1ODA3ODgtZDAyOTU5OGYtZWM0MC00MzEwLTlkMGUtZDMxZGNhMTFkMTQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDE2MzczOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ4YjJiN2IyOTI2Y2Y1ZWEwZGY2N2Y5NmUxNGRmNDVkNjI3YmM5MzU5MGMxOTI3ZTVlM2IwOTZmNDJiYWU0NzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.1LREtzHCOJOgU2_DmEIETn_dBbbjkznpazuCb_0eI0M)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3Mjg5NTgsIm5iZiI6MTcxODcyODY1OCwicGF0aCI6Ii8xNzc5ODgxMC8yOTE1ODE5NzQtZDU1N2RjN2QtNGYzYi00MjNjLTk1ZDgtMzljNDNiOGVhNWRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDE2MzczOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUyYWQ4OTg1MWQzMTQxZWZkMjQwYTYzOTk3NGNhOTk2YzlhOTgxOGExYjkyOTA4NmI1NjcwZjM5MjIzOTU4NjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.orw6lLDzhn3TRCZ32h9NMhip-dYd2OOC232Msk2DKCU)
![image](https://private-user-images.githubusercontent.com/17798810/291583815-d3d22026-d57d-4d63-8a53-236e5c7b7467.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3Mjg5NTgsIm5iZiI6MTcxODcyODY1OCwicGF0aCI6Ii8xNzc5ODgxMC8yOTE1ODM4MTUtZDNkMjIwMjYtZDU3ZC00ZDYzLThhNTMtMjM2ZTVjN2I3NDY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDE2MzczOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUzMzBhOGM3ZTVhYTRmZmY2NDU1ODQwNDkzZDlmMzUyZDNkNmUwNzBmMzJiYTE3MGJhNDY0ZTVhNjkwMDI1NDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ljK-1T8yaMZQC7W9IGbSCTpDG4YJCWGcoH-kZHoBA7Q)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3Mjg5NTgsIm5iZiI6MTcxODcyODY1OCwicGF0aCI6Ii8xNzc5ODgxMC8yOTE1ODU2NzUtY2I2Njc5NmUtY2VjZC00ZmRhLWFlZTgtYWMyMDY4NjllODEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDE2MzczOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc4NjRlNjY4YzVhZDQ2YTgxM2I1ZDcyYTQzMWVlNzU5MWQ1MmQyY2Q0ZDlhNjc3YzQ4ZTllZmUyMzFmOTA0MDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.gfjhT8H57bkRVjZBnft6CKNlQqoGEetmzQxhr2zH0_U)
![image](https://private-user-images.githubusercontent.com/17798810/291586238-7f6de821-a7ad-40f8-9bbe-2bf2d117efef.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3Mjg5NTgsIm5iZiI6MTcxODcyODY1OCwicGF0aCI6Ii8xNzc5ODgxMC8yOTE1ODYyMzgtN2Y2ZGU4MjEtYTdhZC00MGY4LTliYmUtMmJmMmQxMTdlZmVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDE2MzczOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg3N2M3MzZjNmEwOTlhOGUzZmY4NDdjMzllZDJjOWI0MjJmMjc5N2Y2OWEzMWY2NGM5ZmE3ZTQ2Zjc2NTFlYjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.O8e9CPefozAs7zFIQNwDPDIV-HjW0eDJOnjhCYAZ5TM)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3Mjg5NTgsIm5iZiI6MTcxODcyODY1OCwicGF0aCI6Ii8xNzc5ODgxMC8yOTI4MTAzNjAtMjUxNmI2ZmUtNmQ3Yi00NGM3LWE3NGItM2ZkYzM1ZmExMGE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDE2MzczOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJkOGViNDkyMjMyYWIzMzEyYjMyZGFkYjEzNWVkN2I1OWM3NDAyYzQ5MDQ3ZTk4ODE2NWQ2MTcwYzg3YzU4ZWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.XzuG4KR5_aexx6V_s7mM8NCaI5XXkIFYbZa_cs15ooM)