-
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.
Signed-off-by: nitrocode <[email protected]>
- Loading branch information
Showing
14 changed files
with
69 additions
and
166 deletions.
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 @@ | ||
# Example deployment |
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,8 @@ | ||
module "domain_protect" { | ||
source = "../../" | ||
|
||
scan_schedule = var.scan_schedule | ||
update_schedule = var.update_schedule | ||
ip_scan_schedule = var.ip_scan_schedule | ||
takeover = var.takeover | ||
} |
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,9 @@ | ||
provider "aws" { | ||
default_tags { | ||
tags = var.tags | ||
} | ||
} | ||
|
||
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
variable "scan_schedule" { | ||
description = "schedule for running domain-protect scans, e.g. 24 hours" | ||
default = "24 hours" | ||
type = string | ||
} | ||
|
||
variable "update_schedule" { | ||
description = "schedule for running domain-protect update function, e.g. 24 hours" | ||
default = "24 hours" | ||
type = string | ||
} | ||
|
||
variable "ip_scan_schedule" { | ||
description = "schedule for IP address scanning used in A record checks" | ||
default = "24 hours" | ||
type = string | ||
} | ||
|
||
variable "takeover" { | ||
description = "Create supported resource types to prevent malicious subdomain takeover" | ||
default = false | ||
type = bool | ||
} | ||
|
||
variable "tags" { | ||
description = "Tags to apply to resources" | ||
type = map(string) | ||
default = {} | ||
} |
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,22 @@ | ||
terraform { | ||
required_version = "> 1" | ||
|
||
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" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.