pulumi / pulumi-ai

222 stars 15 forks source link

Duplicate resource URN even when Stack is empty #80

Closed Erdem-Sevilmis closed 3 months ago

Erdem-Sevilmis commented 3 months ago

What happened?

My stack worked fine until I destroyed it and wanted to create a new one. I've done this before with no issues, but since the last time, I'm encountering the following error:

error: Duplicate resource URN 'urn:pulumi:dev::<ProjName>::pulumi:pulumi:Stack::<ProjName>-dev'; try giving it a unique name

Now, here's the funny part: I have emptied my stack completely, yet this issue persists. I don't know if this is an issue on my side or if it's a bug. I haven't made any changes related to the CLI, and I'll also share my .yaml files with you, which have also not been touched.

Example

Pulumi.dev.yaml

config:
  google-native:project: CL-Link
  azure-native:location: germany
  aws-native:region: eu-central-1

Pulumi.dev.yaml

name: <ProjName>
runtime: dotnet
description: An Iac program using multiple cloud providers with the help of pulumi & Spectre.Console.
config:
  pulumi:tags:
    value:
      pulumi:template: ""

Output of pulumi about

CLI Version 3.109.0 Go Version go1.22.0 Go Compiler gc

Plugins NAME VERSION aws 6.27.0 azure-native 2.33.0 dotnet unknown gcp 7.14.0

Host OS Microsoft Windows 10 Pro Version 10.0.19045 Build 19045 Arch x86_64

This project is written in dotnet: executable='C:\Program Files\dotnet\dotnet.exe' version='7.0.203'

Backend Name pulumi.com URL https://app.pulumi.com/Slown4128 User Slown4128 Organizations Slown4128 Token type personal

Dependencies: NAME VERSION Pulumi 3.60.0 Pulumi.Aws 6.27.0 Pulumi.AzureNative 2.33.0 Pulumi.Gcp 7.14.0

Pulumi locates its logs in C:\Users\\AppData\Local\Temp by default

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Erdem-Sevilmis commented 3 months ago

Has nothing to do with AI moved to here