Skip to content

Commit

Permalink
chore: consolidate examples
Browse files Browse the repository at this point in the history
Signed-off-by: nitrocode <[email protected]>
  • Loading branch information
nitrocode committed Aug 23, 2024
1 parent f9585e0 commit d0b27de
Show file tree
Hide file tree
Showing 14 changed files with 69 additions and 166 deletions.
1 change: 1 addition & 0 deletions examples/complete/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Example deployment
8 changes: 8 additions & 0 deletions examples/complete/main.tf
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
}
9 changes: 9 additions & 0 deletions examples/complete/providers.tf
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" {}
29 changes: 29 additions & 0 deletions examples/complete/variables.tf
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 = {}
}
22 changes: 22 additions & 0 deletions examples/complete/versions.tf
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"
}
}
}
1 change: 0 additions & 1 deletion examples/nonprod/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions examples/nonprod/main.tf

This file was deleted.

38 changes: 0 additions & 38 deletions examples/nonprod/terraform.tf

This file was deleted.

1 change: 0 additions & 1 deletion examples/organizations/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions examples/organizations/main.tf

This file was deleted.

60 changes: 0 additions & 60 deletions examples/organizations/terraform.tf

This file was deleted.

1 change: 0 additions & 1 deletion examples/prod/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions examples/prod/main.tf

This file was deleted.

38 changes: 0 additions & 38 deletions examples/prod/terraform.tf

This file was deleted.

0 comments on commit d0b27de

Please sign in to comment.