All Projects → widdix → Cfn Create Or Update

widdix / Cfn Create Or Update

Licence: mit
Create or update CloudFormation stack also if no updates are to be performed.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Cfn Create Or Update

Docs
Rapid CloudFormation: Modular, production ready, open source.
Stars: ✭ 209 (+254.24%)
Mutual labels:  aws, cloudformation, amazon-web-services, aws-cloudformation
Aws Auto Terminate Idle Emr
AWS Auto Terminate Idle AWS EMR Clusters Framework is an AWS based solution using AWS CloudWatch and AWS Lambda using a Python script that is using Boto3 to terminate AWS EMR clusters that have been idle for a specified period of time.
Stars: ✭ 21 (-64.41%)
Mutual labels:  aws, cloudformation, amazon-web-services, aws-cloudformation
Perun
A command-line validation tool for AWS Cloud Formation that allows to conquer the cloud faster!
Stars: ✭ 82 (+38.98%)
Mutual labels:  aws, cloudformation, amazon-web-services, aws-cloudformation
Aws Cf Templates
A cloudonaut.io project. Engineered by widdix.
Stars: ✭ 2,399 (+3966.1%)
Mutual labels:  aws, cloudformation, amazon-web-services, aws-cloudformation
Cfn Generic Custom Resource
CloudFormation generic custom resource provider
Stars: ✭ 26 (-55.93%)
Mutual labels:  aws, cloudformation, aws-cloudformation, devops
Quickstart Taskcat Ci
AWS Quick Start Team
Stars: ✭ 57 (-3.39%)
Mutual labels:  aws, cloudformation, aws-cloudformation
aws-cfn-custom-resource-lambda-edge
🏗 AWS CloudFormation custom resource that allows deploying Lambda@Edge from any region
Stars: ✭ 19 (-67.8%)
Mutual labels:  cloudformation, amazon-web-services, aws-cloudformation
monitoring-jump-start
Monitor AWS resources with ease
Stars: ✭ 67 (+13.56%)
Mutual labels:  cloudformation, amazon-web-services, aws-cloudformation
Aws Unifi Controller
Example of a Ubiquiti Unifi Controller in AWS using Network Load Balancer for TLS termination
Stars: ✭ 37 (-37.29%)
Mutual labels:  aws, cloudformation, aws-cloudformation
Learn Cloudformation
Learn how to use Infrastructure as Code on AWS with the help of CloudFormation.
Stars: ✭ 191 (+223.73%)
Mutual labels:  aws, amazon-web-services, aws-cloudformation
Awesome Cloudformation
A curated list of resources and projects for working with AWS CloudFormation.
Stars: ✭ 290 (+391.53%)
Mutual labels:  aws, cloudformation, aws-cloudformation
Devops Python Tools
80+ DevOps & Data CLI Tools - AWS, GCP, GCF Python Cloud Function, Log Anonymizer, Spark, Hadoop, HBase, Hive, Impala, Linux, Docker, Spark Data Converters & Validators (Avro/Parquet/JSON/CSV/INI/XML/YAML), Travis CI, AWS CloudFormation, Elasticsearch, Solr etc.
Stars: ✭ 406 (+588.14%)
Mutual labels:  aws, cloudformation, devops
Checkov
Prevent cloud misconfigurations during build-time for Terraform, Cloudformation, Kubernetes, Serverless framework and other infrastructure-as-code-languages with Checkov by Bridgecrew.
Stars: ✭ 3,572 (+5954.24%)
Mutual labels:  aws, cloudformation, devops
Goformation
GoFormation is a Go library for working with CloudFormation templates.
Stars: ✭ 671 (+1037.29%)
Mutual labels:  aws, cloudformation, aws-cloudformation
Aws Cloudformation User Guide
The open source version of the AWS CloudFormation User Guide
Stars: ✭ 493 (+735.59%)
Mutual labels:  aws, cloudformation, aws-cloudformation
Docker Swarm
🐳🐳🐳 This repository is part of a blog series on Docker Swarm example using VirtualBox, OVH Openstack, Azure and Amazon Web Services AWS
Stars: ✭ 43 (-27.12%)
Mutual labels:  aws, amazon-web-services, devops
Howtheyaws
A curated collection of publicly available resources on how technology and tech-savvy organizations around the world use Amazon Web Services (AWS)
Stars: ✭ 389 (+559.32%)
Mutual labels:  aws, amazon-web-services, devops
Aws Sdk Perl
A community AWS SDK for Perl Programmers
Stars: ✭ 153 (+159.32%)
Mutual labels:  aws, cloudformation, amazon-web-services
Autospotting
Saves up to 90% of AWS EC2 costs by automating the use of spot instances on existing AutoScaling groups. Installs in minutes using CloudFormation or Terraform. Convenient to deploy at scale using StackSets. Uses tagging to avoid launch configuration changes. Automated spot termination handling. Reliable fallback to on-demand instances.
Stars: ✭ 2,014 (+3313.56%)
Mutual labels:  aws, cloudformation, amazon-web-services
Org Formation Cli
Better than landingzones!
Stars: ✭ 471 (+698.31%)
Mutual labels:  aws, cloudformation, devops

