DEV Community

Cover image for Deploying Your App with AWS CloudFormation and CodePipeline - A Comprehensive Guide

Deploying Your App with AWS CloudFormation and CodePipeline - A Comprehensive Guide

Bachar Hakam on January 03, 2024

I wrote a blog post earlier on how to create and deploy a containerized API-driven Python Streamlit web app using CICD on AWS. Although the steps I...
Collapse
 
shotlom profile image
Sholto Maud
  1. No DevSecOps?
  2. No CDK?
  3. What does the patching of EC2s?
  4. What is user-data for?
  5. Is there no CICD avvount?
Collapse
 
astroveny profile image
Bachar Hakam AWS Community Builders

It is possible to use either CDK or CFN, or even both in combination, depending on personal preference or limitations of the functions. Although additional security measures can be added to each stack and security scanning can be integrated into the CICD pipeline, the main focus here was on CloudFormation.
Launch Template always uses the latest Amazon AMI, so no EC2 patching was necessary. The "user-data" was used to install dependencies, and then pull and run the application container.

Collapse
 
shotlom profile image
Sholto Maud

shouldn't the install of dependencies either be in the AMI, or through CodeDeploy?