-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from devopshobbies/dev
feat(terraform-templates): implementing aws-alb route
- Loading branch information
Showing
4 changed files
with
31 additions
and
34 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,32 +1,2 @@ | ||
|
||
argocd_instance_info = { | ||
server_addr = "http://argocd.local" | ||
username = "username" | ||
password = "password" | ||
insecure = true | ||
} | ||
|
||
|
||
repository_create = true | ||
argocd_repository_info = { | ||
repo = "https://your_repo.git" | ||
username = "username" | ||
password = "token" | ||
} | ||
|
||
|
||
application_create = false | ||
argocd_application = { | ||
name = "myapp" | ||
destination_server = "https://kubernetes.default.svc" | ||
destination_namespace = "default" | ||
source_repo_url = "https://your_repo.git" | ||
source_path = "myapp/manifests" | ||
source_target_revision = "master" | ||
} | ||
|
||
|
||
argocd_sync_options = ["CreateNamespace=true", "ApplyOutOfSyncOnly=true", "FailOnSharedResource=true"] | ||
|
||
auto_prune = false | ||
self_heal = false | ||
alb_create = true | ||
create_security_group = true |
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_alb(input) -> str: | ||
|
||
aws_alb_create_resources = 'true' if input.alb_resources else 'false' | ||
aws_alb_create_security_group = 'true' if input.security_group else 'false' | ||
|
||
tfvars_file = f"""alb_create = {aws_alb_create_resources} | ||
create_security_group = {aws_alb_create_security_group} | ||
""" | ||
return tfvars_file |