• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

localstack / localstack / 22709357475

05 Mar 2026 08:35AM UTC coverage: 59.732% (-27.2%) from 86.974%
22709357475

Pull #13880

github

web-flow
Merge 28fcab93c into 710618057
Pull Request #13880: Firehose: Replace TaggingService

12 of 12 new or added lines in 2 files covered. (100.0%)

20464 existing lines in 510 files now uncovered.

45290 of 75822 relevant lines covered (59.73%)

0.6 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

67.74
/localstack-core/localstack/services/ec2/exceptions.py
1
from localstack.aws.api import CommonServiceException
1✔
2

3

4
class InternalError(CommonServiceException):
1✔
5
    def __init__(self, message):
1✔
6
        super().__init__(
×
7
            code="InternalError",
8
            message=message,
9
        )
10

11

12
class IncorrectInstanceStateError(CommonServiceException):
1✔
13
    def __init__(self, instance_id):
1✔
14
        super().__init__(
×
15
            code="IncorrectInstanceState",
16
            message=f"The instance '{instance_id}' is not in a state from which it can be started",
17
        )
18

19

20
class InvalidAMIIdError(CommonServiceException):
1✔
21
    def __init__(self, ami_id):
1✔
22
        super().__init__(
×
23
            code="InvalidAMIID.NotFound", message=f"The image id '{ami_id}' does not exist"
24
        )
25

26

27
class InvalidInstanceIdError(CommonServiceException):
1✔
28
    def __init__(self, instance_id):
1✔
29
        super().__init__(
×
30
            code="InvalidInstanceID.NotFound",
31
            message=f"The instance ID '{instance_id}' does not exist",
32
        )
33

34

35
class MissingParameterError(CommonServiceException):
1✔
36
    def __init__(self, parameter):
1✔
UNCOV
37
        super().__init__(
×
38
            code="MissingParameter",
39
            message=f"The request must contain the parameter {parameter}",
40
        )
41

42

43
class InvalidLaunchTemplateNameError(CommonServiceException):
1✔
44
    def __init__(self):
1✔
UNCOV
45
        super().__init__(
×
46
            code="InvalidLaunchTemplateName.MalformedException",
47
            message="A launch template name must be between 3 and 128 characters, and may contain letters, numbers, and the following characters: - ( ) . / _.'",
48
        )
49

50

51
class InvalidLaunchTemplateIdError(CommonServiceException):
1✔
52
    def __init__(self):
1✔
UNCOV
53
        super().__init__(
×
54
            code="InvalidLaunchTemplateId.VersionNotFound",
55
            message="Could not find launch template version",
56
        )
57

58

59
class InvalidSubnetDuplicateCustomIdError(CommonServiceException):
1✔
60
    def __init__(self, custom_id):
1✔
UNCOV
61
        super().__init__(
×
62
            code="InvalidSubnet.DuplicateCustomId",
63
            message=f"Subnet with custom id '{custom_id}' already exists",
64
        )
65

66

67
class InvalidSecurityGroupDuplicateCustomIdError(CommonServiceException):
1✔
68
    def __init__(self, custom_id):
1✔
UNCOV
69
        super().__init__(
×
70
            code="InvalidSecurityGroupId.DuplicateCustomId",
71
            message=f"Security group with custom id '{custom_id}' already exists",
72
        )
73

74

75
class InvalidVpcDuplicateCustomIdError(CommonServiceException):
1✔
76
    def __init__(self, custom_id):
1✔
UNCOV
77
        super().__init__(
×
78
            code="InvalidVpc.DuplicateCustomId",
79
            message=f"VPC with custom id '{custom_id}' already exists",
80
        )
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc