Infrastructure as code (IaC) is the ability to provision and support your computing infrastructure using code instead of manual processes and settings. Any application environment requires many infrastructure components like operating systems, database connections, and storage. Developers have to regularly set up, update, and maintain the infrastructure to develop, test, and deploy applications. \n
Manual infrastructure management is time-consuming and prone to error—especially when you manage applications at scale. Infrastructure as code lets you define your infrastructure's desired state without including all the steps to get to that state. It automates infrastructure management so developers can focus on building and improving applications instead of managing environments. Organizations use infrastructure as code to control costs, reduce risks, and respond with speed to new business opportunities.","sortDate":"2023-08-24","headlineUrl":"https://aws.amazon.com/what-is/iac/?trk=faq_card","id":"faq-hub#what-is-infrastructure-as-code","category":"Developer Tools","primaryCTA":"https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?pg=what_is_header","headline":"What is Infrastructure as Code?"},"metadata":{"tags":[{"id":"GLOBAL#tech-category#devtools","name":"Developer Tools","namespaceId":"GLOBAL#tech-category","description":"Developer Tools","metadata":{}}]}}]},"metadata":{"auth":{},"testAttributes":{}},"context":{"page":{"locale":null,"site":null,"pageUrl":"https://aws.amazon.com/what-is/iac/","targetName":null,"pageSlotId":null,"organizationId":null,"availableLocales":null},"environment":{"stage":"prod","region":"us-east-1"},"sdkVersion":"1.0.115"},"refMap":{"manifest.js":"289765ed09","what-is-header.js":"251923df8a","what-is-header.rtl.css":"ccf4035484","what-is-header.css":"ce47058367","what-is-header.css.js":"004a4704e8","what-is-header.rtl.css.js":"f687973e4f"},"settings":{"templateMappings":{"category":"category","headline":"headline","primaryCTA":"primaryCTA","primaryCTAText":"primaryCTAText","primaryBreadcrumbText":"primaryBreadcrumbText","primaryBreadcrumbURL":"primaryBreadcrumbURL"}}}
Infrastructure as code (IaC) is the ability to provision and support your computing infrastructure using code instead of manual processes and settings. Any application environment requires many infrastructure components like operating systems, database connections, and storage. Developers have to regularly set up, update, and maintain the infrastructure to develop, test, and deploy applications. \n
Manual infrastructure management is time-consuming and prone to error—especially when you manage applications at scale. Infrastructure as code lets you define your infrastructure's desired state without including all the steps to get to that state. It automates infrastructure management so developers can focus on building and improving applications instead of managing environments. Organizations use infrastructure as code to control costs, reduce risks, and respond with speed to new business opportunities.","id":"seo-faq-pairs#what-is-infrastructure-as-code","customSort":"1"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"seo-faq-pairs#faq-collections#infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"
infrastructure-as-code","metadata":{}}]}},{"fields":{"faqQuestion":"What are the benefits of infrastructure as code?","faqAnswer":"
Automation is a key goal across any computing environment. Infrastructure as code (IaC) is used for infrastructure automation to create environments. The most common use of IaC is in software development to build, test, and deploy applications. \n
Traditionally, system administrators used a combination of scripts and manual processes to set up infrastructure environments. The process was complex and time-consuming. Today, you can use IaC to automatically set up your environment within minutes and manage it more efficiently. We give some benefits next. \n
Easily duplicate an environment \nThe same environment can be deployed on a different system in another location using the same IaC, as long as the infrastructure resources are available. \n
For example, imagine a business’s regional branch has IaC to describe the whole branch’s enterprise environment, including servers, networking, and custom configurations. If the business opened another regional branch, they could use IaC to duplicate the exact same environment and quickly make the branch online and operational. IaC removes the repetitive manual steps and checklists that were needed in the past. \n
Reduce configuration errors \nManual configuration is error-prone due to human involvement. People make mistakes. Or there could be configuration drift due to changes in one setup (like a developer environment) that was missed in another setup (like a test environment). \n
In contrast, IaC reduces errors and streamlines error checking. If there are errors due to IaC code updates, you can quickly fix the situation by rolling the codebase to the last known stable configuration files. It’s also possible to roll back environments using previous versions of IaC configuration files for other reasons, such as the deployment of older application versions. \n
Iterate on best-practice environments \nSource control allows software developers to easily build and branch on environments. For instance, imagine that an application grew to include an optional machine learning module. A developer could branch the application’s IaC to initiate, use, and stop a high-performance Amazon Elastic Compute Cloud (Amazon EC2) Trn1 instance. They can set the deployment region as dependent on the region of the application deployment.","id":"seo-faq-pairs#what-are-the-benefits-of-infrastructure-as-code","customSort":"2"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"seo-faq-pairs#faq-collections#infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"infrastructure-as-code","metadata":{}}]}},{"fields":{"faqQuestion":"How does infrastructure as code work?","faqAnswer":"
Much like software code describes an application and how it works, infrastructure as code (IaC) describes a system architecture and how it works. An infrastructure architecture contains resources such as servers, networking, operating systems, and storage. IaC controls virtualized resources by treating configuration files like source code files. You can use it to manage infrastructure in a codified, repeatable way. \n
IaC configuration management tools use different language specifications. You can develop IaC similar to application code in Python or Java. You also write the IaC in an integrated development environment (IDE) with built-in error checking. And you can maintain it under source control with commits at each code change. IaC files are included as part of the wider codebase. \n
Approaches to IaC \nThere are two different approaches to infrastructure as code. \n
Declarative \nDeclarative IaC allows a developer to describe resources and settings that make up the end state of a desired system. The IaC solution then creates this system from the infrastructure code. This makes declarative IaC simple to use, as long as the developer knows which components and settings they need to run their application. \n
Imperative \nImperative IaC allows a developer to describe all the steps to set up the resources and get to the desired system and running state. While it isn’t as simple to write imperative IaC as declarative IaC, the imperative approach becomes necessary in complex infrastructure deployments. This is especially true when the order of events is critical.","id":"seo-faq-pairs#how-does-infrastructure-as-code-work","customSort":"3"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"seo-faq-pairs#faq-collections#infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"
infrastructure-as-code","metadata":{}}]}},{"fields":{"faqQuestion":"What is the role of IaC in DevOps?","faqAnswer":"
DevOps is the process of improving collaboration between software development and IT operations teams. It aims to shorten the application development lifecycle and provide continuous delivery of high-quality software. DevOps teams integrate operations activities with developer tools and code commits, so applications can have extremely rapid release cycles. \n
A key goal of DevOps is to automate infrastructure tasks across the development process. You can integrate infrastructure as code (IaC) into continuous integration and continuous deployment (CI/CD) pipelines. This way, when software goes through its build and release process, the necessary infrastructure changes can be made in tandem. \n
DevOps teams use infrastructure as code for many purposes: \n
\n - Quickly set up complete environments, from development to production \n
- Help ensure consistently reproducible configurations between environments \n
- Integrate seamlessly with cloud providers and efficiently scale infrastructure resources up or down based on demand \n \n
IaC provides a common language for both developers and operations. Changes can be reviewed in a transparent manner, which fosters better collaboration in a DevOps environment. \n
Read more about DevOps »","id":"seo-faq-pairs#what-is-the-role-of-iac-in-devops","customSort":"4"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"infrastructure-as-code","metadata":{}}]}},{"fields":{"faqQuestion":"How can AWS support your IaC requirements?","faqAnswer":"
Amazon Web Services (AWS) offerings are designed with infrastructure as code (IaC) in mind. So, you can safely manage complex cloud architectures by defining and running them in code. \n
Here are AWS services that can help with your IaC needs: \n
\n - With AWS Cloud Development Kit (AWS CDK), developers can define cloud application resources with familiar programming languages and interactive configuration tools, all in the IDE. This bypasses the need to learn new languages and tooling to manipulate cloud resources. \n
- With AWS CloudFormation, developers can build and scale beyond AWS infrastructure. Developers can use IaC to define and manage cloud resources published in the CloudFormation registry, the developer community, and internal libraries. \n
- For fully managed source control of IaC and all your application code, AWS CodeCommit is a secure, scalable service to host your private Git repositories. \n \n
Get started with infrastructure as code on AWS by creating an account today.","id":"seo-faq-pairs#how-can-aws-support-your-iac-requirements","customSort":"5"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"seo-faq-pairs#faq-collections#infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"infrastructure-as-code","metadata":{}}]}}]},"metadata":{"auth":{},"pagination":{"empty":false,"present":true},"testAttributes":{}},"context":{"page":{"locale":null,"site":null,"pageUrl":"https://aws.amazon.com/what-is/iac/","targetName":null,"pageSlotId":null,"organizationId":null,"availableLocales":null},"environment":{"stage":"prod","region":"us-east-1"},"sdkVersion":"1.0.115"},"refMap":{"manifest.js":"3dea65b485","rt-faq.rtl.css":"75bc12ff4b","rt-faq.css":"b00bda11a1","rt-faq.css.js":"0af1d62724","rt-faq.js":"da177bdd5f","rt-faq.rtl.css.js":"a89cd83194"},"settings":{"templateMappings":{"question":"faqQuestion","answer":"faqAnswer"}}}
What is Infrastructure as Code?
Infrastructure as code (IaC) is the ability to provision and support your computing infrastructure using code instead of manual processes and settings. Any application environment requires many infrastructure components like operating systems, database connections, and storage. Developers have to regularly set up, update, and maintain the infrastructure to develop, test, and deploy applications.
Manual infrastructure management is time-consuming and prone to error—especially when you manage applications at scale. Infrastructure as code lets you define your infrastructure's desired state without including all the steps to get to that state. It automates infrastructure management so developers can focus on building and improving applications instead of managing environments. Organizations use infrastructure as code to control costs, reduce risks, and respond with speed to new business opportunities.
What are the benefits of infrastructure as code?
Automation is a key goal across any computing environment. Infrastructure as code (IaC) is used for infrastructure automation to create environments. The most common use of IaC is in software development to build, test, and deploy applications.
Traditionally, system administrators used a combination of scripts and manual processes to set up infrastructure environments. The process was complex and time-consuming. Today, you can use IaC to automatically set up your environment within minutes and manage it more efficiently. We give some benefits next.
Easily duplicate an environment
The same environment can be deployed on a different system in another location using the same IaC, as long as the infrastructure resources are available.
For example, imagine a business’s regional branch has IaC to describe the whole branch’s enterprise environment, including servers, networking, and custom configurations. If the business opened another regional branch, they could use IaC to duplicate the exact same environment and quickly make the branch online and operational. IaC removes the repetitive manual steps and checklists that were needed in the past.
Reduce configuration errors
Manual configuration is error-prone due to human involvement. People make mistakes. Or there could be configuration drift due to changes in one setup (like a developer environment) that was missed in another setup (like a test environment).
In contrast, IaC reduces errors and streamlines error checking. If there are errors due to IaC code updates, you can quickly fix the situation by rolling the codebase to the last known stable configuration files. It’s also possible to roll back environments using previous versions of IaC configuration files for other reasons, such as the deployment of older application versions.
Iterate on best-practice environments
Source control allows software developers to easily build and branch on environments. For instance, imagine that an application grew to include an optional machine learning module. A developer could branch the application’s IaC to initiate, use, and stop a high-performance Amazon Elastic Compute Cloud (Amazon EC2) Trn1 instance. They can set the deployment region as dependent on the region of the application deployment.
How does infrastructure as code work?
Much like software code describes an application and how it works, infrastructure as code (IaC) describes a system architecture and how it works. An infrastructure architecture contains resources such as servers, networking, operating systems, and storage. IaC controls virtualized resources by treating configuration files like source code files. You can use it to manage infrastructure in a codified, repeatable way.
IaC configuration management tools use different language specifications. You can develop IaC similar to application code in Python or Java. You also write the IaC in an integrated development environment (IDE) with built-in error checking. And you can maintain it under source control with commits at each code change. IaC files are included as part of the wider codebase.
Approaches to IaC
There are two different approaches to infrastructure as code.
Declarative
Declarative IaC allows a developer to describe resources and settings that make up the end state of a desired system. The IaC solution then creates this system from the infrastructure code. This makes declarative IaC simple to use, as long as the developer knows which components and settings they need to run their application.
Imperative
Imperative IaC allows a developer to describe all the steps to set up the resources and get to the desired system and running state. While it isn’t as simple to write imperative IaC as declarative IaC, the imperative approach becomes necessary in complex infrastructure deployments. This is especially true when the order of events is critical.
What is the role of IaC in DevOps?
DevOps is the process of improving collaboration between software development and IT operations teams. It aims to shorten the application development lifecycle and provide continuous delivery of high-quality software. DevOps teams integrate operations activities with developer tools and code commits, so applications can have extremely rapid release cycles.
A key goal of DevOps is to automate infrastructure tasks across the development process. You can integrate infrastructure as code (IaC) into continuous integration and continuous deployment (CI/CD) pipelines. This way, when software goes through its build and release process, the necessary infrastructure changes can be made in tandem.
DevOps teams use infrastructure as code for many purposes:
- Quickly set up complete environments, from development to production
- Help ensure consistently reproducible configurations between environments
- Integrate seamlessly with cloud providers and efficiently scale infrastructure resources up or down based on demand
IaC provides a common language for both developers and operations. Changes can be reviewed in a transparent manner, which fosters better collaboration in a DevOps environment.
How can AWS support your IaC requirements?
Amazon Web Services (AWS) offerings are designed with infrastructure as code (IaC) in mind. So, you can safely manage complex cloud architectures by defining and running them in code.
Here are AWS services that can help with your IaC needs:
- With AWS Cloud Development Kit (AWS CDK), developers can define cloud application resources with familiar programming languages and interactive configuration tools, all in the IDE. This bypasses the need to learn new languages and tooling to manipulate cloud resources.
- With AWS CloudFormation, developers can build and scale beyond AWS infrastructure. Developers can use IaC to define and manage cloud resources published in the CloudFormation registry, the developer community, and internal libraries.
- For fully managed source control of IaC and all your application code, AWS CodeCommit is a secure, scalable service to host your private Git repositories.
Get started with infrastructure as code on AWS by creating an account today.
Manual configuration is error-prone due to human involvement. People make mistakes. Or there could be configuration drift due to changes in one setup (like a developer environment) that was missed in another setup (like a test environment). \n
In contrast, IaC reduces errors and streamlines error checking. If there are errors due to IaC code updates, you can quickly fix the situation by rolling the codebase to the last known stable configuration files. It’s also possible to roll back environments using previous versions of IaC configuration files for other reasons, such as the deployment of older application versions. \n
Iterate on best-practice environments \nSource control allows software developers to easily build and branch on environments. For instance, imagine that an application grew to include an optional machine learning module. A developer could branch the application’s IaC to initiate, use, and stop a high-performance Amazon Elastic Compute Cloud (Amazon EC2) Trn1 instance. They can set the deployment region as dependent on the region of the application deployment.","id":"seo-faq-pairs#what-are-the-benefits-of-infrastructure-as-code","customSort":"2"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"seo-faq-pairs#faq-collections#infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"infrastructure-as-code","metadata":{}}]}},{"fields":{"faqQuestion":"How does infrastructure as code work?","faqAnswer":"
Much like software code describes an application and how it works, infrastructure as code (IaC) describes a system architecture and how it works. An infrastructure architecture contains resources such as servers, networking, operating systems, and storage. IaC controls virtualized resources by treating configuration files like source code files. You can use it to manage infrastructure in a codified, repeatable way. \n
IaC configuration management tools use different language specifications. You can develop IaC similar to application code in Python or Java. You also write the IaC in an integrated development environment (IDE) with built-in error checking. And you can maintain it under source control with commits at each code change. IaC files are included as part of the wider codebase. \n
Approaches to IaC \nThere are two different approaches to infrastructure as code. \n
Declarative \nDeclarative IaC allows a developer to describe resources and settings that make up the end state of a desired system. The IaC solution then creates this system from the infrastructure code. This makes declarative IaC simple to use, as long as the developer knows which components and settings they need to run their application. \n
Imperative \nImperative IaC allows a developer to describe all the steps to set up the resources and get to the desired system and running state. While it isn’t as simple to write imperative IaC as declarative IaC, the imperative approach becomes necessary in complex infrastructure deployments. This is especially true when the order of events is critical.","id":"seo-faq-pairs#how-does-infrastructure-as-code-work","customSort":"3"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"seo-faq-pairs#faq-collections#infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"
infrastructure-as-code","metadata":{}}]}},{"fields":{"faqQuestion":"What is the role of IaC in DevOps?","faqAnswer":"
DevOps is the process of improving collaboration between software development and IT operations teams. It aims to shorten the application development lifecycle and provide continuous delivery of high-quality software. DevOps teams integrate operations activities with developer tools and code commits, so applications can have extremely rapid release cycles. \n
A key goal of DevOps is to automate infrastructure tasks across the development process. You can integrate infrastructure as code (IaC) into continuous integration and continuous deployment (CI/CD) pipelines. This way, when software goes through its build and release process, the necessary infrastructure changes can be made in tandem. \n
DevOps teams use infrastructure as code for many purposes: \n
\n - Quickly set up complete environments, from development to production \n
- Help ensure consistently reproducible configurations between environments \n
- Integrate seamlessly with cloud providers and efficiently scale infrastructure resources up or down based on demand \n \n
IaC provides a common language for both developers and operations. Changes can be reviewed in a transparent manner, which fosters better collaboration in a DevOps environment. \n
Read more about DevOps »","id":"seo-faq-pairs#what-is-the-role-of-iac-in-devops","customSort":"4"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"infrastructure-as-code","metadata":{}}]}},{"fields":{"faqQuestion":"How can AWS support your IaC requirements?","faqAnswer":"
Amazon Web Services (AWS) offerings are designed with infrastructure as code (IaC) in mind. So, you can safely manage complex cloud architectures by defining and running them in code. \n
Here are AWS services that can help with your IaC needs: \n
\n - With AWS Cloud Development Kit (AWS CDK), developers can define cloud application resources with familiar programming languages and interactive configuration tools, all in the IDE. This bypasses the need to learn new languages and tooling to manipulate cloud resources. \n
- With AWS CloudFormation, developers can build and scale beyond AWS infrastructure. Developers can use IaC to define and manage cloud resources published in the CloudFormation registry, the developer community, and internal libraries. \n
- For fully managed source control of IaC and all your application code, AWS CodeCommit is a secure, scalable service to host your private Git repositories. \n \n
Get started with infrastructure as code on AWS by creating an account today.","id":"seo-faq-pairs#how-can-aws-support-your-iac-requirements","customSort":"5"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"seo-faq-pairs#faq-collections#infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"infrastructure-as-code","metadata":{}}]}}]},"metadata":{"auth":{},"pagination":{"empty":false,"present":true},"testAttributes":{}},"context":{"page":{"locale":null,"site":null,"pageUrl":"https://aws.amazon.com/what-is/iac/","targetName":null,"pageSlotId":null,"organizationId":null,"availableLocales":null},"environment":{"stage":"prod","region":"us-east-1"},"sdkVersion":"1.0.115"},"refMap":{"manifest.js":"3dea65b485","rt-faq.rtl.css":"75bc12ff4b","rt-faq.css":"b00bda11a1","rt-faq.css.js":"0af1d62724","rt-faq.js":"da177bdd5f","rt-faq.rtl.css.js":"a89cd83194"},"settings":{"templateMappings":{"question":"faqQuestion","answer":"faqAnswer"}}}
What is Infrastructure as Code?
Infrastructure as code (IaC) is the ability to provision and support your computing infrastructure using code instead of manual processes and settings. Any application environment requires many infrastructure components like operating systems, database connections, and storage. Developers have to regularly set up, update, and maintain the infrastructure to develop, test, and deploy applications.
Manual infrastructure management is time-consuming and prone to error—especially when you manage applications at scale. Infrastructure as code lets you define your infrastructure's desired state without including all the steps to get to that state. It automates infrastructure management so developers can focus on building and improving applications instead of managing environments. Organizations use infrastructure as code to control costs, reduce risks, and respond with speed to new business opportunities.
What are the benefits of infrastructure as code?
Automation is a key goal across any computing environment. Infrastructure as code (IaC) is used for infrastructure automation to create environments. The most common use of IaC is in software development to build, test, and deploy applications.
Traditionally, system administrators used a combination of scripts and manual processes to set up infrastructure environments. The process was complex and time-consuming. Today, you can use IaC to automatically set up your environment within minutes and manage it more efficiently. We give some benefits next.
Easily duplicate an environment
The same environment can be deployed on a different system in another location using the same IaC, as long as the infrastructure resources are available.
For example, imagine a business’s regional branch has IaC to describe the whole branch’s enterprise environment, including servers, networking, and custom configurations. If the business opened another regional branch, they could use IaC to duplicate the exact same environment and quickly make the branch online and operational. IaC removes the repetitive manual steps and checklists that were needed in the past.
Reduce configuration errors
Manual configuration is error-prone due to human involvement. People make mistakes. Or there could be configuration drift due to changes in one setup (like a developer environment) that was missed in another setup (like a test environment).
In contrast, IaC reduces errors and streamlines error checking. If there are errors due to IaC code updates, you can quickly fix the situation by rolling the codebase to the last known stable configuration files. It’s also possible to roll back environments using previous versions of IaC configuration files for other reasons, such as the deployment of older application versions.
Iterate on best-practice environments
Source control allows software developers to easily build and branch on environments. For instance, imagine that an application grew to include an optional machine learning module. A developer could branch the application’s IaC to initiate, use, and stop a high-performance Amazon Elastic Compute Cloud (Amazon EC2) Trn1 instance. They can set the deployment region as dependent on the region of the application deployment.
How does infrastructure as code work?
Much like software code describes an application and how it works, infrastructure as code (IaC) describes a system architecture and how it works. An infrastructure architecture contains resources such as servers, networking, operating systems, and storage. IaC controls virtualized resources by treating configuration files like source code files. You can use it to manage infrastructure in a codified, repeatable way.
IaC configuration management tools use different language specifications. You can develop IaC similar to application code in Python or Java. You also write the IaC in an integrated development environment (IDE) with built-in error checking. And you can maintain it under source control with commits at each code change. IaC files are included as part of the wider codebase.
Approaches to IaC
There are two different approaches to infrastructure as code.
Declarative
Declarative IaC allows a developer to describe resources and settings that make up the end state of a desired system. The IaC solution then creates this system from the infrastructure code. This makes declarative IaC simple to use, as long as the developer knows which components and settings they need to run their application.
Imperative
Imperative IaC allows a developer to describe all the steps to set up the resources and get to the desired system and running state. While it isn’t as simple to write imperative IaC as declarative IaC, the imperative approach becomes necessary in complex infrastructure deployments. This is especially true when the order of events is critical.
What is the role of IaC in DevOps?
DevOps is the process of improving collaboration between software development and IT operations teams. It aims to shorten the application development lifecycle and provide continuous delivery of high-quality software. DevOps teams integrate operations activities with developer tools and code commits, so applications can have extremely rapid release cycles.
A key goal of DevOps is to automate infrastructure tasks across the development process. You can integrate infrastructure as code (IaC) into continuous integration and continuous deployment (CI/CD) pipelines. This way, when software goes through its build and release process, the necessary infrastructure changes can be made in tandem.
DevOps teams use infrastructure as code for many purposes:
- Quickly set up complete environments, from development to production
- Help ensure consistently reproducible configurations between environments
- Integrate seamlessly with cloud providers and efficiently scale infrastructure resources up or down based on demand
IaC provides a common language for both developers and operations. Changes can be reviewed in a transparent manner, which fosters better collaboration in a DevOps environment.
How can AWS support your IaC requirements?
Amazon Web Services (AWS) offerings are designed with infrastructure as code (IaC) in mind. So, you can safely manage complex cloud architectures by defining and running them in code.
Here are AWS services that can help with your IaC needs:
- With AWS Cloud Development Kit (AWS CDK), developers can define cloud application resources with familiar programming languages and interactive configuration tools, all in the IDE. This bypasses the need to learn new languages and tooling to manipulate cloud resources.
- With AWS CloudFormation, developers can build and scale beyond AWS infrastructure. Developers can use IaC to define and manage cloud resources published in the CloudFormation registry, the developer community, and internal libraries.
- For fully managed source control of IaC and all your application code, AWS CodeCommit is a secure, scalable service to host your private Git repositories.
Get started with infrastructure as code on AWS by creating an account today.
infrastructure-as-code","metadata":{}}]}},{"fields":{"faqQuestion":"How does infrastructure as code work?","faqAnswer":"
Much like software code describes an application and how it works, infrastructure as code (IaC) describes a system architecture and how it works. An infrastructure architecture contains resources such as servers, networking, operating systems, and storage. IaC controls virtualized resources by treating configuration files like source code files. You can use it to manage infrastructure in a codified, repeatable way. \n
IaC configuration management tools use different language specifications. You can develop IaC similar to application code in Python or Java. You also write the IaC in an integrated development environment (IDE) with built-in error checking. And you can maintain it under source control with commits at each code change. IaC files are included as part of the wider codebase. \n
Approaches to IaC \nThere are two different approaches to infrastructure as code. \n
Declarative \nDeclarative IaC allows a developer to describe resources and settings that make up the end state of a desired system. The IaC solution then creates this system from the infrastructure code. This makes declarative IaC simple to use, as long as the developer knows which components and settings they need to run their application. \n
Imperative \nImperative IaC allows a developer to describe all the steps to set up the resources and get to the desired system and running state. While it isn’t as simple to write imperative IaC as declarative IaC, the imperative approach becomes necessary in complex infrastructure deployments. This is especially true when the order of events is critical.","id":"seo-faq-pairs#how-does-infrastructure-as-code-work","customSort":"3"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"seo-faq-pairs#faq-collections#infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"
infrastructure-as-code","metadata":{}}]}},{"fields":{"faqQuestion":"What is the role of IaC in DevOps?","faqAnswer":"
DevOps is the process of improving collaboration between software development and IT operations teams. It aims to shorten the application development lifecycle and provide continuous delivery of high-quality software. DevOps teams integrate operations activities with developer tools and code commits, so applications can have extremely rapid release cycles. \n
A key goal of DevOps is to automate infrastructure tasks across the development process. You can integrate infrastructure as code (IaC) into continuous integration and continuous deployment (CI/CD) pipelines. This way, when software goes through its build and release process, the necessary infrastructure changes can be made in tandem. \n
DevOps teams use infrastructure as code for many purposes: \n
\n - Quickly set up complete environments, from development to production \n
- Help ensure consistently reproducible configurations between environments \n
- Integrate seamlessly with cloud providers and efficiently scale infrastructure resources up or down based on demand \n \n
IaC provides a common language for both developers and operations. Changes can be reviewed in a transparent manner, which fosters better collaboration in a DevOps environment. \n
Read more about DevOps »","id":"seo-faq-pairs#what-is-the-role-of-iac-in-devops","customSort":"4"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"infrastructure-as-code","metadata":{}}]}},{"fields":{"faqQuestion":"How can AWS support your IaC requirements?","faqAnswer":"
Amazon Web Services (AWS) offerings are designed with infrastructure as code (IaC) in mind. So, you can safely manage complex cloud architectures by defining and running them in code. \n
Here are AWS services that can help with your IaC needs: \n
\n - With AWS Cloud Development Kit (AWS CDK), developers can define cloud application resources with familiar programming languages and interactive configuration tools, all in the IDE. This bypasses the need to learn new languages and tooling to manipulate cloud resources. \n
- With AWS CloudFormation, developers can build and scale beyond AWS infrastructure. Developers can use IaC to define and manage cloud resources published in the CloudFormation registry, the developer community, and internal libraries. \n
- For fully managed source control of IaC and all your application code, AWS CodeCommit is a secure, scalable service to host your private Git repositories. \n \n
Get started with infrastructure as code on AWS by creating an account today.","id":"seo-faq-pairs#how-can-aws-support-your-iac-requirements","customSort":"5"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"seo-faq-pairs#faq-collections#infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"infrastructure-as-code","metadata":{}}]}}]},"metadata":{"auth":{},"pagination":{"empty":false,"present":true},"testAttributes":{}},"context":{"page":{"locale":null,"site":null,"pageUrl":"https://aws.amazon.com/what-is/iac/","targetName":null,"pageSlotId":null,"organizationId":null,"availableLocales":null},"environment":{"stage":"prod","region":"us-east-1"},"sdkVersion":"1.0.115"},"refMap":{"manifest.js":"3dea65b485","rt-faq.rtl.css":"75bc12ff4b","rt-faq.css":"b00bda11a1","rt-faq.css.js":"0af1d62724","rt-faq.js":"da177bdd5f","rt-faq.rtl.css.js":"a89cd83194"},"settings":{"templateMappings":{"question":"faqQuestion","answer":"faqAnswer"}}}
What is Infrastructure as Code?
Infrastructure as code (IaC) is the ability to provision and support your computing infrastructure using code instead of manual processes and settings. Any application environment requires many infrastructure components like operating systems, database connections, and storage. Developers have to regularly set up, update, and maintain the infrastructure to develop, test, and deploy applications.
Manual infrastructure management is time-consuming and prone to error—especially when you manage applications at scale. Infrastructure as code lets you define your infrastructure's desired state without including all the steps to get to that state. It automates infrastructure management so developers can focus on building and improving applications instead of managing environments. Organizations use infrastructure as code to control costs, reduce risks, and respond with speed to new business opportunities.
What are the benefits of infrastructure as code?
Automation is a key goal across any computing environment. Infrastructure as code (IaC) is used for infrastructure automation to create environments. The most common use of IaC is in software development to build, test, and deploy applications.
Traditionally, system administrators used a combination of scripts and manual processes to set up infrastructure environments. The process was complex and time-consuming. Today, you can use IaC to automatically set up your environment within minutes and manage it more efficiently. We give some benefits next.
Easily duplicate an environment
The same environment can be deployed on a different system in another location using the same IaC, as long as the infrastructure resources are available.
For example, imagine a business’s regional branch has IaC to describe the whole branch’s enterprise environment, including servers, networking, and custom configurations. If the business opened another regional branch, they could use IaC to duplicate the exact same environment and quickly make the branch online and operational. IaC removes the repetitive manual steps and checklists that were needed in the past.
Reduce configuration errors
Manual configuration is error-prone due to human involvement. People make mistakes. Or there could be configuration drift due to changes in one setup (like a developer environment) that was missed in another setup (like a test environment).
In contrast, IaC reduces errors and streamlines error checking. If there are errors due to IaC code updates, you can quickly fix the situation by rolling the codebase to the last known stable configuration files. It’s also possible to roll back environments using previous versions of IaC configuration files for other reasons, such as the deployment of older application versions.
Iterate on best-practice environments
Source control allows software developers to easily build and branch on environments. For instance, imagine that an application grew to include an optional machine learning module. A developer could branch the application’s IaC to initiate, use, and stop a high-performance Amazon Elastic Compute Cloud (Amazon EC2) Trn1 instance. They can set the deployment region as dependent on the region of the application deployment.
How does infrastructure as code work?
Much like software code describes an application and how it works, infrastructure as code (IaC) describes a system architecture and how it works. An infrastructure architecture contains resources such as servers, networking, operating systems, and storage. IaC controls virtualized resources by treating configuration files like source code files. You can use it to manage infrastructure in a codified, repeatable way.
IaC configuration management tools use different language specifications. You can develop IaC similar to application code in Python or Java. You also write the IaC in an integrated development environment (IDE) with built-in error checking. And you can maintain it under source control with commits at each code change. IaC files are included as part of the wider codebase.
Approaches to IaC
There are two different approaches to infrastructure as code.
Declarative
Declarative IaC allows a developer to describe resources and settings that make up the end state of a desired system. The IaC solution then creates this system from the infrastructure code. This makes declarative IaC simple to use, as long as the developer knows which components and settings they need to run their application.
Imperative
Imperative IaC allows a developer to describe all the steps to set up the resources and get to the desired system and running state. While it isn’t as simple to write imperative IaC as declarative IaC, the imperative approach becomes necessary in complex infrastructure deployments. This is especially true when the order of events is critical.
What is the role of IaC in DevOps?
DevOps is the process of improving collaboration between software development and IT operations teams. It aims to shorten the application development lifecycle and provide continuous delivery of high-quality software. DevOps teams integrate operations activities with developer tools and code commits, so applications can have extremely rapid release cycles.
A key goal of DevOps is to automate infrastructure tasks across the development process. You can integrate infrastructure as code (IaC) into continuous integration and continuous deployment (CI/CD) pipelines. This way, when software goes through its build and release process, the necessary infrastructure changes can be made in tandem.
DevOps teams use infrastructure as code for many purposes:
- Quickly set up complete environments, from development to production
- Help ensure consistently reproducible configurations between environments
- Integrate seamlessly with cloud providers and efficiently scale infrastructure resources up or down based on demand
IaC provides a common language for both developers and operations. Changes can be reviewed in a transparent manner, which fosters better collaboration in a DevOps environment.
How can AWS support your IaC requirements?
Amazon Web Services (AWS) offerings are designed with infrastructure as code (IaC) in mind. So, you can safely manage complex cloud architectures by defining and running them in code.
Here are AWS services that can help with your IaC needs:
- With AWS Cloud Development Kit (AWS CDK), developers can define cloud application resources with familiar programming languages and interactive configuration tools, all in the IDE. This bypasses the need to learn new languages and tooling to manipulate cloud resources.
- With AWS CloudFormation, developers can build and scale beyond AWS infrastructure. Developers can use IaC to define and manage cloud resources published in the CloudFormation registry, the developer community, and internal libraries.
- For fully managed source control of IaC and all your application code, AWS CodeCommit is a secure, scalable service to host your private Git repositories.
Get started with infrastructure as code on AWS by creating an account today.
Declarative IaC allows a developer to describe resources and settings that make up the end state of a desired system. The IaC solution then creates this system from the infrastructure code. This makes declarative IaC simple to use, as long as the developer knows which components and settings they need to run their application. \n
Imperative \nImperative IaC allows a developer to describe all the steps to set up the resources and get to the desired system and running state. While it isn’t as simple to write imperative IaC as declarative IaC, the imperative approach becomes necessary in complex infrastructure deployments. This is especially true when the order of events is critical.","id":"seo-faq-pairs#how-does-infrastructure-as-code-work","customSort":"3"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"seo-faq-pairs#faq-collections#infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"
infrastructure-as-code","metadata":{}}]}},{"fields":{"faqQuestion":"What is the role of IaC in DevOps?","faqAnswer":"
DevOps is the process of improving collaboration between software development and IT operations teams. It aims to shorten the application development lifecycle and provide continuous delivery of high-quality software. DevOps teams integrate operations activities with developer tools and code commits, so applications can have extremely rapid release cycles. \n
A key goal of DevOps is to automate infrastructure tasks across the development process. You can integrate infrastructure as code (IaC) into continuous integration and continuous deployment (CI/CD) pipelines. This way, when software goes through its build and release process, the necessary infrastructure changes can be made in tandem. \n
DevOps teams use infrastructure as code for many purposes: \n
\n - Quickly set up complete environments, from development to production \n
- Help ensure consistently reproducible configurations between environments \n
- Integrate seamlessly with cloud providers and efficiently scale infrastructure resources up or down based on demand \n \n
IaC provides a common language for both developers and operations. Changes can be reviewed in a transparent manner, which fosters better collaboration in a DevOps environment. \n
Read more about DevOps »","id":"seo-faq-pairs#what-is-the-role-of-iac-in-devops","customSort":"4"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"infrastructure-as-code","metadata":{}}]}},{"fields":{"faqQuestion":"How can AWS support your IaC requirements?","faqAnswer":"
Amazon Web Services (AWS) offerings are designed with infrastructure as code (IaC) in mind. So, you can safely manage complex cloud architectures by defining and running them in code. \n
Here are AWS services that can help with your IaC needs: \n
\n - With AWS Cloud Development Kit (AWS CDK), developers can define cloud application resources with familiar programming languages and interactive configuration tools, all in the IDE. This bypasses the need to learn new languages and tooling to manipulate cloud resources. \n
- With AWS CloudFormation, developers can build and scale beyond AWS infrastructure. Developers can use IaC to define and manage cloud resources published in the CloudFormation registry, the developer community, and internal libraries. \n
- For fully managed source control of IaC and all your application code, AWS CodeCommit is a secure, scalable service to host your private Git repositories. \n \n
Get started with infrastructure as code on AWS by creating an account today.","id":"seo-faq-pairs#how-can-aws-support-your-iac-requirements","customSort":"5"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"seo-faq-pairs#faq-collections#infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":"infrastructure-as-code","metadata":{}}]}}]},"metadata":{"auth":{},"pagination":{"empty":false,"present":true},"testAttributes":{}},"context":{"page":{"locale":null,"site":null,"pageUrl":"https://aws.amazon.com/what-is/iac/","targetName":null,"pageSlotId":null,"organizationId":null,"availableLocales":null},"environment":{"stage":"prod","region":"us-east-1"},"sdkVersion":"1.0.115"},"refMap":{"manifest.js":"3dea65b485","rt-faq.rtl.css":"75bc12ff4b","rt-faq.css":"b00bda11a1","rt-faq.css.js":"0af1d62724","rt-faq.js":"da177bdd5f","rt-faq.rtl.css.js":"a89cd83194"},"settings":{"templateMappings":{"question":"faqQuestion","answer":"faqAnswer"}}}
What is Infrastructure as Code?
Infrastructure as code (IaC) is the ability to provision and support your computing infrastructure using code instead of manual processes and settings. Any application environment requires many infrastructure components like operating systems, database connections, and storage. Developers have to regularly set up, update, and maintain the infrastructure to develop, test, and deploy applications.
Manual infrastructure management is time-consuming and prone to error—especially when you manage applications at scale. Infrastructure as code lets you define your infrastructure's desired state without including all the steps to get to that state. It automates infrastructure management so developers can focus on building and improving applications instead of managing environments. Organizations use infrastructure as code to control costs, reduce risks, and respond with speed to new business opportunities.
What are the benefits of infrastructure as code?
Automation is a key goal across any computing environment. Infrastructure as code (IaC) is used for infrastructure automation to create environments. The most common use of IaC is in software development to build, test, and deploy applications.
Traditionally, system administrators used a combination of scripts and manual processes to set up infrastructure environments. The process was complex and time-consuming. Today, you can use IaC to automatically set up your environment within minutes and manage it more efficiently. We give some benefits next.
Easily duplicate an environment
The same environment can be deployed on a different system in another location using the same IaC, as long as the infrastructure resources are available.
For example, imagine a business’s regional branch has IaC to describe the whole branch’s enterprise environment, including servers, networking, and custom configurations. If the business opened another regional branch, they could use IaC to duplicate the exact same environment and quickly make the branch online and operational. IaC removes the repetitive manual steps and checklists that were needed in the past.
Reduce configuration errors
Manual configuration is error-prone due to human involvement. People make mistakes. Or there could be configuration drift due to changes in one setup (like a developer environment) that was missed in another setup (like a test environment).
In contrast, IaC reduces errors and streamlines error checking. If there are errors due to IaC code updates, you can quickly fix the situation by rolling the codebase to the last known stable configuration files. It’s also possible to roll back environments using previous versions of IaC configuration files for other reasons, such as the deployment of older application versions.
Iterate on best-practice environments
Source control allows software developers to easily build and branch on environments. For instance, imagine that an application grew to include an optional machine learning module. A developer could branch the application’s IaC to initiate, use, and stop a high-performance Amazon Elastic Compute Cloud (Amazon EC2) Trn1 instance. They can set the deployment region as dependent on the region of the application deployment.
How does infrastructure as code work?
Much like software code describes an application and how it works, infrastructure as code (IaC) describes a system architecture and how it works. An infrastructure architecture contains resources such as servers, networking, operating systems, and storage. IaC controls virtualized resources by treating configuration files like source code files. You can use it to manage infrastructure in a codified, repeatable way.
IaC configuration management tools use different language specifications. You can develop IaC similar to application code in Python or Java. You also write the IaC in an integrated development environment (IDE) with built-in error checking. And you can maintain it under source control with commits at each code change. IaC files are included as part of the wider codebase.
Approaches to IaC
There are two different approaches to infrastructure as code.
Declarative
Declarative IaC allows a developer to describe resources and settings that make up the end state of a desired system. The IaC solution then creates this system from the infrastructure code. This makes declarative IaC simple to use, as long as the developer knows which components and settings they need to run their application.
Imperative
Imperative IaC allows a developer to describe all the steps to set up the resources and get to the desired system and running state. While it isn’t as simple to write imperative IaC as declarative IaC, the imperative approach becomes necessary in complex infrastructure deployments. This is especially true when the order of events is critical.
What is the role of IaC in DevOps?
DevOps is the process of improving collaboration between software development and IT operations teams. It aims to shorten the application development lifecycle and provide continuous delivery of high-quality software. DevOps teams integrate operations activities with developer tools and code commits, so applications can have extremely rapid release cycles.
A key goal of DevOps is to automate infrastructure tasks across the development process. You can integrate infrastructure as code (IaC) into continuous integration and continuous deployment (CI/CD) pipelines. This way, when software goes through its build and release process, the necessary infrastructure changes can be made in tandem.
DevOps teams use infrastructure as code for many purposes:
- Quickly set up complete environments, from development to production
- Help ensure consistently reproducible configurations between environments
- Integrate seamlessly with cloud providers and efficiently scale infrastructure resources up or down based on demand
IaC provides a common language for both developers and operations. Changes can be reviewed in a transparent manner, which fosters better collaboration in a DevOps environment.
How can AWS support your IaC requirements?
Amazon Web Services (AWS) offerings are designed with infrastructure as code (IaC) in mind. So, you can safely manage complex cloud architectures by defining and running them in code.
Here are AWS services that can help with your IaC needs:
- With AWS Cloud Development Kit (AWS CDK), developers can define cloud application resources with familiar programming languages and interactive configuration tools, all in the IDE. This bypasses the need to learn new languages and tooling to manipulate cloud resources.
- With AWS CloudFormation, developers can build and scale beyond AWS infrastructure. Developers can use IaC to define and manage cloud resources published in the CloudFormation registry, the developer community, and internal libraries.
- For fully managed source control of IaC and all your application code, AWS CodeCommit is a secure, scalable service to host your private Git repositories.
Get started with infrastructure as code on AWS by creating an account today.
IaC provides a common language for both developers and operations. Changes can be reviewed in a transparent manner, which fosters better collaboration in a DevOps environment. \n
Read more about DevOps »","id":"seo-faq-pairs#what-is-the-role-of-iac-in-devops","customSort":"4"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":" infrastructure-as-code","metadata":{}}]}},{"fields":{"faqQuestion":"How can AWS support your IaC requirements?","faqAnswer":" Amazon Web Services (AWS) offerings are designed with infrastructure as code (IaC) in mind. So, you can safely manage complex cloud architectures by defining and running them in code. \n Here are AWS services that can help with your IaC needs: \n Get started with infrastructure as code on AWS by creating an account today.","id":"seo-faq-pairs#how-can-aws-support-your-iac-requirements","customSort":"5"},"metadata":{"tags":[{"id":"seo-faq-pairs#faq-collections#infrastructure-as-code","name":"seo-faq-pairs#faq-collections#infrastructure-as-code","namespaceId":"seo-faq-pairs#faq-collections","description":" infrastructure-as-code","metadata":{}}]}}]},"metadata":{"auth":{},"pagination":{"empty":false,"present":true},"testAttributes":{}},"context":{"page":{"locale":null,"site":null,"pageUrl":"https://aws.amazon.com/what-is/iac/","targetName":null,"pageSlotId":null,"organizationId":null,"availableLocales":null},"environment":{"stage":"prod","region":"us-east-1"},"sdkVersion":"1.0.115"},"refMap":{"manifest.js":"3dea65b485","rt-faq.rtl.css":"75bc12ff4b","rt-faq.css":"b00bda11a1","rt-faq.css.js":"0af1d62724","rt-faq.js":"da177bdd5f","rt-faq.rtl.css.js":"a89cd83194"},"settings":{"templateMappings":{"question":"faqQuestion","answer":"faqAnswer"}}}
Infrastructure as code (IaC) is the ability to provision and support your computing infrastructure using code instead of manual processes and settings. Any application environment requires many infrastructure components like operating systems, database connections, and storage. Developers have to regularly set up, update, and maintain the infrastructure to develop, test, and deploy applications. Manual infrastructure management is time-consuming and prone to error—especially when you manage applications at scale. Infrastructure as code lets you define your infrastructure's desired state without including all the steps to get to that state. It automates infrastructure management so developers can focus on building and improving applications instead of managing environments. Organizations use infrastructure as code to control costs, reduce risks, and respond with speed to new business opportunities. Automation is a key goal across any computing environment. Infrastructure as code (IaC) is used for infrastructure automation to create environments. The most common use of IaC is in software development to build, test, and deploy applications. Traditionally, system administrators used a combination of scripts and manual processes to set up infrastructure environments. The process was complex and time-consuming. Today, you can use IaC to automatically set up your environment within minutes and manage it more efficiently. We give some benefits next. The same environment can be deployed on a different system in another location using the same IaC, as long as the infrastructure resources are available. For example, imagine a business’s regional branch has IaC to describe the whole branch’s enterprise environment, including servers, networking, and custom configurations. If the business opened another regional branch, they could use IaC to duplicate the exact same environment and quickly make the branch online and operational. IaC removes the repetitive manual steps and checklists that were needed in the past. Manual configuration is error-prone due to human involvement. People make mistakes. Or there could be configuration drift due to changes in one setup (like a developer environment) that was missed in another setup (like a test environment). In contrast, IaC reduces errors and streamlines error checking. If there are errors due to IaC code updates, you can quickly fix the situation by rolling the codebase to the last known stable configuration files. It’s also possible to roll back environments using previous versions of IaC configuration files for other reasons, such as the deployment of older application versions. Source control allows software developers to easily build and branch on environments. For instance, imagine that an application grew to include an optional machine learning module. A developer could branch the application’s IaC to initiate, use, and stop a high-performance Amazon Elastic Compute Cloud (Amazon EC2) Trn1 instance. They can set the deployment region as dependent on the region of the application deployment. Much like software code describes an application and how it works, infrastructure as code (IaC) describes a system architecture and how it works. An infrastructure architecture contains resources such as servers, networking, operating systems, and storage. IaC controls virtualized resources by treating configuration files like source code files. You can use it to manage infrastructure in a codified, repeatable way. IaC configuration management tools use different language specifications. You can develop IaC similar to application code in Python or Java. You also write the IaC in an integrated development environment (IDE) with built-in error checking. And you can maintain it under source control with commits at each code change. IaC files are included as part of the wider codebase. There are two different approaches to infrastructure as code. Declarative IaC allows a developer to describe resources and settings that make up the end state of a desired system. The IaC solution then creates this system from the infrastructure code. This makes declarative IaC simple to use, as long as the developer knows which components and settings they need to run their application. Imperative IaC allows a developer to describe all the steps to set up the resources and get to the desired system and running state. While it isn’t as simple to write imperative IaC as declarative IaC, the imperative approach becomes necessary in complex infrastructure deployments. This is especially true when the order of events is critical. DevOps is the process of improving collaboration between software development and IT operations teams. It aims to shorten the application development lifecycle and provide continuous delivery of high-quality software. DevOps teams integrate operations activities with developer tools and code commits, so applications can have extremely rapid release cycles. A key goal of DevOps is to automate infrastructure tasks across the development process. You can integrate infrastructure as code (IaC) into continuous integration and continuous deployment (CI/CD) pipelines. This way, when software goes through its build and release process, the necessary infrastructure changes can be made in tandem. DevOps teams use infrastructure as code for many purposes: IaC provides a common language for both developers and operations. Changes can be reviewed in a transparent manner, which fosters better collaboration in a DevOps environment. Amazon Web Services (AWS) offerings are designed with infrastructure as code (IaC) in mind. So, you can safely manage complex cloud architectures by defining and running them in code. Here are AWS services that can help with your IaC needs: Get started with infrastructure as code on AWS by creating an account today. \n
What is Infrastructure as Code?
What are the benefits of infrastructure as code?
Easily duplicate an environment
Reduce configuration errors
Iterate on best-practice environments
How does infrastructure as code work?
Approaches to IaC
Declarative
Imperative
What is the role of IaC in DevOps?
How can AWS support your IaC requirements?