Skip to content

assignar/aws-cloudformation-resource-providers-github

Repository files navigation

GitHub Resource Providers for AWS CloudFormation

Overview

Resource Name Directory Description
GitHub::Repository::Environment ./github-repository-environment Creates GitHub Environments.
GitHub::Repository::EnvironmentSecret ./github-repository-environment-secret Creates Secrets for GitHub Environments.

Installation

Each resource needs to be installed separately.

  1. Enter resource directory
cd ./github-repository-environment
  1. Install resource with CloudFormation CLI
cfn submit --set-default

Example CloudFormation Template

The example below can be used with Personal Access Tokens.

Resources:
  Environment:
    Type: GitHub::Repository::Environment
    Properties:
      AccessToken: "MY_GITHUB_TOKEN"
      Owner: "octocat"
      Repository: "hello-world"
      EnvironmentName: "example"
  EnvironmentSecret:
    Type: GitHub::Repository::EnvironmentSecret
    DependsOn:
      - Environment
    Properties:
      AccessToken: "MY_GITHUB_TOKEN"
      Owner: "octocat"
      Repository: "hello-world"
      EnvironmentName: "example"
      SecretName: "EXAMPLE_SECRET"
      SecretValue: "EXAMPLE_SECRET_VALUE"

About

AWS CloudFormation Resource Providers GitHub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages