In this chapter, we looked at an example of automating the application and security deployment on the cloud. In the first section, we deployed a PHP application using CloudFormation, which uses AWS OpsWorks in the backend to configure the infrastructure and deploy applications.
Using CloudFormation, we created a complete Infrastructure as Code, which can be further used to modify the infrastructure with manual activity.
In the second section, we looked at an example where we create a pipeline to automate the code deployment process on the autoscaling group and all the API events are being recorded by CloudTrail. CodePipeline also provides the deployment history while the S3 bucket contains all the versions of the application package.
All resource access is managed by IAM roles. For security and monitoring, we saw Amazon Macie, which gives you a dashboard for all the critical events in your AWS infrastructure.
In the next chapter, we will learn about cloud compliance, and why it is necessary...