Skip to content

Commit

Permalink
added documentation on --maximum-ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanholsteijn committed Jun 4, 2022
1 parent 839e509 commit cf05f36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ zonefile-migrate to-terraform [OPTIONS] [SRC]... DST
# Options
```
to-cloudformation
--sceptre-group DIRECTORY to write sceptre stack group configuration
--sceptre-group DIRECTORY to write sceptre stack group configuration
--maximum-ttl INTEGER maximum TTL of domain name records
to-terraform
--provider PROVIDER to generate for
--maximum-ttl INTEGER maximum TTL of domain name records
--provider PROVIDER to generate for
```

# Description
Expand Down
2 changes: 2 additions & 0 deletions src/zonefile_migrate/to_cloudformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ def command(sceptre_group, maximum_ttl, src, dst):
The zonefiles must contain a $ORIGIN and $TTL statement. If the SRC points to a directory
all files which contain one of these statements will be converted. If a $ORIGIN is missing,
the name of the file will be used as the domain name.
You may override the maximum TTL of records through the option --maximum-ttl
"""
if sceptre_group:
sceptre_group = Path(sceptre_group)
Expand Down
2 changes: 2 additions & 0 deletions src/zonefile_migrate/to_terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ def command(provider, maximum_ttl, src, dst):
The zonefiles must contain a $ORIGIN and $TTL statement. If the SRC points to a directory
all files which contain one of these statements will be converted. If a $ORIGIN is missing,
the name of the file will be used as the domain name.
You may override the maximum TTL of records through the option --maximum-ttl
"""
tf_module_template = Path(__file__).parent.joinpath(
f"terraform-modules/{provider}-managed-zone.tf"
Expand Down

0 comments on commit cf05f36

Please sign in to comment.