@viperhq/cf

Helper for CloudFormation

Usage no npm install needed!

<script type="module">
  import viperhqCf from 'https://cdn.skypack.dev/@viperhq/cf';
</script>

README

CloudFormation helper functions

npm

Running deploy

Full parameter list: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudformation/deploy/index.html

deploy({
  region: "eu-west-2",
  stackName: "test",
  templateFile: path.join("test", "templates", "bucket.yaml"),
  capabilities: ["CAPABILITY_IAM"],
  parameters: {
    CustomTag: "test",
    CustomTag2: "test2"
  }
})

Getting outputs

const outputs = await output("test", "eu-west-2");

Running package

Full parameter list: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudformation/package.html

pkg({
  region: "eu-west-2",
  templateFile: "index.yaml",
  outputTemplateFile: "out.yaml",
  s3Bucket: "bucket"
})