https://pulumi.com logo
#aws
Title
# aws
h

handsome-truck-95168

01/22/2020, 10:38 PM
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

white-balloon-205

01/23/2020, 5:44 PM
Yes - this is exactly the use case for
deleteBeforeReplace
.
2 Views