Code Monkey home page Code Monkey logo

tf-github-repository's Introduction

GitHub Repository Terraform Module

This Terraform module creates a private repository on GitHub, and adds a deploy key to it.

Usage

module "github_repository" {
  source                   = "github.com/den-vasyliev/tf-github-repository"
  github_owner             = var.GITHUB_OWNER
  github_token             = var.GITHUB_TOKEN
  repository_name          = var.FLUX_GITHUB_REPO
  public_key_openssh       = module.tls_private_key.public_key_openssh
  public_key_openssh_title = "flux"
}
module "tls_private_key" {
  source = "github.com/den-vasyliev/tf-hashicorp-tls-keys"
}

Inputs

  • github_owner - The name of the GitHub account that will own the repository.
  • github_token - A GitHub personal access token with the repo scope.
  • repository_name - (Optional) The name of the repository to create. Default is test-provider.
  • repository_visibility - (Optional) The visibility of the repository. Default is private.
  • branch - (Optional) The name of the branch to create. Default is main.
  • public_key_openssh - The public key to use as a deploy key for the repository.
  • public_key_openssh_title - The title of the public key to use as a deploy key for the repository.

Outputs

  • repository_name - The name of the created repository.

Requirements

This module requires Terraform 0.12 or later, and the following provider:

github version >= 5.9.1

License

This module is licensed under the MIT License. See the LICENSE file for details.

tf-github-repository's People

Contributors

den-vasyliev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.