diff --git a/terraform-cloud/heroku.tf b/terraform-cloud/heroku.tf deleted file mode 100644 index 9f6b09e..0000000 --- a/terraform-cloud/heroku.tf +++ /dev/null @@ -1,32 +0,0 @@ -resource "tfe_workspace" "heroku" { - name = "heroku" - organization = tfe_organization.jakuboskera.id - working_directory = "heroku" -} - -resource "tfe_variable" "heroku-heroku_email" { - key = "heroku_email" - value = var.heroku_email - category = "terraform" - sensitive = true - workspace_id = tfe_workspace.heroku.id - description = "Heroku email" -} - -resource "tfe_variable" "heroku-heroku_api_key" { - key = "heroku_api_key" - value = var.heroku_api_key - category = "terraform" - sensitive = true - workspace_id = tfe_workspace.heroku.id - description = "Heroku token" -} - -resource "tfe_variable" "heroku_should-be-done_api_key" { - key = "heroku_should-be-done_api_key" - value = var.heroku_should-be-done_api_key - category = "terraform" - sensitive = true - workspace_id = tfe_workspace.heroku.id - description = "API key for https://todo.jakuboskera.dev application" -} diff --git a/terraform-cloud/terraform-cloud.tf b/terraform-cloud/terraform-cloud.tf index d9916b5..fe8ac3c 100644 --- a/terraform-cloud/terraform-cloud.tf +++ b/terraform-cloud/terraform-cloud.tf @@ -5,26 +5,8 @@ resource "tfe_workspace" "terraform-cloud" { } # These vars are needed to be part of terraform-cloud workspace in -# order create these vars in other workspaces like cloudflare, heroku etc. +# order create these vars in other workspaces like cloudflare, etc. # and then used by this workspaces -resource "tfe_variable" "terraform-cloud-heroku_email" { - key = "heroku_email" - value = var.heroku_email - category = "terraform" - sensitive = true - workspace_id = tfe_workspace.terraform-cloud.id - description = "Heroku email" -} - -resource "tfe_variable" "terraform-cloud-heroku_api_key" { - key = "heroku_api_key" - value = var.heroku_api_key - category = "terraform" - sensitive = true - workspace_id = tfe_workspace.terraform-cloud.id - description = "Heroku api key" -} - resource "tfe_variable" "terraform-cloud-tfe_token" { key = "tfe_token" value = var.tfe_token @@ -61,15 +43,6 @@ resource "tfe_variable" "terraform-cloud-icloud_dns_token" { description = "iCloud DNS token" } -resource "tfe_variable" "terraform-cloud-heroku_should-be-done_api_key" { - key = "heroku_should-be-done_api_key" - value = var.heroku_should-be-done_api_key - category = "terraform" - sensitive = true - workspace_id = tfe_workspace.terraform-cloud.id - description = "API key for https://todo.jakuboskera.dev application" -} - resource "tfe_variable" "terraform-cloud-todo_api_key" { key = "todo_api_key" value = var.todo_api_key diff --git a/terraform-cloud/terraform.auto.EXAMPLE.tfvars b/terraform-cloud/terraform.auto.EXAMPLE.tfvars index a6eafb6..d4354b1 100644 --- a/terraform-cloud/terraform.auto.EXAMPLE.tfvars +++ b/terraform-cloud/terraform.auto.EXAMPLE.tfvars @@ -1,8 +1,5 @@ -tfe_token = "xxx" # Create a token here https://app.terraform.io/app/settings/tokens -heroku_email = "xxx" -heroku_api_key = "xxx" # Create a token here https://dashboard.heroku.com/account -cloudflare_email = "xxx" -cloudflare_api_key = "xxx" # Create a token here https://dash.cloudflare.com/profile/api-tokens -icloud_dns_token = "xxx" -heroku_should-be-done_api_key = "xxx" -todo_api_key = "xxx" +tfe_token = "xxx" # Create a token here https://app.terraform.io/app/settings/tokens +cloudflare_email = "xxx" +cloudflare_api_key = "xxx" # Create a token here https://dash.cloudflare.com/profile/api-tokens +icloud_dns_token = "xxx" +todo_api_key = "xxx" diff --git a/terraform-cloud/variables.tf b/terraform-cloud/variables.tf index 06cd963..4880f1a 100644 --- a/terraform-cloud/variables.tf +++ b/terraform-cloud/variables.tf @@ -1,8 +1,5 @@ variable "tfe_token" {} -variable "heroku_email" {} -variable "heroku_api_key" {} variable "cloudflare_email" {} variable "cloudflare_api_key" {} variable "icloud_dns_token" {} -variable "heroku_should-be-done_api_key" {} variable "todo_api_key" {}