diff --git a/moto/applicationautoscaling/models.py b/moto/applicationautoscaling/models.py index d3d2a1c64327..426069f8cd8f 100644 --- a/moto/applicationautoscaling/models.py +++ b/moto/applicationautoscaling/models.py @@ -673,4 +673,6 @@ def update( self.end_time = end_time -applicationautoscaling_backends = BackendDict(ApplicationAutoscalingBackend, "ec2") +applicationautoscaling_backends = BackendDict( + ApplicationAutoscalingBackend, "application-autoscaling" +) diff --git a/moto/elb/models.py b/moto/elb/models.py index 330bcc6b5151..83dc01c3a058 100644 --- a/moto/elb/models.py +++ b/moto/elb/models.py @@ -665,5 +665,4 @@ def detach_load_balancer_from_subnets( return load_balancer.subnets -# Use the same regions as EC2 -elb_backends = BackendDict(ELBBackend, "ec2") +elb_backends = BackendDict(ELBBackend, "elb") diff --git a/moto/elbv2/models.py b/moto/elbv2/models.py index e7081d726e54..7dd4d4d75b8e 100644 --- a/moto/elbv2/models.py +++ b/moto/elbv2/models.py @@ -1979,4 +1979,4 @@ def _get_resource_by_arn(self, arn: str) -> Any: return resource -elbv2_backends = BackendDict(ELBv2Backend, "ec2") +elbv2_backends = BackendDict(ELBv2Backend, "elbv2") diff --git a/moto/iotdata/models.py b/moto/iotdata/models.py index 8f25f13f0181..88046653827b 100644 --- a/moto/iotdata/models.py +++ b/moto/iotdata/models.py @@ -221,4 +221,4 @@ def list_named_shadows_for_thing(self, thing_name: str) -> List[FakeShadow]: ] -iotdata_backends = BackendDict(IoTDataPlaneBackend, "iot") +iotdata_backends = BackendDict(IoTDataPlaneBackend, "iot-data") diff --git a/moto/opsworks/models.py b/moto/opsworks/models.py index 1add8b275e84..a23ade1d36c5 100644 --- a/moto/opsworks/models.py +++ b/moto/opsworks/models.py @@ -630,4 +630,4 @@ def start_instance(self, instance_id: str) -> None: self.instances[instance_id].start() -opsworks_backends = BackendDict(OpsWorksBackend, "ec2") +opsworks_backends = BackendDict(OpsWorksBackend, "opsworks") diff --git a/moto/signer/models.py b/moto/signer/models.py index 2c46b07bd08f..dced5f59e420 100644 --- a/moto/signer/models.py +++ b/moto/signer/models.py @@ -212,6 +212,4 @@ def untag_resource(self, resource_arn: str, tag_keys: List[str]) -> None: self.tagger.untag_resource_using_names(resource_arn, tag_keys) -# Using the lambda-regions -# boto3.Session().get_available_regions("signer") still returns an empty list -signer_backends = BackendDict(SignerBackend, "lambda") +signer_backends = BackendDict(SignerBackend, "signer")