AWS DevOps Pro Certification Blog Post Series: Configuration Management and Infrastructure as Code introduction
This is part of the blog post series: AWS DevOps Pro Certification
What does the exam guide say?
To pass this domain, you'll need to know the following:
- Determine deployment services based on deployment needs
- Determine application and infrastructure deployment models based on business needs
- Apply security concepts in the automation of resource provisioning
- Determine how to implement lifecycle hooks on a deployment
- Apply concepts required to manage systems using AWS configuration management tools and services
What whitepapers are relevant?
According to the AWS Whitepapers for DevOps we should look at the following documents:
- Infrastructure as Code (39 pages)
- Introduction to DevOps on AWS (20 pages)
- Practicing Continuous Integration and Continuous Delivery (32 pages)
- Jenkins on AWS (48 pages)
- Import Windows Server to Amazon EC2 with PowerShell (20 pages)
What services and products covered in this domain?
Useful https://aws.amazon.com/devops/#infrastructureascode
- CloudFormation - This is a templating language that allows you to codify your infrastructure. This is the "Infrastructure as Code" part of this domain.
- OpsWorks - This service provides managed versions of Chef and Puppet. These are both industry standard configuration management systems.
- Elastic Beanstalk - is AWS' Platform as a Service (PaaS) offering.
- AWS Lambda - A service to run microservices / Serverless functions / Buzzword bingo
- AWS ECS - Managed container services. IaC (codified)
- AWS Config - Auditing services of your AWS services.
- AWS Managed Services - Let's AWS manage your AWS!
What about other types of documentation?
If you have the time, by all means, read the User Guides, but they are usually a couple of hundred pages. Alternatively, get familiar with the services using the FAQs:
- CloudFormation
- OpsWorks has multiple FAQs for their various offerings Chef Automate, Puppet Enterprise and Stacks
- Elastic Beanstalk
- AWS Lambda
- AWS ECS
- AWS Config
- AWS Managed Services
You're all expected to know the APIs
- CloudFormation
- OpsWorks has two APIs Stacks and Configuration Management
- Elastic Beanstalk
- AWS Lambda
- AWS ECS
There's no API for AWS Managed Services because this a professional or technical services offering.
Before you panic, you'll start to spot a pattern with the API verbs.
And the CLI commands
- CloudFormation
- OpsWorks has two commands opswork and opswork-cm
- Elastic Beanstalk
- AWS Lambda
- AWS ECS
There's no CLI for AWS Managed Services because there's no corresponding API.
As with the API, there are patterns to the commands.
Configu-what? And Infra as Who?
In the previous domain, we learnt that SDLC specifically the continuous delivery pipeline ensures that our code's integrity is being tested repeatedly and in a consistent manner.
Now we'll see how we can achieve something similar to the underlying infrastructure that powers both our build and hosting of our applications.
Configuration Management is a systematic way of handling changes to servers in such as a way that it maintains integrity over time. The key thing to remember is that often we talking about maintaining lots of servers i.e. more than one. To do this manually introduces risks that steps will be missed and inconsistencies in your environments will occur.
By automating this process for server builds and maintenance we reduce this risk. Whilst you could do this yourself through a series of shell scripts and ssh, it's better to use a dedicated tool, some popular choices are Puppet, Chef, and, Salt Stack and Ansible.
If Configuration Management ensures that our servers are patched to the correct version of operating system and contain the correct software to operate, then Infrastructure as Code ensures that provisioning of drum roll Infrastructure is done as reproducible steps. Tools you can expect to find in this space are Terraform, Azure Resource Manager and of course CloudFormation.
Both configuration management and infrastructure as code are often expressed as templates or a programming language. This makes both ideal candidates for using version control systems like Git to track changes.
Our next blog post will be about CloudFormation
AWS DevOps Pro Certification Blog Post Series
- Intro
- Domain 1: SDLC automation
- Domain 2: Configuration Management and Infrastructure as Code
- Domain 3: Monitoring and Logging
- Domain 4: Policies and Standards Automation
- Domain 5: Incident and Event Response
- Domain 6: High Availability, Fault Tolerance, and Disaster Recovery