boundless-angle-56560
06/02/2021, 8:19 PMwitty-candle-66007
06/03/2021, 3:02 PMboundless-angle-56560
06/04/2021, 3:58 PMwitty-candle-66007
06/04/2021, 7:38 PMimport * as aws from "@pulumi/aws";
import * as azure from "@pulumi/azure";
const bucket = new aws.s3.Bucket("mitch-bucket");
const resourceGroup = new azure.core.ResourceGroup("mitch-rg",
{},
{dependsOn: bucket}
)
Azure takes a bit of time to delete a resource group, so when I destroy this stack, I see that the AWS bucket stays around until the Azure resource group is deleted. If I remove the dependsOn
bit, the bucket gets deleted in parallel with the resource group and so the bucket is deleted immediately while the RG takes a bit of time.boundless-angle-56560
06/04/2021, 9:02 PM