-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from erikpaasonen/feat/assume-role-block-s3-ba…
…ckend
- Loading branch information
Showing
22 changed files
with
190 additions
and
147 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
examples/kitchen-sink/tracks/_pretrack/step1_pagerduty/backend.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
terraform { | ||
backend "local" { | ||
path = "pretrack/${var.runiac_step}/terraform.tfstate" | ||
path = "pretrack/${var.runiac_step}/terraform.tfstate" | ||
workspace_dir = "/runiac/tfstate" | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
examples/kitchen-sink/tracks/_pretrack/step1_pagerduty/outputs.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
output "pagerduty_policy_id" { | ||
value = pagerduty_escalation_policy.example.id | ||
value = pagerduty_escalation_policy.example.id | ||
} |
26 changes: 13 additions & 13 deletions
26
examples/kitchen-sink/tracks/_pretrack/step1_pagerduty/variables.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
variable pagerduty_token { | ||
type = string | ||
variable "pagerduty_token" { | ||
type = string | ||
} | ||
|
||
variable runiac_account_id { | ||
type = string | ||
variable "runiac_account_id" { | ||
type = string | ||
} | ||
|
||
variable runiac_region { | ||
type = string | ||
variable "runiac_region" { | ||
type = string | ||
} | ||
|
||
variable runiac_environment { | ||
type = string | ||
variable "runiac_environment" { | ||
type = string | ||
} | ||
|
||
variable resource_group { | ||
type = string | ||
default = "rg-runiac-sample" | ||
variable "resource_group" { | ||
type = string | ||
default = "rg-runiac-sample" | ||
} | ||
|
||
variable runiac_step { | ||
type = string | ||
variable "runiac_step" { | ||
type = string | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
terraform { | ||
backend "local" { | ||
path = "azure/${var.runiac_step}/terraform.tfstate" | ||
path = "azure/${var.runiac_step}/terraform.tfstate" | ||
workspace_dir = "/runiac/tfstate" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
examples/kitchen-sink/tracks/azure/step1_infra/regional/backend.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
terraform { | ||
backend "local" { | ||
path = "azure/${var.runiac_step}/terraform.tfstate" | ||
path = "azure/${var.runiac_step}/terraform.tfstate" | ||
workspace_dir = "/runiac/tfstate" | ||
} | ||
} |
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
34 changes: 17 additions & 17 deletions
34
examples/kitchen-sink/tracks/azure/step1_infra/regional/variables.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
locals { | ||
docker_image = "heroku/nodejs-hello-world:latest" | ||
docker_image = "heroku/nodejs-hello-world:latest" | ||
} | ||
|
||
variable pagerduty_token { | ||
type = string | ||
variable "pagerduty_token" { | ||
type = string | ||
} | ||
|
||
variable pretrack-pagerduty-pagerduty_policy_id { | ||
type = string | ||
variable "pretrack-pagerduty-pagerduty_policy_id" { | ||
type = string | ||
} | ||
|
||
variable runiac_account_id { | ||
type = string | ||
variable "runiac_account_id" { | ||
type = string | ||
} | ||
|
||
variable runiac_region { | ||
type = string | ||
variable "runiac_region" { | ||
type = string | ||
} | ||
|
||
variable runiac_environment { | ||
type = string | ||
variable "runiac_environment" { | ||
type = string | ||
} | ||
|
||
variable resource_group { | ||
type = string | ||
default = "rg-runiac-sample" | ||
variable "resource_group" { | ||
type = string | ||
default = "rg-runiac-sample" | ||
} | ||
|
||
variable runiac_step { | ||
type = string | ||
variable "runiac_step" { | ||
type = string | ||
} | ||
|
||
variable "runiac_primary_region" { | ||
type = string | ||
type = string | ||
} |
24 changes: 12 additions & 12 deletions
24
examples/kitchen-sink/tracks/azure/step1_infra/variables.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
locals { | ||
docker_image = "heroku/nodejs-hello-world" | ||
docker_image = "heroku/nodejs-hello-world" | ||
} | ||
|
||
variable runiac_account_id { | ||
type = string | ||
variable "runiac_account_id" { | ||
type = string | ||
} | ||
|
||
variable runiac_region { | ||
type = string | ||
variable "runiac_region" { | ||
type = string | ||
} | ||
|
||
variable runiac_environment { | ||
type = string | ||
variable "runiac_environment" { | ||
type = string | ||
} | ||
|
||
variable resource_group { | ||
type = string | ||
default = "rg-runiac-sample" | ||
variable "resource_group" { | ||
type = string | ||
default = "rg-runiac-sample" | ||
} | ||
|
||
variable runiac_step { | ||
type = string | ||
variable "runiac_step" { | ||
type = string | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
terraform { | ||
backend "local" { | ||
path = "gcp/${var.runiac_step}/terraform.tfstate" | ||
path = "gcp/${var.runiac_step}/terraform.tfstate" | ||
workspace_dir = "/runiac/tfstate" | ||
} | ||
} |
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
42 changes: 21 additions & 21 deletions
42
examples/kitchen-sink/tracks/gcp/step1_infra/variables.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
locals { | ||
docker_image = "gcr.io/cloudrun/hello" | ||
docker_image = "gcr.io/cloudrun/hello" | ||
|
||
region = lookup({ | ||
"centralus": "us-central1" | ||
}, var.runiac_region, "centralus") | ||
region = lookup({ | ||
"centralus" : "us-central1" | ||
}, var.runiac_region, "centralus") | ||
} | ||
|
||
variable pagerduty_token { | ||
type = string | ||
variable "pagerduty_token" { | ||
type = string | ||
} | ||
|
||
variable pretrack-pagerduty-pagerduty_policy_id { | ||
type = string | ||
variable "pretrack-pagerduty-pagerduty_policy_id" { | ||
type = string | ||
} | ||
|
||
variable gcp_project_id { | ||
type = string | ||
variable "gcp_project_id" { | ||
type = string | ||
} | ||
|
||
variable runiac_account_id { | ||
type = string | ||
variable "runiac_account_id" { | ||
type = string | ||
} | ||
|
||
variable runiac_region { | ||
type = string | ||
variable "runiac_region" { | ||
type = string | ||
} | ||
|
||
variable runiac_environment { | ||
type = string | ||
variable "runiac_environment" { | ||
type = string | ||
} | ||
|
||
variable resource_group { | ||
type = string | ||
default = "rg-runiac-sample" | ||
variable "resource_group" { | ||
type = string | ||
default = "rg-runiac-sample" | ||
} | ||
|
||
variable runiac_step { | ||
type = string | ||
variable "runiac_step" { | ||
type = string | ||
} |
2 changes: 1 addition & 1 deletion
2
examples/terraform-azure-hello-world-multi-region/step1_default/backend.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
terraform { | ||
backend "local" { | ||
path = "${var.runiac_step}.terraform.tfstate" | ||
path = "${var.runiac_step}.terraform.tfstate" | ||
workspace_dir = "/runiac/tfstate" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
examples/terraform-azure-hello-world-multi-region/step1_default/main.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resource azurerm_resource_group hub { | ||
resource "azurerm_resource_group" "hub" { | ||
name = "${local.namespace-}rg-runiac-hub-${var.runiac_region}" | ||
location = var.runiac_region | ||
} |
2 changes: 1 addition & 1 deletion
2
examples/terraform-azure-hello-world-multi-region/step1_default/regional/backend.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
terraform { | ||
backend "local" { | ||
path = "azure/${var.runiac_step}/terraform.tfstate" | ||
path = "azure/${var.runiac_step}/terraform.tfstate" | ||
workspace_dir = "/runiac/tfstate" | ||
} | ||
} |
14 changes: 7 additions & 7 deletions
14
examples/terraform-azure-hello-world-multi-region/step1_default/regional/variables.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
locals { | ||
namespace- = var.runiac_namespace == "" ? "" : "${var.runiac_namespace}-" | ||
namespace- = var.runiac_namespace == "" ? "" : "${var.runiac_namespace}-" | ||
} | ||
|
||
variable "runiac_account_id" { | ||
type = string | ||
type = string | ||
} | ||
|
||
variable "runiac_region" { | ||
type = string | ||
type = string | ||
} | ||
|
||
variable "runiac_environment" { | ||
type = string | ||
type = string | ||
} | ||
|
||
variable "runiac_namespace" { | ||
type = string | ||
type = string | ||
} | ||
|
||
variable "runiac_step" { | ||
type = string | ||
type = string | ||
} | ||
|
||
variable "runiac_primary_region" { | ||
type = string | ||
type = string | ||
} |
27 changes: 11 additions & 16 deletions
27
examples/terraform-azure-hello-world-multi-region/step1_default/variables.tf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,23 @@ | ||
locals { | ||
namespace- = var.runiac_namespace == "" ? "" : "${var.runiac_namespace}-" | ||
namespace- = var.runiac_namespace == "" ? "" : "${var.runiac_namespace}-" | ||
} | ||
|
||
variable runiac_account_id { | ||
type = string | ||
variable "runiac_account_id" { | ||
type = string | ||
} | ||
|
||
variable runiac_region { | ||
type = string | ||
variable "runiac_region" { | ||
type = string | ||
} | ||
|
||
variable runiac_environment { | ||
type = string | ||
variable "runiac_environment" { | ||
type = string | ||
} | ||
|
||
variable runiac_namespace { | ||
type = string | ||
variable "runiac_namespace" { | ||
type = string | ||
} | ||
|
||
variable runiac_step { | ||
type = string | ||
variable "runiac_step" { | ||
type = string | ||
} | ||
|
||
variable runiac_step { | ||
type = string | ||
} | ||
|
Oops, something went wrong.