Problem in destroying the resources: my workflow ...
# general
Problem in destroying the resources: my workflow is like this: 1. create an Fargate Service, and run some containers on it 2. get the apiKey and from container and then pass it to the fusionAuthPostSetup ( which is linked here ) ( THE HOST NAME IS COME AS CONST, not by pulumi.output ) 3. init a fusion auth provider 4. create some resource for fusion auth now, when I want to destroy the resources by
pulumi destroy
code, it is not working, I have tried
to refresh, but still I have these problems:
Copy code
fusionauth:index:FusionAuthTheme (theme-aja-uat-fusionauth):
    error: Preview failed: refreshing urn:pulumi:uat::aws-aja::fusionauth:index/fusionAuthTheme:FusionAuthTheme::theme-aja-uat-fusionauth: 1 error occurred:
        * Get "<>": dial tcp: lookup <|>: no such host

  fusionauth:index:FusionAuthEMail (email-template-uat-fusionauth-email-verification):
    error: Preview failed: refreshing urn:pulumi:uat::aws-aja::fusionauth:index/fusionAuthEMail:FusionAuthEMail::email-template-uat-fusionauth-email-verification: 1 error occurred:
        * Get "<>": dial tcp: lookup <|>: no such host

  fusionauth:index:FusionAuthApplication (application-aja-uat-fusionauth):
    error: Preview failed: refreshing urn:pulumi:uat::aws-aja::fusionauth:index/fusionAuthApplication:FusionAuthApplication::application-aja-uat-fusionauth: 1 error occurred:
        * Get "<>": dial tcp: lookup <|>: no such host

  fusionauth:index:FusionAuthKey (rsa-key-uat-fusionauth-rs256-master):
    error: Preview failed: refreshing urn:pulumi:uat::aws-aja::fusionauth:index/fusionAuthKey:FusionAuthKey::rsa-key-uat-fusionauth-rs256-master: 1 error occurred:
        * Get "<>": dial tcp: lookup <|>: no such host
it seems that the service is deleted before the fusionAuth resources
what can I do now ?
Why is not being found? Is it one of the destroyed resources? Or is the network traffic being blocked, maybe because you've destroy a security group or something?
yes, it was a resource that is destroyed , I have added DNS of thet wuth pulumi cloudflare
If the resource has already been destroyed, why is anything trying to connect to it? I wonder if there's a provider in your code that's allowing things to be deleted in the wrong order.
Anyway, to solve the problem, you need to • identify which resources Pulumi cannot delete, • kick them out of state via
pulumi state delete
, • delete them manually, and • destroy your stack.
It seems likely that if you want to deploy this project again, you'll need to add dependencies manually that prevent the important resource from being destroyed until after all the resources that depend on it have been destroyed.