The `aws.apigateway.BasePathMapping` resource does...
# aws
h
The
aws.apigateway.BasePathMapping
resource doesn't seem to update correctly when
basePath
is empty. Probably this is due to AWS having a terrible API. In any case, trying to update a stack w/ one of these gives the error "error: Error creating Gateway base path mapping: ConflictException: Only one base path mapping is allowed if the base path is empty." I change the pulumi name of the resource (to force a delete & re-create), and added a basePath, but got the same error. Destroying the stack and re-deploying fixed the problem, and I learned to never use a 'blank' base path mapping again.
Just read about
deleteBeforeReplace
and I'm wondering if that would have let me update the base path mapping (https://www.pulumi.com/docs/intro/concepts/programming-model/#deletebeforereplace)
w
Yes - this is exactly the use case for
deleteBeforeReplace
.