Skip to content

bitops-plugins/cloudformation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitops Plugin for Cloudformation

Table of contents

  1. Introduction
  2. Installation
  3. Deployment

Introduction

This plugin will let BitOps to automatically deploy cloudformation templates on AWS platform.

This plugin also manages create-stack or update-stack natively at the plugin level.

Deployment

cloudformation plugin uses bitops.config.yaml located in the operations repo when deploying resources using aws cloudformation templates.

Sample Config

cloudformation:
  cli:
    validate-cfn: true
    stack-action: deploy
  options:
    cfn-stack-name: bitops-v2-cfntest
    capabilities: CAPABILITY_NAMED_IAM
    cfn-files:
      template-file: template.yaml
      parameters:
        template-param-flag: true
        template-param-file: parameters.json

CLI and options configuration of cloudformation bitops.schema.yaml

Cloudformation BitOps Schema

bitops.schema.yaml


validate-cfn

  • BitOps Property: validate-cfn
  • Environment Variable: BITOPS_CFN_TEMPLATE_VALIDATION
  • default: true

Calls aws cloudformation validate-template


stack-action

  • BitOps Property: stack-action
  • Environment Variable: BITOPS_CFN_STACK_ACTION
  • default: deploy
  • required: "true"

Controls what cloudformation action to apply on the stack. This config is a required parameter.

skip-deploy

  • BitOps Property: skip-deploy
  • Environment Variable: CFN_SKIP_DEPLOY
  • default: ""
  • Description: If set to true, regardless of the stack-action, deployment actions will be skipped.

Options Configuration


cfn-stack-name

  • BitOps Property: cfn-stack-name
  • Environment Variable: BITOPS_CFN_STACK_NAME
  • default: ""
  • required: "true"

Cloudformation stack name. This config is a required parameter.


capabilities

  • BitOps Property: capabilities
  • Environment Variable: BITOPS_CFN_CAPABILITY
  • default: ""

Allows you to use CloudFormation nested stacks. Both properties must be set in order to use nested stacks.


s3bucket

  • BitOps Property: s3bucket
  • Environment Variable: BITOPS_CFN_TEMPLATE_S3_BUCKET
  • default: ""

s3prefix

  • BitOps Property: s3prefix
  • Environment Variable: BITOPS_CFN_S3_PREFIX
  • default: ""

Cloudformation capabilities


cfn-files

  • BitOps Property: cfn-files

Allows for param files to be used. Has the following child-properties

template-file

  • BitOps Property: cfn-files.template-file
  • Environment Variable: BITOPS_CFN_TEMPLATE_FILENAME
  • required: "true"

Template file to apply the params against. This config is a required parameter.

parameters

  • BitOps Property: cfn-files.parameters

Additional parameters.

enabled
  • BitOps Property: cfn-files.parameters.template-param-flag
  • Environment Variable: BITOPS_CFN_PARAMS_FLAG
  • default: true
template-param-file
  • BitOps Property: cfn-files.parameters.template-param-file
  • Environment Variable: BITOPS_CFN_TEMPLATE_PARAMS_FILENAME
  • default: ""


Additional Environment Variable Configuration

Although not captured in bitops.config.yml, the following environment variables can be set to further customize behaviour


CFN_SKIP_DEPLOY

Will skill all cloudformation executions. This superseeds all other configuration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages