Skip to content

CloudFormation Resource Library: a collection of useful custom resources that are missing from CloudFormation

License

Notifications You must be signed in to change notification settings

CloudSnorkel/cfm-reslib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

326b372 · Mar 26, 2021

History

31 Commits
Jun 14, 2019
Mar 26, 2021
May 13, 2019
May 12, 2019
May 12, 2019
Mar 26, 2021
Apr 11, 2019
May 12, 2019
May 13, 2019
Mar 26, 2021
May 12, 2019
Mar 26, 2021
Apr 10, 2019
Mar 26, 2021
Mar 26, 2021

Repository files navigation

Build Status Documentation Status

cfm-reslib

CloudFormation Resource Library: a collection of useful custom resources that are missing from CloudFormation.

Available Resources (partial list)

For a complete list see the documentation.

Open issues to ask for more resources or pull requests with implementation.

Instructions

cfm-reslib is delivered as a single CloudFormation template that exports a single output called cfm-reslib. To use it you must first install it in the account and region where it will be used.

See the documentation for more information.

Install

aws cloudformation create-stack --stack-name cfm-reslib --template-url https://s3.amazonaws.com/cfm-reslib/cfm-reslib-latest.template --capabilities CAPABILITY_IAM

Update

aws cloudformation update-stack --stack-name cfm-reslib --template-url https://s3.amazonaws.com/cfm-reslib/cfm-reslib-latest.template --capabilities CAPABILITY_IAM

Usage

Once installed cfm-reslib can be used by defining a custom resource with ServiceToken set to the exported value.

YAML

Resources:
  TranscoderPipeline:
    Type: Custom::ElasticTranscoderPipeline
    Properties:
      ServiceToken: !ImportValue cfm-reslib
      Name: test
      InputBucket: input-bucket
      OutputBucket: output-bucket
      Role: arn:aws:iam::xxxxx:role/foobar
  Certificate:
    Type: Custom::Route53Certificate
    Properties:
      ServiceToken: !ImportValue cfm-reslib
      DomainName: foobar.acme.com
      SubjectAlternativeNames:
        - foobar2.acme.com
        - foobar3.acme.com

JSON

{
  "Resources": {
    "TranscoderPipeline": {
      "Type": "Custom::ElasticTranscoderPipeline",
      "Properties": {
        "ServiceToken": {"Fn::ImportValue": "cfm-reslib"},
        "Name": "test",
        "InputBucket": "input-bucket",
        "OutputBucket": "output-bucket",
        "Role": "arn:aws:iam::xxxxx:role/foobar"
      }
    },
    "Certificate: {
      "Type": "Custom::ElasticTranscoderPipeline",
      "Properties": {
        "ServiceToken": {"Fn::ImportValue": "cfm-reslib"},
        "DomainName": "foobar.acme.com",
        "SubjectAlternativeNames": [
          "foobar2.acme.com",
          "foobar3.acme.com"
        ]
      }
    }
  }
}

About

CloudFormation Resource Library: a collection of useful custom resources that are missing from CloudFormation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published