-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add providers and schedules to nonprod, prod, and org examples
Added HashiCorp providers (aws, archive, null, random) configurations to nonprod, prod, and organizations terraform files. Updated module configurations for domain_protect with scan and update schedules. Set IAM role for domain_protect in organizations example and changed default value of takeover variable to false.
- Loading branch information
Showing
6 changed files
with
155 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
terraform { | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 5.12.0" | ||
} | ||
|
||
archive = { | ||
source = "hashicorp/archive" | ||
version = "~> 2.2.0" | ||
} | ||
|
||
null = { | ||
source = "hashicorp/null" | ||
version = "~> 3.1.0" | ||
} | ||
|
||
random = { | ||
source = "hashicorp/random" | ||
version = "~> 3.1.0" | ||
} | ||
} | ||
} | ||
|
||
provider "aws" { | ||
default_tags { | ||
tags = { | ||
"service" = "domain-protect" | ||
"owner" = "security" | ||
"environment" = "nonprod" | ||
"managed_by" = "terraform" | ||
} | ||
} | ||
} | ||
|
||
provider "archive" {} | ||
provider "null" {} | ||
provider "random" {} |
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,15 @@ | ||
module "domain_protect" { | ||
source = "../../" | ||
|
||
scan_schedule = "60 minutes" | ||
update_schedule = "3 hours" | ||
ip_scan_schedule = "24 hours" | ||
|
||
takeover = true | ||
} | ||
|
||
resource "aws_iam_role" "domain_protect_org_role" { | ||
provider = aws.org | ||
|
||
assume_role_policy = "UPDATE FROM DOCS" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
terraform { | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 5.12.0" | ||
} | ||
|
||
archive = { | ||
source = "hashicorp/archive" | ||
version = "~> 2.2.0" | ||
} | ||
|
||
null = { | ||
source = "hashicorp/null" | ||
version = "~> 3.1.0" | ||
} | ||
|
||
random = { | ||
source = "hashicorp/random" | ||
version = "~> 3.1.0" | ||
} | ||
} | ||
} | ||
|
||
provider "aws" { | ||
|
||
assume_role { | ||
role_arn = "arn:aws:iam::1234567890:role/OrgRole" | ||
} | ||
|
||
default_tags { | ||
tags = { | ||
"service" = "domain-protect" | ||
"owner" = "security" | ||
"environment" = "nonprod" | ||
"managed_by" = "terraform" | ||
} | ||
} | ||
} | ||
|
||
provider "aws" { | ||
alias = "org" | ||
|
||
assume_role { | ||
role_arn = "arn:aws:iam::1234567890:role/OrgRole" | ||
} | ||
|
||
default_tags { | ||
tags = { | ||
"service" = "domain-protect" | ||
"owner" = "security" | ||
"environment" = "prod" | ||
"managed_by" = "terraform" | ||
} | ||
} | ||
} | ||
|
||
provider "archive" {} | ||
provider "null" {} | ||
provider "random" {} |
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,9 @@ | ||
module "domain_protect" { | ||
source = "../../" | ||
|
||
scan_schedule = "60 minutes" | ||
update_schedule = "3 hours" | ||
ip_scan_schedule = "24 hours" | ||
|
||
takeover = true | ||
} |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
terraform { | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 5.12.0" | ||
} | ||
|
||
archive = { | ||
source = "hashicorp/archive" | ||
version = "~> 2.2.0" | ||
} | ||
|
||
null = { | ||
source = "hashicorp/null" | ||
version = "~> 3.1.0" | ||
} | ||
|
||
random = { | ||
source = "hashicorp/random" | ||
version = "~> 3.1.0" | ||
} | ||
} | ||
} | ||
|
||
provider "aws" { | ||
default_tags { | ||
tags = { | ||
"service" = "domain-protect" | ||
"owner" = "security" | ||
"environment" = "prod" | ||
"managed_by" = "terraform" | ||
} | ||
} | ||
} | ||
|
||
provider "archive" {} | ||
provider "null" {} | ||
provider "random" {} |
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