Skip to content

Instantly share code, notes, and snippets.

@khaliqgant
Created March 29, 2022 11:51
Show Gist options
  • Save khaliqgant/f9cd74dafc8186f6b5bf260a6ce8c618 to your computer and use it in GitHub Desktop.
Save khaliqgant/f9cd74dafc8186f6b5bf260a6ce8c618 to your computer and use it in GitHub Desktop.
[Terraform Import] Import Module #terraform #infrastructure
terraform import -var-file="../prod.tfvars" 'module.ip-address.azurerm_public_ip.static_ip' /subscriptions/6ba1-4e5d-a23e-0e4d3a59208d/resourceGroups/MC_h-network-resources_h-cluster_northeurope/providers/Microsoft.Network/publicIPAddresses/h-ip
terraform import -var-file="../prod.tfvars" 'module.key-vault.azurerm_key_vault.main' /subscriptions/6ba1-4e5d-a23e-0e4d3a59208d/resourceGroups/h-resources/providers/Microsoft.KeyVault/vaults/h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment