3

Troposphere is a python project for AWS provisioning. This is a mature project.

AWS CDK is still in developer preview.

cdk diff does help on ease of state maintenance before cdk deploy. Am not sure, how troposphere helps us on state maintenance? except generating a cloudformation template...

From AWSEvent talk, it is mentioned that, abstractions are not built-in for using Troposphere

where as

AWS CDK has good abstractions.

CDK enables CI/CD, easily, where-as Troposphere needs extra automation to upload CF templates

We need to take a decision on picking one, to provision our infrastructure on AWS


From the aspect of state maintenance, software best practice, code maintenance & supported resource types, CI/CD(end-to-end automation) for provisioning,

What are the advantages of AWS_CDK vs Troposphere vs Stacker? being open to any programming language..

overexchange
  • 15,768
  • 30
  • 152
  • 347
  • 1
    FYI that CDK is no longer in developer preview. It's now GA (https://aws.amazon.com/blogs/aws/aws-cloud-development-kit-cdk-typescript-and-python-are-now-generally-available/) – jarmod Jul 11 '19 at 15:12

1 Answers1

2

troposphere is part of what CDK does, a more apt comparison would be stacker (https://stacker.readthedocs.io/en/latest/ which uses troposphere -- I'm a maintainer of both) vs CDK. Let me know if you have any other questions!

phobologic
  • 424
  • 3
  • 5
  • 1
    How do you compare Stacker with AWS CDK? What features does Stacker add on top of troposphere? – overexchange Jun 27 '19 at 18:14
  • stacker is the orchestration layer around troposphere, much in the same way that CDK orchestrates the building of cloudformation stacks. stacker has a ton of features and has been around for a while. I haven't taken a close look at CDK recently, so won't be able to give a great apples to apples comparison, but I'd say take a look at stacker for the orchestration type tasks. – phobologic Jun 27 '19 at 21:33
  • I just took a look at the video - stacker provides an open source library of abstractions around a lot of troposphere objects. You can see those at: https://github.com/cloudtools/stacker_blueprints – phobologic Jun 27 '19 at 21:35
  • When you say Orchestration logic, are you referring to main features? https://stacker.readthedocs.io/en/latest/#main-features – overexchange Jun 27 '19 at 22:03
  • Yep! You define all the stacks you want in your infrastructure, stacker builds it and makes sure it keeps up to date based on any changes. This is a bit old, but the basics remain the same: https://www.whaletech.co/2017/02/28/Tooling-around-with-CloudFormation-helpers.html – phobologic Jun 27 '19 at 22:04
  • Related question: https://stackoverflow.com/questions/59000872/does-cdk-perform-orchestration-apart-from-provisioning – overexchange Nov 22 '19 at 19:52
  • @phobologic a lot of time passed - is your answer still valid? How to decide to switch? – lony Jun 17 '21 at 14:10