Skip to content

Commit 8de15f1

Browse files
committed
Merge branch 'main' of github.com:b-per/dbt-terraform-modules
2 parents 1096b10 + 43f1834 commit 8de15f1

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

examples/README.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
* In Progress *
44

5-
This folder contains examples of how the differnt modules can be used.
5+
This folder contains examples of how the different modules can be used.

modules/github/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ resource "null_resource" "post_repo_creation" {
4646
#!/bin/bash
4747
set -e
4848
# Clone the template and push it to the new repo
49+
rm -rf cruft-template
4950
mkdir cruft-template
5051
cd cruft-template
5152
cruft create ${var.cruft_template_url} --extra-context '{"project_name": "${var.project_name}", "project_slug": "${var.project_slug}"}' --no-input
@@ -54,7 +55,7 @@ resource "null_resource" "post_repo_creation" {
5455
git init
5556
git config user.email "nomail@dbt.com"
5657
git config user.name "Created by Terraform"
57-
git add *
58+
git add -A
5859
git commit -m "Initial commit from Terraform and cruft"
5960
git branch -M main
6061
git remote add origin ${local.https_url_with_pat}

modules/github/variables.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
variable "github_token" {
22
description = "GitHub token to crate repos"
33
type = string
4+
sensitive = true
45
}
56

67
variable "project_slug" {
@@ -16,4 +17,4 @@ variable "project_name" {
1617
variable "cruft_template_url" {
1718
description = "URL for the Cruft template"
1819
type = string
19-
}
20+
}

0 commit comments

Comments
 (0)