Created
July 18, 2020 14:01
-
-
Save prabhu/41df0ec0b66d01ddfcea45c9af6b6863 to your computer and use it in GitHub Desktop.
Create GitHub repository using template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "github_repositories" "java_ms_template" { | |
query = "org:${var.organization} language:java topic:microservice topic:template" | |
} | |
resource "github_repository" "new_ms" { | |
name = "new-java-microservice" | |
description = "New Java Microservice" | |
private = true | |
template { | |
owner = var.organization | |
repository = data.github_repositories.java_ms_template.name | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment