-
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-key-pair route
- Loading branch information
1 parent
f9233b3
commit 13f9356
Showing
4 changed files
with
31 additions
and
5 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,4 +1,2 @@ | ||
create_zone = true | ||
create_record = true | ||
create_delegation_set = false | ||
create_resolver_rule_association = false | ||
create = true | ||
create_private_key = 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,9 @@ | ||
def IaC_template_generator_key_pair(input) -> str: | ||
|
||
aws_key_pair_create = 'true' if input.key_pair else 'false' | ||
aws_key_pair_create_private_key = 'true' if input.private_key else 'false' | ||
|
||
tfvars_file = f"""create = {aws_key_pair_create} | ||
create_private_key = {aws_key_pair_create_private_key} | ||
""" | ||
return tfvars_file |