Skip to content

Commit 5278363

Browse files
authored
Merge pull request #34 from terraform-do-modules/feat/day-07-hardening
feat: Day 07 hardening baseline for defaults + examples
2 parents 2c00cc6 + c0fdb76 commit 5278363

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Module Test Harness
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
basic-example:
12+
uses: clouddrove/github-shared-workflows/.github/workflows/stf-checks.yml@bd958ead76ac7c72acf4976c244c47eef89c84f7
13+
with:
14+
provider: digitalocean
15+
working_directory: ./_examples/basic/
16+
17+
complete-example:
18+
uses: clouddrove/github-shared-workflows/.github/workflows/stf-checks.yml@bd958ead76ac7c72acf4976c244c47eef89c84f7
19+
with:
20+
provider: digitalocean
21+
working_directory: ./_examples/complete/

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ variable "ttl" {
1717
type = number
1818
default = 3600
1919
description = "The time to live for the CDN Endpoint, in seconds. Default is 3600 seconds."
20+
21+
validation {
22+
condition = var.ttl >= 60 && var.ttl <= 604800
23+
error_message = "ttl must be between 60 and 604800 seconds."
24+
}
2025
}
2126

2227
variable "certificate_name" {

0 commit comments

Comments
 (0)