File tree Expand file tree Collapse file tree 22 files changed +190
-147
lines changed
terraform-azure-hello-world-multi-region/step1_default Expand file tree Collapse file tree 22 files changed +190
-147
lines changed Original file line number Diff line number Diff line change 1
1
terraform {
2
2
backend "local" {
3
- path = " pretrack/${ var . runiac_step } /terraform.tfstate"
3
+ path = " pretrack/${ var . runiac_step } /terraform.tfstate"
4
4
workspace_dir = " /runiac/tfstate"
5
5
}
6
6
}
Original file line number Diff line number Diff line change 1
1
// deploy a PagerDuty team
2
2
resource "pagerduty_team" "example" {
3
3
name = " Engineering"
4
- description = " All engineering"
4
+ description = " All engineering"
5
5
}
6
6
7
7
// deploy a user account into PagerDuty
Original file line number Diff line number Diff line change 1
1
output "pagerduty_policy_id" {
2
- value = pagerduty_escalation_policy. example . id
2
+ value = pagerduty_escalation_policy. example . id
3
3
}
Original file line number Diff line number Diff line change 1
- variable pagerduty_token {
2
- type = string
1
+ variable " pagerduty_token" {
2
+ type = string
3
3
}
4
4
5
- variable runiac_account_id {
6
- type = string
5
+ variable " runiac_account_id" {
6
+ type = string
7
7
}
8
8
9
- variable runiac_region {
10
- type = string
9
+ variable " runiac_region" {
10
+ type = string
11
11
}
12
12
13
- variable runiac_environment {
14
- type = string
13
+ variable " runiac_environment" {
14
+ type = string
15
15
}
16
16
17
- variable resource_group {
18
- type = string
19
- default = " rg-runiac-sample"
17
+ variable " resource_group" {
18
+ type = string
19
+ default = " rg-runiac-sample"
20
20
}
21
21
22
- variable runiac_step {
23
- type = string
22
+ variable " runiac_step" {
23
+ type = string
24
24
}
Original file line number Diff line number Diff line change 1
1
terraform {
2
2
backend "local" {
3
- path = " azure/${ var . runiac_step } /terraform.tfstate"
3
+ path = " azure/${ var . runiac_step } /terraform.tfstate"
4
4
workspace_dir = " /runiac/tfstate"
5
5
}
6
6
}
Original file line number Diff line number Diff line change 1
1
terraform {
2
2
backend "local" {
3
- path = " azure/${ var . runiac_step } /terraform.tfstate"
3
+ path = " azure/${ var . runiac_step } /terraform.tfstate"
4
4
workspace_dir = " /runiac/tfstate"
5
5
}
6
6
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ terraform {
14
14
source = " hashicorp/azurerm"
15
15
version = " ~> 2.28.0"
16
16
}
17
-
17
+
18
18
pagerduty = {
19
19
source = " PagerDuty/pagerduty"
20
20
version = " ~> 1.8.0"
Original file line number Diff line number Diff line change 1
1
locals {
2
- docker_image = " heroku/nodejs-hello-world:latest"
2
+ docker_image = " heroku/nodejs-hello-world:latest"
3
3
}
4
4
5
- variable pagerduty_token {
6
- type = string
5
+ variable " pagerduty_token" {
6
+ type = string
7
7
}
8
8
9
- variable pretrack-pagerduty-pagerduty_policy_id {
10
- type = string
9
+ variable " pretrack-pagerduty-pagerduty_policy_id" {
10
+ type = string
11
11
}
12
12
13
- variable runiac_account_id {
14
- type = string
13
+ variable " runiac_account_id" {
14
+ type = string
15
15
}
16
16
17
- variable runiac_region {
18
- type = string
17
+ variable " runiac_region" {
18
+ type = string
19
19
}
20
20
21
- variable runiac_environment {
22
- type = string
21
+ variable " runiac_environment" {
22
+ type = string
23
23
}
24
24
25
- variable resource_group {
26
- type = string
27
- default = " rg-runiac-sample"
25
+ variable " resource_group" {
26
+ type = string
27
+ default = " rg-runiac-sample"
28
28
}
29
29
30
- variable runiac_step {
31
- type = string
30
+ variable " runiac_step" {
31
+ type = string
32
32
}
33
33
34
34
variable "runiac_primary_region" {
35
- type = string
35
+ type = string
36
36
}
Original file line number Diff line number Diff line change 1
1
locals {
2
- docker_image = " heroku/nodejs-hello-world"
2
+ docker_image = " heroku/nodejs-hello-world"
3
3
}
4
4
5
- variable runiac_account_id {
6
- type = string
5
+ variable " runiac_account_id" {
6
+ type = string
7
7
}
8
8
9
- variable runiac_region {
10
- type = string
9
+ variable " runiac_region" {
10
+ type = string
11
11
}
12
12
13
- variable runiac_environment {
14
- type = string
13
+ variable " runiac_environment" {
14
+ type = string
15
15
}
16
16
17
- variable resource_group {
18
- type = string
19
- default = " rg-runiac-sample"
17
+ variable " resource_group" {
18
+ type = string
19
+ default = " rg-runiac-sample"
20
20
}
21
21
22
- variable runiac_step {
23
- type = string
22
+ variable " runiac_step" {
23
+ type = string
24
24
}
Original file line number Diff line number Diff line change 1
1
terraform {
2
2
backend "local" {
3
- path = " gcp/${ var . runiac_step } /terraform.tfstate"
3
+ path = " gcp/${ var . runiac_step } /terraform.tfstate"
4
4
workspace_dir = " /runiac/tfstate"
5
5
}
6
6
}
Original file line number Diff line number Diff line change 1
1
# Configure the Azure Provider
2
2
provider "google" {
3
- project = var. gcp_project_id
4
- region = var. runiac_region
3
+ project = var. gcp_project_id
4
+ region = var. runiac_region
5
5
}
6
6
7
7
provider "pagerduty" {
@@ -14,7 +14,7 @@ terraform {
14
14
source = " hashicorp/google"
15
15
version = " ~> 3.51.0"
16
16
}
17
-
17
+
18
18
pagerduty = {
19
19
source = " PagerDuty/pagerduty"
20
20
version = " ~> 1.8.0"
Original file line number Diff line number Diff line change 1
1
locals {
2
- docker_image = " gcr.io/cloudrun/hello"
2
+ docker_image = " gcr.io/cloudrun/hello"
3
3
4
- region = lookup ({
5
- " centralus" : " us-central1"
6
- }, var. runiac_region , " centralus" )
4
+ region = lookup ({
5
+ " centralus" : " us-central1"
6
+ }, var. runiac_region , " centralus" )
7
7
}
8
8
9
- variable pagerduty_token {
10
- type = string
9
+ variable " pagerduty_token" {
10
+ type = string
11
11
}
12
12
13
- variable pretrack-pagerduty-pagerduty_policy_id {
14
- type = string
13
+ variable " pretrack-pagerduty-pagerduty_policy_id" {
14
+ type = string
15
15
}
16
16
17
- variable gcp_project_id {
18
- type = string
17
+ variable " gcp_project_id" {
18
+ type = string
19
19
}
20
20
21
- variable runiac_account_id {
22
- type = string
21
+ variable " runiac_account_id" {
22
+ type = string
23
23
}
24
24
25
- variable runiac_region {
26
- type = string
25
+ variable " runiac_region" {
26
+ type = string
27
27
}
28
28
29
- variable runiac_environment {
30
- type = string
29
+ variable " runiac_environment" {
30
+ type = string
31
31
}
32
32
33
- variable resource_group {
34
- type = string
35
- default = " rg-runiac-sample"
33
+ variable " resource_group" {
34
+ type = string
35
+ default = " rg-runiac-sample"
36
36
}
37
37
38
- variable runiac_step {
39
- type = string
38
+ variable " runiac_step" {
39
+ type = string
40
40
}
Original file line number Diff line number Diff line change 1
1
terraform {
2
2
backend "local" {
3
- path = " ${ var . runiac_step } .terraform.tfstate"
3
+ path = " ${ var . runiac_step } .terraform.tfstate"
4
4
workspace_dir = " /runiac/tfstate"
5
5
}
6
6
}
Original file line number Diff line number Diff line change 1
- resource azurerm_resource_group hub {
1
+ resource " azurerm_resource_group" " hub" {
2
2
name = " ${ local . namespace- } rg-runiac-hub-${ var . runiac_region } "
3
3
location = var. runiac_region
4
4
}
Original file line number Diff line number Diff line change 1
1
terraform {
2
2
backend "local" {
3
- path = " azure/${ var . runiac_step } /terraform.tfstate"
3
+ path = " azure/${ var . runiac_step } /terraform.tfstate"
4
4
workspace_dir = " /runiac/tfstate"
5
5
}
6
6
}
Original file line number Diff line number Diff line change 1
1
locals {
2
- namespace- = var. runiac_namespace == " " ? " " : " ${ var . runiac_namespace } -"
2
+ namespace- = var. runiac_namespace == " " ? " " : " ${ var . runiac_namespace } -"
3
3
}
4
4
5
5
variable "runiac_account_id" {
6
- type = string
6
+ type = string
7
7
}
8
8
9
9
variable "runiac_region" {
10
- type = string
10
+ type = string
11
11
}
12
12
13
13
variable "runiac_environment" {
14
- type = string
14
+ type = string
15
15
}
16
16
17
17
variable "runiac_namespace" {
18
- type = string
18
+ type = string
19
19
}
20
20
21
21
variable "runiac_step" {
22
- type = string
22
+ type = string
23
23
}
24
24
25
25
variable "runiac_primary_region" {
26
- type = string
26
+ type = string
27
27
}
Original file line number Diff line number Diff line change 1
1
locals {
2
- namespace- = var. runiac_namespace == " " ? " " : " ${ var . runiac_namespace } -"
2
+ namespace- = var. runiac_namespace == " " ? " " : " ${ var . runiac_namespace } -"
3
3
}
4
4
5
- variable runiac_account_id {
6
- type = string
5
+ variable " runiac_account_id" {
6
+ type = string
7
7
}
8
8
9
- variable runiac_region {
10
- type = string
9
+ variable " runiac_region" {
10
+ type = string
11
11
}
12
12
13
- variable runiac_environment {
14
- type = string
13
+ variable " runiac_environment" {
14
+ type = string
15
15
}
16
16
17
- variable runiac_namespace {
18
- type = string
17
+ variable " runiac_namespace" {
18
+ type = string
19
19
}
20
20
21
- variable runiac_step {
22
- type = string
21
+ variable " runiac_step" {
22
+ type = string
23
23
}
24
-
25
- variable runiac_step {
26
- type = string
27
- }
28
-
You can’t perform that action at this time.
0 commit comments