Skip to content

Commit 12d5525

Browse files
authored
Merge pull request #19 from elektron9/feature/max-ttl-604800
allow DNS records to have a maximum TTL of 604800s (1 week)
2 parents d88adac + 1b53eb3 commit 12d5525

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/resources/record.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ resource "aws_cloudfront_distribution" "s3_distribution" {
164164
### Optional
165165

166166
- `priority` (Number) Record priority, required for MX (lower is higher)
167-
- `ttl` (Number) Record time-to-live, >= 600s < 86400s, default 3600 seconds (1 hour)
167+
- `ttl` (Number) Record time-to-live, >= 600s <= 604800s (1 week), default 3600 seconds (1 hour)
168168

169169
## Import
170170

internal/provider/record.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ func (r *RecordResource) Schema(ctx context.Context, req resource.SchemaRequest,
124124
Required: true,
125125
},
126126
"ttl": schema.Int64Attribute{
127-
MarkdownDescription: "Record time-to-live, >= 600s < 86400s, default 3600 seconds (1 hour)",
127+
MarkdownDescription: "Record time-to-live, >= 600s <= 604800s (1 week), default 3600 seconds (1 hour)",
128128
Optional: true,
129129
Computed: true, // must be computed to use a default
130130
Default: int64default.StaticInt64(3600),
131131
Validators: []validator.Int64{
132132
int64validator.AtLeast(600),
133-
int64validator.AtMost(86400),
133+
int64validator.AtMost(604800),
134134
},
135135
},
136136
"priority": schema.Int64Attribute{

0 commit comments

Comments
 (0)