Skip to content

Instantly share code, notes, and snippets.

@darko-mesaros
Created May 25, 2020 09:32
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darko-mesaros/0eeb88b9d209aba28d4b691137e56eec to your computer and use it in GitHub Desktop.
Save darko-mesaros/0eeb88b9d209aba28d4b691137e56eec to your computer and use it in GitHub Desktop.
Creation of GitHub repositories via AWS CloudFormation
AWSTemplateFormatVersion: "2010-09-09"
Description: >
https://twitch.tv/ruptwelve
Parameters:
RepoName:
Type: String
Description: Enter the name for your repository
Default: please-change-me
Resources:
MyGitHubRepo:
Type: AWS::CodeStar::GitHubRepository
Properties:
Code:
S3:
Bucket: "super-secret-code-bucket"
Key: "galaksija-source.zip"
EnableIssues: true
IsPrivate: True
RepositoryAccessToken: '{{resolve:secretsmanager:ghtoken:SecretString:ghtoken}}'
RepositoryDescription: Here be some super secret code - that I made public
RepositoryName: !Ref RepoName
RepositoryOwner: voja-antonic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment