Skip to content

Commit 4e51d21

Browse files
committed
fix: configurable region
1 parent b74f568 commit 4e51d21

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

tf-module/ds_img_to_ecr/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
output "ds_upstream_image" {
2-
value = "${aws_ecr_pull_through_cache_rule.ds_upstream_image.registry_id}.dkr.ecr.us-west-2.amazonaws.com/${aws_ecr_pull_through_cache_rule.ds_upstream_image.id}/${var.uds_repo_name}:{ImageTag}"
2+
value = "${aws_ecr_pull_through_cache_rule.ds_upstream_image.registry_id}.dkr.ecr.${var.aws_region}.amazonaws.com/${aws_ecr_pull_through_cache_rule.ds_upstream_image.id}/${var.uds_repo_name}:{ImageTag}"
33
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
prefix = "uds-sbx"
22
ecr_github_username = "abcd"
33
ecr_github_token = "abcd"
4+
aws_region = "us-west-2"

tf-module/ds_img_to_ecr/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ variable "ecr_github_token" {
1212
description = "Github Fine-grained personal access token for ECR Pull Through that has access to https://github.com/unity-sds/unity-data-services"
1313
}
1414

15+
variable "aws_region" {
16+
type = string
17+
default = "us-west-2"
18+
}
19+
1520
variable "uds_repo_name" {
1621
type = string
1722
default = "unity-sds/unity-data-services"

0 commit comments

Comments
 (0)