You cannot force delete MWAA environment that has Updating or Creating statuses. You will get a warning like Environments with … status must complete the previous operation before initiating a new operation
.
The reason of a stuck environment update operation is an improper configuration. You have to fix it.
When en environment is created or updated, MWAA service polls the environment to validate its configuration, e.g. web UI accessibility. Check that your networking is configured properly, following troubleshooting and MWAA networking guides.
In my case the reason was in improper gateways configuration for MWAA environment with public access to web UI: to troubleshoot I have updated public subnet route tables to route 0.0.0.0/0
to an internet gateway instead of NAT gateway (while private subnets should be routed to NAT gateway).
I suggest you to use official CloudFormation template or this Terraform module to properly configure all the resources.
Another way is to wait for timeout of an operation (several hours). However, it will just give you a link to the troubleshooting doc. In case you delete and then recreate the environment with improper configuration again, the operation will be stuck again.