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

intuit / Trapheus / 7ecf2541-e446-4544-a68f-78cc8fdb3252

04 Oct 2023 08:10AM UTC coverage: 95.298%. Remained the same
7ecf2541-e446-4544-a68f-78cc8fdb3252

push

circleci

github-actions[bot]
docs: Added README."fr".md translation via https://github.com/dephraiim/translate-readme

527 of 553 relevant lines covered (95.3%)

0.95 hits per line

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

100.0
/src/delete/delete_function.py
1
import os
1✔
2
import boto3
1✔
3
import constants
1✔
4
import custom_exceptions
1✔
5
import utility as util
1✔
6

7
def lambda_delete_dbinstance(event, context):
1✔
8
    """Handles deletion of a RDS db instance"""
9
    region = os.environ['Region']
1✔
10
    rds = boto3.client('rds', region)
1✔
11
    result = {}
1✔
12
    instance_id = event['identifier'] + constants.TEMP_POSTFIX
1✔
13
    try:
1✔
14
        rds.delete_db_instance(
1✔
15
            DBInstanceIdentifier = instance_id,
16
            SkipFinalSnapshot = True
17
        )
18
        result['taskname'] = constants.DELETE
1✔
19
        result['identifier'] = instance_id
1✔
20
        return result
1✔
21
    except Exception as error:
1✔
22
        error_message = util.get_error_message(instance_id, error)
1✔
23
        if constants.RATE_EXCEEDED in str(error):
1✔
24
            raise custom_exceptions.RateExceededException(error_message)
1✔
25
        else:
26
            raise custom_exceptions.DeletionException(error_message)
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc