% terraform init Initializing the backend... Initializing modules... - vsphere_namespace in ../modules/vsphere-namespace Initializing provider plugins... - Reusing previous version of vmware/vsphere from the dependency lock file - Reusing previous version of magodo/restful from the dependency lock file - Installing vmware/vsphere v2.17.1... - Installed vmware/vsphere v2.17.1 (signed by a HashiCorp partner, key ID ED13BE650293896B) - Installing magodo/restful v0.25.2... - Installed magodo/restful v0.25.2 (self-signed, key ID 2A3C3526EE99038E) Partner and community providers are signed by their developers. If you'd like to know more about provider signing, you can read about it here: https://developer.hashicorp.com/terraform/cli/plugins/signing Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. % terraform validate Success! The configuration is valid. % tterraform plan ephemeral.restful_resource.vcenter_session: Opening... ephemeral.restful_resource.vcenter_session: Opening complete after 0s module.vsphere_namespace.data.restful_resource.supervisors: Reading... module.vsphere_namespace.data.restful_resource.supervisors: Read complete after 0s [id=/api/vcenter/namespace-management/supervisors/summaries] module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"]: Reading... module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"]: Reading... module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"]: Read complete after 0s [id=aa6d5a82-1c88-45da-85d3-3d74b91a5bad] module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"]: Read complete after 1s [id=757007a7-d8d7-4207-9912-3e6462eb88a8] ephemeral.restful_resource.vcenter_session: Closing... ephemeral.restful_resource.vcenter_session: Closing complete after 0s Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: # module.vsphere_namespace.vsphere_namespace.namespace will be created + resource "vsphere_namespace" "namespace" { + id = (known after apply) + name = "dev-namespace" + storage_policies = [ + "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ] + supervisor = "23ca18ed-f62b-4d78-9724-e4811916c6bf" + vm_service { + content_libraries = [ + "757007a7-d8d7-4207-9912-3e6462eb88a8", ] + vm_classes = [ + "best-effort-large", + "best-effort-medium", + "best-effort-small", + "best-effort-xlarge", ] } } Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs: + namespace_id = (known after apply) + namespace_name = "dev-namespace" + storage_policy_ids = [ + "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ] + supervisor_id = "23ca18ed-f62b-4d78-9724-e4811916c6bf" ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now. % terraform apply ephemeral.restful_resource.vcenter_session: Opening... ephemeral.restful_resource.vcenter_session: Opening complete after 0s module.vsphere_namespace.data.restful_resource.supervisors: Reading... module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"]: Reading... module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"]: Reading... module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"]: Read complete after 0s [id=aa6d5a82-1c88-45da-85d3-3d74b91a5bad] module.vsphere_namespace.data.restful_resource.supervisors: Read complete after 1s [id=/api/vcenter/namespace-management/supervisors/summaries] module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"]: Read complete after 1s [id=757007a7-d8d7-4207-9912-3e6462eb88a8] ephemeral.restful_resource.vcenter_session: Closing... ephemeral.restful_resource.vcenter_session: Closing complete after 0s Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: # module.vsphere_namespace.vsphere_namespace.namespace will be created + resource "vsphere_namespace" "namespace" { + id = (known after apply) + name = "dev-namespace" + storage_policies = [ + "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ] + supervisor = "23ca18ed-f62b-4d78-9724-e4811916c6bf" + vm_service { + content_libraries = [ + "757007a7-d8d7-4207-9912-3e6462eb88a8", ] + vm_classes = [ + "best-effort-large", + "best-effort-medium", + "best-effort-small", + "best-effort-xlarge", ] } } Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs: + namespace_id = (known after apply) + namespace_name = "dev-namespace" + storage_policy_ids = [ + "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ] + supervisor_id = "23ca18ed-f62b-4d78-9724-e4811916c6bf" Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve. Enter a value: yes ephemeral.restful_resource.vcenter_session: Opening... ephemeral.restful_resource.vcenter_session: Opening complete after 0s module.vsphere_namespace.vsphere_namespace.namespace: Creating... module.vsphere_namespace.vsphere_namespace.namespace: Still creating... [00m10s elapsed] module.vsphere_namespace.vsphere_namespace.namespace: Creation complete after 16s [id=dev-namespace] ephemeral.restful_resource.vcenter_session: Closing... ephemeral.restful_resource.vcenter_session: Closing complete after 0s Apply complete! Resources: 1 added, 0 changed, 0 destroyed. Outputs: namespace_id = "dev-namespace" namespace_name = "dev-namespace" storage_policy_ids = tolist([ "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ]) supervisor_id = "23ca18ed-f62b-4d78-9724-e4811916c6bf" % terraform state list module.vsphere_namespace.data.restful_resource.supervisors module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"] module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"] module.vsphere_namespace.vsphere_namespace.namespace % terraform plan -destroy ephemeral.restful_resource.vcenter_session: Opening... ephemeral.restful_resource.vcenter_session: Opening complete after 0s module.vsphere_namespace.data.restful_resource.supervisors: Reading... module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"]: Reading... module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"]: Reading... module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"]: Read complete after 0s [id=aa6d5a82-1c88-45da-85d3-3d74b91a5bad] module.vsphere_namespace.data.restful_resource.supervisors: Read complete after 0s [id=/api/vcenter/namespace-management/supervisors/summaries] module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"]: Read complete after 0s [id=757007a7-d8d7-4207-9912-3e6462eb88a8] module.vsphere_namespace.vsphere_namespace.namespace: Refreshing state... [id=dev-namespace] ephemeral.restful_resource.vcenter_session: Closing... ephemeral.restful_resource.vcenter_session: Closing complete after 0s ephemeral.restful_resource.vcenter_session: Opening... ephemeral.restful_resource.vcenter_session: Opening complete after 0s ephemeral.restful_resource.vcenter_session: Closing... ephemeral.restful_resource.vcenter_session: Closing complete after 0s Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: - destroy Terraform will perform the following actions: # module.vsphere_namespace.vsphere_namespace.namespace will be destroyed - resource "vsphere_namespace" "namespace" { - id = "dev-namespace" -> null - name = "dev-namespace" -> null - storage_policies = [ - "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ] -> null - supervisor = "23ca18ed-f62b-4d78-9724-e4811916c6bf" -> null - vm_service { - content_libraries = [ - "757007a7-d8d7-4207-9912-3e6462eb88a8", ] -> null - vm_classes = [ - "best-effort-small", - "best-effort-xlarge", - "best-effort-large", - "best-effort-medium", ] -> null } } Plan: 0 to add, 0 to change, 1 to destroy. Changes to Outputs: - namespace_id = "dev-namespace" -> null - namespace_name = "dev-namespace" -> null - storage_policy_ids = [ - "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ] -> null - supervisor_id = "23ca18ed-f62b-4d78-9724-e4811916c6bf" -> null ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now. % terraform destroy ephemeral.restful_resource.vcenter_session: Opening... ephemeral.restful_resource.vcenter_session: Opening complete after 0s module.vsphere_namespace.data.restful_resource.supervisors: Reading... module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"]: Reading... module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"]: Reading... module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"]: Read complete after 0s [id=aa6d5a82-1c88-45da-85d3-3d74b91a5bad] module.vsphere_namespace.data.restful_resource.supervisors: Read complete after 0s [id=/api/vcenter/namespace-management/supervisors/summaries] module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"]: Read complete after 1s [id=757007a7-d8d7-4207-9912-3e6462eb88a8] module.vsphere_namespace.vsphere_namespace.namespace: Refreshing state... [id=dev-namespace] ephemeral.restful_resource.vcenter_session: Closing... ephemeral.restful_resource.vcenter_session: Closing complete after 0s ephemeral.restful_resource.vcenter_session: Opening... ephemeral.restful_resource.vcenter_session: Opening complete after 0s ephemeral.restful_resource.vcenter_session: Closing... ephemeral.restful_resource.vcenter_session: Closing complete after 0s Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: - destroy Terraform will perform the following actions: # module.vsphere_namespace.vsphere_namespace.namespace will be destroyed - resource "vsphere_namespace" "namespace" { - id = "dev-namespace" -> null - name = "dev-namespace" -> null - storage_policies = [ - "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ] -> null - supervisor = "23ca18ed-f62b-4d78-9724-e4811916c6bf" -> null - vm_service { - content_libraries = [ - "757007a7-d8d7-4207-9912-3e6462eb88a8", ] -> null - vm_classes = [ - "best-effort-large", - "best-effort-medium", - "best-effort-small", - "best-effort-xlarge", ] -> null } } Plan: 0 to add, 0 to change, 1 to destroy. Changes to Outputs: - namespace_id = "dev-namespace" -> null - namespace_name = "dev-namespace" -> null - storage_policy_ids = [ - "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ] -> null - supervisor_id = "23ca18ed-f62b-4d78-9724-e4811916c6bf" -> null Do you really want to destroy all resources? Terraform will destroy all your managed infrastructure, as shown above. There is no undo. Only 'yes' will be accepted to confirm. Enter a value: yes module.vsphere_namespace.vsphere_namespace.namespace: Destroying... [id=dev-namespace] module.vsphere_namespace.vsphere_namespace.namespace: Destruction complete after 0s Destroy complete! Resources: 1 destroyed. % terraform plan ephemeral.restful_resource.vcenter_session: Opening... ephemeral.restful_resource.vcenter_session: Opening complete after 0s module.vsphere_namespace.data.restful_resource.supervisors: Reading... module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"]: Reading... module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"]: Reading... module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"]: Read complete after 0s [id=aa6d5a82-1c88-45da-85d3-3d74b91a5bad] module.vsphere_namespace.data.restful_resource.supervisors: Read complete after 1s [id=/api/vcenter/namespace-management/supervisors/summaries] module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"]: Read complete after 1s [id=757007a7-d8d7-4207-9912-3e6462eb88a8] ephemeral.restful_resource.vcenter_session: Closing... ephemeral.restful_resource.vcenter_session: Closing complete after 0s Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: # module.vsphere_namespace.vsphere_namespace.namespace will be created + resource "vsphere_namespace" "namespace" { + id = (known after apply) + name = "dev-namespace" + storage_policies = [ + "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ] + supervisor = "23ca18ed-f62b-4d78-9724-e4811916c6bf" + vm_service { + content_libraries = [ + "757007a7-d8d7-4207-9912-3e6462eb88a8", ] + vm_classes = [ + "best-effort-large", + "best-effort-medium", + "best-effort-small", + "best-effort-xlarge", ] } } Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs: + namespace_id = (known after apply) + namespace_name = "dev-namespace" + storage_policy_ids = [ + "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ] + supervisor_id = "23ca18ed-f62b-4d78-9724-e4811916c6bf" ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now. % terraform apply ephemeral.restful_resource.vcenter_session: Opening... ephemeral.restful_resource.vcenter_session: Opening complete after 0s module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"]: Reading... module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"]: Reading... module.vsphere_namespace.data.restful_resource.supervisors: Reading... module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"]: Read complete after 0s [id=aa6d5a82-1c88-45da-85d3-3d74b91a5bad] module.vsphere_namespace.data.restful_resource.supervisors: Read complete after 0s [id=/api/vcenter/namespace-management/supervisors/summaries] module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"]: Read complete after 0s [id=757007a7-d8d7-4207-9912-3e6462eb88a8] ephemeral.restful_resource.vcenter_session: Closing... ephemeral.restful_resource.vcenter_session: Closing complete after 0s Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: # module.vsphere_namespace.vsphere_namespace.namespace will be created + resource "vsphere_namespace" "namespace" { + id = (known after apply) + name = "dev-namespace" + storage_policies = [ + "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ] + supervisor = "23ca18ed-f62b-4d78-9724-e4811916c6bf" + vm_service { + content_libraries = [ + "757007a7-d8d7-4207-9912-3e6462eb88a8", ] + vm_classes = [ + "best-effort-large", + "best-effort-medium", + "best-effort-small", + "best-effort-xlarge", ] } } Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs: + namespace_id = (known after apply) + namespace_name = "dev-namespace" + storage_policy_ids = [ + "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ] + supervisor_id = "23ca18ed-f62b-4d78-9724-e4811916c6bf" Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve. Enter a value: yes ephemeral.restful_resource.vcenter_session: Opening... ephemeral.restful_resource.vcenter_session: Opening complete after 0s module.vsphere_namespace.vsphere_namespace.namespace: Creating... module.vsphere_namespace.vsphere_namespace.namespace: Still creating... [00m10s elapsed] module.vsphere_namespace.vsphere_namespace.namespace: Creation complete after 15s [id=dev-namespace] ephemeral.restful_resource.vcenter_session: Closing... ephemeral.restful_resource.vcenter_session: Closing complete after 0s Apply complete! Resources: 1 added, 0 changed, 0 destroyed. Outputs: namespace_id = "dev-namespace" namespace_name = "dev-namespace" storage_policy_ids = tolist([ "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ]) supervisor_id = "23ca18ed-f62b-4d78-9724-e4811916c6bf" % terraform destroy ephemeral.restful_resource.vcenter_session: Opening... ephemeral.restful_resource.vcenter_session: Opening complete after 0s module.vsphere_namespace.data.restful_resource.supervisors: Reading... module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"]: Reading... module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"]: Reading... module.vsphere_namespace.data.vsphere_storage_policy.namespace["vSAN Default Storage Policy"]: Read complete after 0s [id=aa6d5a82-1c88-45da-85d3-3d74b91a5bad] module.vsphere_namespace.data.restful_resource.supervisors: Read complete after 0s [id=/api/vcenter/namespace-management/supervisors/summaries] module.vsphere_namespace.data.vsphere_content_library.namespace["vkr-content-library"]: Read complete after 0s [id=757007a7-d8d7-4207-9912-3e6462eb88a8] module.vsphere_namespace.vsphere_namespace.namespace: Refreshing state... [id=dev-namespace] ephemeral.restful_resource.vcenter_session: Closing... ephemeral.restful_resource.vcenter_session: Closing complete after 0s ephemeral.restful_resource.vcenter_session: Opening... ephemeral.restful_resource.vcenter_session: Opening complete after 0s ephemeral.restful_resource.vcenter_session: Closing... ephemeral.restful_resource.vcenter_session: Closing complete after 0s Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: - destroy Terraform will perform the following actions: # module.vsphere_namespace.vsphere_namespace.namespace will be destroyed - resource "vsphere_namespace" "namespace" { - id = "dev-namespace" -> null - name = "dev-namespace" -> null - storage_policies = [ - "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ] -> null - supervisor = "23ca18ed-f62b-4d78-9724-e4811916c6bf" -> null - vm_service { - content_libraries = [ - "757007a7-d8d7-4207-9912-3e6462eb88a8", ] -> null - vm_classes = [ - "best-effort-large", - "best-effort-medium", - "best-effort-small", - "best-effort-xlarge", ] -> null } } Plan: 0 to add, 0 to change, 1 to destroy. Changes to Outputs: - namespace_id = "dev-namespace" -> null - namespace_name = "dev-namespace" -> null - storage_policy_ids = [ - "aa6d5a82-1c88-45da-85d3-3d74b91a5bad", ] -> null - supervisor_id = "23ca18ed-f62b-4d78-9724-e4811916c6bf" -> null Do you really want to destroy all resources? Terraform will destroy all your managed infrastructure, as shown above. There is no undo. Only 'yes' will be accepted to confirm. Enter a value: yes module.vsphere_namespace.vsphere_namespace.namespace: Destroying... [id=dev-namespace] module.vsphere_namespace.vsphere_namespace.namespace: Destruction complete after 0s Destroy complete! Resources: 1 destroyed.