StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. DevOps
  3. Build Automation
  4. Infrastructure Build Tools
  5. AWS CloudFormation vs Docker

AWS CloudFormation vs Docker

OverviewDecisionsComparisonAlternatives

Overview

AWS CloudFormation
AWS CloudFormation
Stacks1.6K
Followers1.3K
Votes88
Docker
Docker
Stacks194.2K
Followers143.8K
Votes3.9K

AWS CloudFormation vs Docker: What are the differences?

Introduction

This markdown code provides a comparison between AWS CloudFormation and Docker, highlighting the key differences between the two technologies.

  1. 1. Scalability and Infrastructure as Code: AWS CloudFormation is a service that allows you to create and manage a collection of AWS resources. It provides a way to define infrastructure as code, making it easier to scale and replicate your applications. Docker, on the other hand, is a containerization platform that allows you to package your applications along with their dependencies into containers. While Docker provides scalability through the use of containers, it does not offer infrastructure as code capabilities like CloudFormation.

  2. 2. Portability and Platform Independence: Docker provides platform independence, allowing developers to build, package, and ship applications across different environments. It ensures that the application runs consistently regardless of the underlying infrastructure. AWS CloudFormation, on the other hand, is specific to the AWS ecosystem and relies on AWS resources. While CloudFormation provides portability within the AWS environment, it may not be as portable as Docker across different platforms and environments.

  3. 3. Orchestration and Management: AWS CloudFormation provides orchestration capabilities, allowing you to define the relationships and dependencies between resources. It enables the management and provisioning of complex applications and infrastructure. Docker, on the other hand, primarily focuses on containerization and packaging of applications. While Docker can be used in combination with other tools like Docker Compose and Kubernetes for orchestration, it does not provide built-in orchestration capabilities like CloudFormation.

  4. 4. Serverless Computing: AWS CloudFormation supports serverless computing through AWS Lambda functions. It allows you to define serverless resources and configurations using CloudFormation templates. Docker, however, is not specifically designed for serverless computing. While it is possible to run containerized applications within serverless platforms, such as AWS Fargate, it requires additional integration and configuration.

  5. 5. Deployment and CI/CD: AWS CloudFormation provides built-in support for continuous integration and continuous deployment (CI/CD) pipelines. It integrates well with tools like AWS CodePipeline and AWS CodeCommit, allowing you to automate the deployment of your infrastructure and application updates. Docker, on the other hand, is primarily focused on the packaging and distribution of applications. While Docker can be integrated with CI/CD pipelines using tools like Jenkins or GitLab, it does not have built-in CI/CD capabilities like CloudFormation.

  6. 6. Resource Management and Abstraction: AWS CloudFormation abstracts the underlying infrastructure and provides a higher level of resource management. It allows you to define and manage resources using templates, making it easier to provision and manage complex infrastructure. Docker, on the other hand, provides a containerization platform that allows you to package applications and their dependencies. While Docker provides resource isolation and management at the container level, it does not offer the same level of resource management and abstraction as CloudFormation.

In summary, AWS CloudFormation is a service that provides infrastructure as code capabilities, allowing you to define and manage AWS resources. It offers orchestration, scalability, and built-in CI/CD support. Docker, on the other hand, is a containerization platform that focuses on packaging applications and ensuring platform independence. While Docker provides scalability and portability, it does not offer the same level of resource management and orchestration capabilities as CloudFormation.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Advice on AWS CloudFormation, Docker

Timothy
Timothy

SRE

Mar 20, 2020

Decided

I personally am not a huge fan of vendor lock in for multiple reasons:

  • I've seen cost saving moves to the cloud end up costing a fortune and trapping companies due to over utilization of cloud specific features.
  • I've seen S3 failures nearly take down half the internet.
  • I've seen companies get stuck in the cloud because they aren't built cloud agnostic.

I choose to use terraform for my cloud provisioning for these reasons:

  • It's cloud agnostic so I can use it no matter where I am.
  • It isn't difficult to use and uses a relatively easy to read language.
  • It tests infrastructure before running it, and enables me to see and keep changes up to date.
  • It runs from the same CLI I do most of my CM work from.
385k views385k
Comments
Daniel
Daniel

May 4, 2020

Decided

Because Pulumi uses real programming languages, you can actually write abstractions for your infrastructure code, which is incredibly empowering. You still 'describe' your desired state, but by having a programming language at your fingers, you can factor out patterns, and package it up for easier consumption.

426k views426k
Comments
Sergey
Sergey

Contractor at Adaptive

Apr 17, 2020

Decided

Overview

We use Terraform to manage AWS cloud environment for the project. It is pretty complex, largely static, security-focused, and constantly evolving.

Terraform provides descriptive (declarative) way of defining the target configuration, where it can work out the dependencies between configuration elements and apply differences without re-provisioning the entire cloud stack.

Advantages

Terraform is vendor-neutral in a way that it is using a common configuration language (HCL) with plugins (providers) for multiple cloud and service providers.

Terraform keeps track of the previous state of the deployment and applies incremental changes, resulting in faster deployment times.

Terraform allows us to share reusable modules between projects. We have built an impressive library of modules internally, which makes it very easy to assemble a new project from pre-fabricated building blocks.

Disadvantages

Software is imperfect, and Terraform is no exception. Occasionally we hit annoying bugs that we have to work around. The interaction with any underlying APIs is encapsulated inside 3rd party Terraform providers, and any bug fixes or new features require a provider release. Some providers have very poor coverage of the underlying APIs.

Terraform is not great for managing highly dynamic parts of cloud environments. That part is better delegated to other tools or scripts.

Terraform state may go out of sync with the target environment or with the source configuration, which often results in painful reconciliation.

426k views426k
Comments

Detailed Comparison

AWS CloudFormation
AWS CloudFormation
Docker
Docker

You can use AWS CloudFormation’s sample templates or create your own templates to describe the AWS resources, and any associated dependencies or runtime parameters, required to run your application. You don’t need to figure out the order in which AWS services need to be provisioned or the subtleties of how to make those dependencies work.

The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere

AWS CloudFormation comes with the following ready-to-run sample templates: WordPress (blog),Tracks (project tracking), Gollum (wiki used by GitHub), Drupal (content management), Joomla (content management), Insoshi (social apps), Redmine (project mgmt);No Need to Reinvent the Wheel – A template can be used repeatedly to create identical copies of the same stack (or to use as a foundation to start a new stack);Transparent and Open – Templates are simple JSON formatted text files that can be placed under your normal source control mechanisms, stored in private or public locations such as Amazon S3 and exchanged via email.;Declarative and Flexible – To create the infrastructure you want, you enumerate what AWS resources, configuration values and interconnections you need in a template and then let AWS CloudFormation do the rest with a few simple clicks in the AWS Management Console, via the command line tools or by calling the APIs.
Integrated developer tools; open, portable images; shareable, reusable apps; framework-aware builds; standardized templates; multi-environment support; remote registry management; simple setup for Docker and Kubernetes; certified Kubernetes; application templates; enterprise controls; secure software supply chain; industry-leading container runtime; image scanning; access controls; image signing; caching and mirroring; image lifecycle; policy-based image promotion
Statistics
Stacks
1.6K
Stacks
194.2K
Followers
1.3K
Followers
143.8K
Votes
88
Votes
3.9K
Pros & Cons
Pros
  • 43
    Automates infrastructure deployments
  • 21
    Declarative infrastructure and deployment
  • 13
    No more clicking around
  • 3
    Infrastructure as code
  • 3
    Atomic
Cons
  • 4
    Brittle
  • 2
    No RBAC and policies in templates
Pros
  • 823
    Rapid integration and build up
  • 692
    Isolation
  • 521
    Open source
  • 505
    Testa­bil­i­ty and re­pro­ducibil­i­ty
  • 460
    Lightweight
Cons
  • 8
    New versions == broken features
  • 6
    Documentation not always in sync
  • 6
    Unreliable networking
  • 4
    Moves quickly
  • 3
    Not Secure
Integrations
No integrations available
Java
Java
Docker Compose
Docker Compose
VirtualBox
VirtualBox
Linux
Linux
Amazon EC2 Container Service
Amazon EC2 Container Service
Docker Swarm
Docker Swarm
boot2docker
boot2docker
Kubernetes
Kubernetes
Docker Machine
Docker Machine
Vagrant
Vagrant

What are some alternatives to AWS CloudFormation, Docker?

LXD

LXD

LXD isn't a rewrite of LXC, in fact it's building on top of LXC to provide a new, better user experience. Under the hood, LXD uses LXC through liblxc and its Go binding to create and manage the containers. It's basically an alternative to LXC's tools and distribution template system with the added features that come from being controllable over the network.

Packer

Packer

Packer automates the creation of any type of machine image. It embraces modern configuration management by encouraging you to use automated scripts to install and configure the software within your Packer-made images.

Scalr

Scalr

Scalr is a remote state & operations backend for Terraform with access controls, policy as code, and many quality of life features.

Pulumi

Pulumi

Pulumi is a cloud development platform that makes creating cloud programs easy and productive. Skip the YAML and just write code. Pulumi is multi-language, multi-cloud and fully extensible in both its engine and ecosystem of packages.

LXC

LXC

LXC is a userspace interface for the Linux kernel containment features. Through a powerful API and simple tools, it lets Linux users easily create and manage system or application containers.

Azure Resource Manager

Azure Resource Manager

It is the deployment and management service for Azure. It provides a management layer that enables you to create, update, and delete resources in your Azure subscription. You use management features, like access control, locks, and tags, to secure and organize your resources after deployment.

rkt

rkt

Rocket is a cli for running App Containers. The goal of rocket is to be composable, secure, and fast.

Habitat

Habitat

Habitat is a new approach to automation that focuses on the application instead of the infrastructure it runs on. With Habitat, the apps you build, deploy, and manage behave consistently in any runtime — metal, VMs, containers, and PaaS. You'll spend less time on the environment and more time building features.

Google Cloud Deployment Manager

Google Cloud Deployment Manager

Google Cloud Deployment Manager allows you to specify all the resources needed for your application in a declarative format using yaml.

Vagrant Cloud

Vagrant Cloud

Vagrant Cloud pairs with Vagrant to enable access, insight and collaboration across teams, as well as to bring exposure to community contributions and development environments.

Related Comparisons

GitHub
Bitbucket

Bitbucket vs GitHub vs GitLab

GitHub
Bitbucket

AWS CodeCommit vs Bitbucket vs GitHub

Kubernetes
Rancher

Docker Swarm vs Kubernetes vs Rancher

gulp
Grunt

Grunt vs Webpack vs gulp

Graphite
Kibana

Grafana vs Graphite vs Kibana