CNAB.ARM-Converter

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2020 License: MIT

README

cnab-arm-driver

Tool for generating ARM template from a CNAB bundle.

Overview

This tool will generate an ARM template from a bundle definition, the resultant template will create a user assigned identity, assign contributor permission to the identity at the scope of the resource group that the template is deployed into, create a storage account , container and file share and then create an instance of the bundle using porter via the deploymentScript resource.

The generated template will contain a parameter for each parameter and credential that the bundle defines and will contain an output called bundleOutput that contains a JSON array containing the outputs from the bundle.

The template will also configure porter to use the azure storage plugin for state storage using the storage account defined in the template, if an installation already exists with the installation name then an install is performed, otherwise an upgrade is performed.

Usage

Generating the ARM template

Usage:
  cnabtoarmtemplate [flags]

Flags:
  -b, --bundle string   name of bundle file to generate template for, default is bundle.json in the current directory 
      --force               Force a fresh pull of the bundle
  -h, --help                help for cnabtoarmtemplate
  -i, --indent              specifies if the json output should be indented
      --insecure-registry   Dont require TLS for the registry when pulling the bundle
  -o, --output string       file name for generated template,default is azuredeploy.json (default "azuredeploy.json")
      --overwrite           specifies if to overwrite the output file if it already exists, default is false
  -s, --simplify            specifies if the ARM template should be simplified, exposing less parameters and inferring default values
  -t, --tag string          Use a bundle specified by the given tag , takes precedence over --bundle.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL