No commit activity in last 3 years
No release in over 3 years
Deploys and Manages AWS CloudFormation.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

CloudFormation Wrapper

A ruby library to simplify management and deployments of AWS CloudFormation Stacks.

Description

This gem provides helper methods for deployments of CloudFormation Stacks.

Installation

Recommended: Use Bundler for all your Ruby projects! Add the cloudformation_wrapper to your Gemfile:

  gem 'cloudformation_wrapper'

Or install globally using RubyGems:

gem install cloudformation_wrapper

Using CloudFormationWrapper

Use the static deploy method within the CloudFormationWrapper::StackManager to deploy a CloudFormation Stack.

CloudFormationWrapper uses the AWS SDK to manage CloudFormation stacks. Therefore, it utilizes the Aws::CloudFormation::Client for integration. You can provide the client yourself, pass in the credentials, or it will try to read them from Environment Variables. See the Credential Provider Chain for more details.

CloudFormationWrapper::StackManager.deploy(
  region: 'us-east-1',
  template_path: '/path/to/template/file',
  name: 'MyCloudFormationStack',
  parameters: {
    StackEnvironment: 'production',
    CreateS3Bucket: true,
    OtherTemplateParameter: 'TemplateParameterValue'
  },
  wait_for_stack: true
)