Skip to content

Commit c33a935

Browse files
authored
CFn: ecr repo uses request account and region (#13156)
1 parent c8f43c9 commit c33a935

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

localstack-core/localstack/services/ecr/resource_providers/aws_ecr_repository.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from typing import TypedDict
77

88
import localstack.services.cloudformation.provider_utils as util
9-
from localstack.constants import AWS_REGION_US_EAST_1, DEFAULT_AWS_ACCOUNT_ID
109
from localstack.services.cloudformation.resource_provider import (
1110
OperationStatus,
1211
ProgressEvent,
@@ -102,7 +101,7 @@ def create(
102101
model.update(
103102
{
104103
"Arn": arns.ecr_repository_arn(
105-
model["RepositoryName"], DEFAULT_AWS_ACCOUNT_ID, AWS_REGION_US_EAST_1
104+
model["RepositoryName"], request.account_id, request.region_name
106105
),
107106
"RepositoryUri": "http://localhost:4566",
108107
"ImageTagMutability": "MUTABLE",

0 commit comments

Comments
 (0)