-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(terraform-templates): implementing aws-route53 route
- Loading branch information
1 parent
907ca70
commit f9233b3
Showing
4 changed files
with
39 additions
and
6 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
create = true | ||
create_queue_policy = false | ||
create_dlq = false | ||
create_dlq_redrive_allow_policy = true | ||
create_dlq_queue_policy = false | ||
create_zone = true | ||
create_record = true | ||
create_delegation_set = false | ||
create_resolver_rule_association = false |
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
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
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,13 @@ | ||
def IaC_template_generator_route53(input) -> str: | ||
|
||
aws_route53_create_zone = 'true' if input.zone else 'false' | ||
aws_route53_create_record = 'true' if input.record else 'false' | ||
aws_route53_create_delegation_set = 'true' if input.delegation_set else 'false' | ||
aws_route53_create_resolver_rule_association = 'true' if input.resolver_rule_association else 'false' | ||
|
||
tfvars_file = f"""create_zone = {aws_route53_create_zone} | ||
create_record = {aws_route53_create_record} | ||
create_delegation_set = {aws_route53_create_delegation_set} | ||
create_resolver_rule_association = {aws_route53_create_resolver_rule_association} | ||
""" | ||
return tfvars_file |