-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
continue refactor on variables, refactor ecs and mesh implementation
- Loading branch information
Showing
39 changed files
with
288 additions
and
642 deletions.
There are no files selected for viewing
File renamed without changes.
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
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,5 @@ | ||
#!/bin/bash | ||
|
||
terraform force-unlock $1 | ||
|
||
aws ecr get-login-password | docker login --username AWS --password-stdin 339712971032.dkr.ecr.us-east-1.amazonaws.com |
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 @@ | ||
locals { | ||
policy = var.lifecycle_policy == "" ? file("${path.module}/ecr-lifecycle-policy.json") : var.lifecycle_policy | ||
repo_name = var.ecr_repo_names | ||
tags = { | ||
Automation = "Terraform" | ||
} | ||
# NOTE: The version may need to be changed with updates | ||
phdi_version = "v1.4.4" | ||
} |
File renamed without changes.
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,42 @@ | ||
variable "ecr_repo_names" { | ||
type = set(string) | ||
# default = [ | ||
# "fhir-converter", | ||
# "ingestion", | ||
# "ecr-viewer", | ||
# "validation", | ||
# "orchestration" | ||
# ] | ||
} | ||
|
||
variable "ecs_task_execution_role" { | ||
type = string | ||
description = "ECS Task Execution Role" | ||
} | ||
|
||
variable "ecs_cluster_name" { | ||
type = string | ||
description = "ECS Cluster Name" | ||
} | ||
|
||
variable "lifecycle_policy" { | ||
type = string | ||
description = "ECR repository lifecycle policy document. Used to override the default policy." | ||
# default = "" | ||
} | ||
|
||
variable "tags" { | ||
type = map(any) | ||
description = "Additional tags to apply." | ||
# default = {} | ||
} | ||
|
||
variable "aws_caller_identity" { | ||
type = string | ||
description = "AWS Caller Identity" | ||
} | ||
|
||
variable "region" { | ||
type = string | ||
description = "AWS region" | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resource "aws_ecr_repository" "repo" { | ||
for_each = var.ecr_repos | ||
for_each = var.ecr_repo_names | ||
name = each.key | ||
} |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.