gifted-gigabyte-53859
12/07/2023, 5:04 AMaws:apigateway:Deployment (api_admin_secondDeployment):
error: deleting urn:pulumi:demo::my-app::aws:apigateway/deployment:Deployment::api_admin_secondDeployment: 1 error occurred:
* deleting API Gateway Stage (demo): BadRequestException: Deleting stage demo failed. Please remove all base path mappings related to the stage in your domains: my-domain.com
gifted-gigabyte-53859
12/07/2023, 5:13 AMdry-keyboard-94795
12/07/2023, 10:13 AMgifted-gigabyte-53859
12/11/2023, 3:32 AMgifted-gigabyte-53859
12/12/2023, 9:25 AMapiCustomMapping_admin:
type: aws:apigatewayv2:ApiMapping
properties:
apiId: ${api_admin.api.id}
I also added
options:
dependsOn:
- ${api_admin.stage}
- ${api_admin.api}
- ${api_admin_secondDeployment}
But still getting
* deleting API Gateway Stage (develop): BadRequestException: Deleting stage develop failed. Please remove all base path mappings related to the stage in your domains: <http://admin.develop.mydomain.com|admin.develop.mydomain.com>
gifted-gigabyte-53859
12/12/2023, 9:28 AMgifted-gigabyte-53859
12/12/2023, 10:08 AMpulumi up
again, I get this error
error: resource option dependsOn value must be a list of resource, not an output
on Pulumi.yaml line 437:
437: - ${api_admin.stage}
438: - ${api_admin.api}
439: - ${api_admin_secondDeployment}
So I guess that the config wasn't taking effect at alldry-keyboard-94795
12/12/2023, 10:52 AMapi.id
in the mapping properties should be a dependency