cfn-create-or-update

This project is no longer maintained. The official AWS CLI now provides the same functionality with the aws cloudformation deploy [...] --no-fail-on-empty-changeset command. Read more.

When integrating CloudFormation into your CI/CD pipeline you are faced with the challenge of creating a CloudFormation stack on the first run of the pipeline, while you need to update the stack for all following pipeline runs. If you use the AWS CLI this is painful. You may also have your code and template in the same repository. Therefore code changes without the template. But the AWS CLI threats an update without changes to a stack as an error which is not the behavior that you need in your pipeline.

cfn-create-or-update can create or update a CloudFormation stack. If no updates are to be performed, no error is thrown. cfn-create-or-update behaves exactly as the AWS CLI regarding input values, output will be different.

Installation

To install the CLI tool cfn-create-or-update, run:

npm install -g cfn-create-or-update

To create or update a stack, run:

cfn-create-or-update --stack-name test --template-body file://template.yml

The first time you run this command, a stack will be created. The second time an update will be performed but only if the template has changes.

CLI parameters

cfn-create-or-update behaves exactly as the AWS CLI regarding input values. Supported parameters (as documented in the AWS CLI create-stack or update-stack):

cfn-create-or-update
--stack-name
--template-body
--template-url
--parameters
--capabilities 
--resource-types
--role-arn
--stack-policy-body
--stack-policy-url
--notification-arns
--tags

Global parameters (as documented in the AWS CLI

--profile
--region

If you use a parameter of type List<?> or CommaDelimitedList, you have to supply the values like this:

--parameters ParameterKey=SubnetIds,ParameterValue=\"subnet-3353611c,subnet-c3d51189\"

Only used during create, otherwise ignored (as documented in the AWS CLI create-stack):

--disable-rollback | --no-disable-rollback
--timeout-in-minutes
--on-failure

Only used during update, otherwise ignored (as documented in the AWS CLI update-stack):

--use-previous-template | --no-use-previous-template]
--stack-policy-during-update-body
--stack-policy-during-update-url

Additional parameters

--wait

Environment variables

  • both AWS_REGION and AWS_DEFAULT_REGION work
  • HTTPS_PROXY is used if set
  • AWS_PROFILE is used if set
  • AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and optionally AWS_SESSION_TOKEN are used of set

Multi-Factor Authentication

If your AWS CLI profile has a mfa_serial property, then multi-factor authentication is required. You will be prompted to enter your 6-digit MFA token code via the console.

$ cfn-create-or-update --profile admin-role --stack-name mystack --template-body file://mystack.yml
? MFA token for arn:aws:iam::000000000000:mfa/myusername: 123456
{}

Contribution

If you want to create a Pull-Request please make sure that make test runs without failures.

Code Style

make jshint

Unit Tests

make mocha

Circular depdendencies

make circular

Test coverage

make coverage
open coverage/lcov-report/index.html
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].