Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: the resource azurerm_mssql_elastic_pool does not exists on TF #305

Open
qjoseph opened this issue Jun 23, 2022 · 0 comments
Open
Assignees
Labels
Type: Bug Something isn't working

Comments

@qjoseph
Copy link

qjoseph commented Jun 23, 2022

General information:
Bug Terracognita cycloid -

  • Operating System:
  • Terracognita version / tag: master / 3cd4549
  • Did you build Terracognita from sources or did you use the Docker image: from source

Describe the bug:

panic: the resource azurerm_mssql_elastic_pool does not exists on TF

The name of the terraform resource seems to be different : azurerm_mssql_elastic_pool vs azurerm_mssql_elasticpool

When i launch :
terracognita azurerm --tfstate terraform.tfstate --client-id "" --client-secret "" --resource-group-name "" --subscription-id "" --tenant-id "***"

Logs :

Starting Terracognita with version
Importing with filters:
        Tags:    [],
        Include: [],
        Exclude: [],
        Targets: [],
Importing azurerm_resource_group [1/1] Done!
Importing azurerm_network_interface [2/2] Done!
Importing azurerm_container_registry [2/2] Done!
Importing azurerm_storage_account [20/20] Done!
panic: the resource azurerm_mssql_elastic_pool does not exists on TF

goroutine 1 [running]:
github.com/cycloidio/terracognita/provider.(*resource).TFResource(0xc001b0fef0)
        C:/Users/qjoseph/source/repos/side/terracognita/provider/resource.go:177 +0xf9
github.com/cycloidio/terracognita/provider.(*resource).Data(0xc001b0fef0)
        C:/Users/qjoseph/source/repos/side/terracognita/provider/resource.go:189 +0x25
github.com/cycloidio/terracognita/azurerm.mssqlServers({0x11e05880?, 0xc000070230?}, 0xc00007d680?, 0x0?, {0x10ccb1fa, 0x1a}, 0xc002b2d530?)
        C:/Users/qjoseph/source/repos/side/terracognita/azurerm/resources.go:1572 +0x1a8
github.com/cycloidio/terracognita/azurerm.cacheMsSQLServers({0x11e05880, 0xc000070230}, 0xc00190c050, 0x8e653b?, {0x10ccb1fa, 0x1a}, 0x0?)
        C:/Users/qjoseph/source/repos/side/terracognita/azurerm/cache.go:521 +0x149
github.com/cycloidio/terracognita/azurerm.getMsSQLServers({0x11e05880?, 0xc000070230?}, 0xc0008f5680?, 0xc001d86400?, {0x10ccb1fa?, 0x822?}, 0x11dc6ad0?)
        C:/Users/qjoseph/source/repos/side/terracognita/azurerm/cache.go:535 +0x45
github.com/cycloidio/terracognita/azurerm.mssqlElasticPools({0x11e05880, 0xc000070230}, 0x49?, 0xc0016fed20?, {0x10ccb1fa, 0x1a}, 0x909505?)
        C:/Users/qjoseph/source/repos/side/terracognita/azurerm/resources.go:1581 +0x5b
github.com/cycloidio/terracognita/azurerm.(*azurerm).Resources(0xc00190c050, {0x11e05880, 0xc000070230}, {0x10ccb1fa, 0x1a}, 0x3?)
        C:/Users/qjoseph/source/repos/side/terracognita/azurerm/provider.go:106 +0x228
github.com/cycloidio/terracognita/provider.Import({0x11e05880, 0xc000070230}, {0x11e1d368, 0xc00190c050}, {0x11e06ed0, 0xc00190c0a0?}, {0x11e06f08?, 0xc000c7a7e0}, 0xc00190e000, {0x11def280, ...})
        C:/Users/qjoseph/source/repos/side/terracognita/provider/import.go:91 +0xba3
github.com/cycloidio/terracognita/cmd.glob..func5(0x1b4324a0?, {0xc0007e1180?, 0xe?, 0xe?})
        C:/Users/qjoseph/source/repos/side/terracognita/cmd/azurerm.go:95 +0x846
github.com/spf13/cobra.(*Command).execute(0x1b4324a0, {0xc0007e10a0, 0xe, 0xe})
        C:/Users/qjoseph/go/pkg/mod/github.com/spf13/[email protected]/command.go:852 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0x1b431fa0)
        C:/Users/qjoseph/go/pkg/mod/github.com/spf13/[email protected]/command.go:960 +0x39c
github.com/spf13/cobra.(*Command).Execute(...)
        C:/Users/qjoseph/go/pkg/mod/github.com/spf13/[email protected]/command.go:897
main.main()
        C:/Users/qjoseph/source/repos/side/terracognita/main.go:11 +0x25
@qjoseph qjoseph added the Type: Bug Something isn't working label Jun 23, 2022
@marcoldp marcoldp self-assigned this Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants