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. |
Each resource needs to be installed separately.
- Enter resource directory
cd ./github-repository-environment
- Install resource with CloudFormation CLI
cfn submit --set-default
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"