Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit b0b3df6

Browse files
fix: missing partion in ARN to support China or govCloud (#3494)
Fixed the problem of AWS not being able to run correctly in China due to partition errors
1 parent 588ca2d commit b0b3df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: modules/runners/scale-up.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ resource "aws_iam_role_policy" "scale_up" {
9999
sqs_arn = var.sqs_build_queue.arn
100100
github_app_id_arn = var.github_app_parameters.id.arn
101101
github_app_key_base64_arn = var.github_app_parameters.key_base64.arn
102-
ssm_config_path = "arn:aws:ssm:${var.aws_region}:${data.aws_caller_identity.current.account_id}:parameter${var.ssm_paths.root}/${var.ssm_paths.config}"
102+
ssm_config_path = "arn:${var.aws_partition}:ssm:${var.aws_region}:${data.aws_caller_identity.current.account_id}:parameter${var.ssm_paths.root}/${var.ssm_paths.config}"
103103
kms_key_arn = local.kms_key_arn
104104
ami_kms_key_arn = local.ami_kms_key_arn
105105
})

0 commit comments

Comments
 (0)