Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
marko7460 committed Sep 13, 2019
0 parents commit 441a45b
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea/
.terraform/
common.tfvars
tfe-init.tfvars
2 changes: 2 additions & 0 deletions workspaces/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.auto.tfvars
terraform.tfstate*
7 changes: 7 additions & 0 deletions workspaces/backend.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
terraform {
# backend "remote" {
# workspaces {
# name = "tfe-state"
# }
# }
}
1 change: 1 addition & 0 deletions workspaces/common.auto.tfvars
8 changes: 8 additions & 0 deletions workspaces/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resource "tfe_workspace" "ws" {
name = "infra-devs"
organization = var.terraform_cloud_org
vcs_repo {
identifier = "ops-guru/gcp-terraform-cloud"
oauth_token_id = var.oauth_token_id
}
}
2 changes: 2 additions & 0 deletions workspaces/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
provider "tfe" {
}
7 changes: 7 additions & 0 deletions workspaces/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
variable "terraform_cloud_org" {
description = "Organization in your terraform cloud"
}

variable "oauth_token_id" {
description = "Oauth Token for Github access"
}

0 comments on commit 441a45b

Please sign in to comment.