aws / aws/chalice

[Bug] Delete only api mapping when sharing custom domain

Open
#1,898 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

## Issue

**Setup :** There are multiple chalice applications pointing to the same base URL and different `url_prefix`.

**Triggering the error :** Invoke `chalice delete` on one of the applications, it deletes all of the mappings shared by other chalice apps/lambdas and deletes the custom domain in API Gateway.

## Expected Behaviour

Delete the custom domain from gateway only if it is only API Mapping associated with the custom domain. Otherwise, delete only the API mapping associated with itself.

Contributor guide

Open the contributing guide

Research direction

Start with the chalice delete command and trace the API Gateway custom-domain and API-mapping cleanup path. Reproduce the setup with multiple Chalice applications sharing a base URL, then verify that deleting one application removes only its API mapping and removes the custom domain only when no mappings remain.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
api, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.