Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting via cloudformation fails #406

Open
WhyNotHugo opened this issue Dec 10, 2020 · 5 comments
Open

Deleting via cloudformation fails #406

WhyNotHugo opened this issue Dec 10, 2020 · 5 comments

Comments

@WhyNotHugo
Copy link

WhyNotHugo commented Dec 10, 2020

When deleting a deployment via cloudformation, I always get this error:

image

I have to go to the AWS console > API Gateway > Custom domain names, look for the mapping, and delete the path mappings manually.

The full error details behind this says:

Deleting RestApi jfzs2ks7ke failed. Please remove all base path mappings related to the RestApi in your domains. (Service: AmazonApiGatewayV2; Status Code: 400; Error Code: BadRequestException; Request ID: d95d1ad5-b0f1-4a02-ab18-655ee4ab03e3; Proxy: null)

I think that the base path mappings are not registered as being owned by this deployment in CF, hence, it does not try to delete it.

@daveykane
Copy link

I'm also getting this same issue consistently

@a0s
Copy link

a0s commented Oct 6, 2021

+1 for this. Any suggetions?

@SimonSongCA
Copy link

Same. Any suggestions? I was ignoring this info but deployed once again, but I got another item with the same Api name in CF... Awkward...

@michal1106
Copy link

similar
in our case - everything works fine when in CloudFormation the ApiGatewayRestApi is on UPDATE_IN_PROGRESS
but when ApiGatewayRestApi starts with DELETE_IN_PROGRESS, we get CREATE_FAILED and our CloudFormation fails and rollback
It seems that in the next try it will create a new API Gateway and the old one would be left empty
BUT the Custom Domain will be still mapped to the old empty one

@bneigher
Copy link

bneigher commented Aug 4, 2023

yea this plugin appears to cause some issues with Deletion:

Please remove all base path mappings related to the RestApi in your domain

is there something about this plugin that is not managing the api mappings with CF? I don't see the creation events in the stack, only the deletion (on delete)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants