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

Virtual Service provisioning issue #20

Open
cmistry-crest opened this issue Jul 1, 2021 · 0 comments
Open

Virtual Service provisioning issue #20

cmistry-crest opened this issue Jul 1, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@cmistry-crest
Copy link
Contributor

Provisioning is not applied successfully on the virtual service resource creation if non-provisioned service is included in the virtual service resource configuration. This results in both service and virtual service unprovisioned. This also affects the service binding resource as it needs an active virtual service href.

Example TF Config:

resource "illumio-core_service" "service_1" {
	name = "service 1234321"
	windows_services {
		proto = 6
	}
}
resource "illumio-core_virtual_service" "virtual_service_1" {
	name = "virtual service 1234321"
	apply_to = "host_only"
	service{
		href = illumio-core_service.service_1.href
	}
}
resource "illumio-core_workload" "workload_1" {
		name = "workload 1234321"
}
resource "illumio-core_service_binding" "service_binding_1" {
	virtual_service {
		href = replace(illumio-core_virtual_service.virtual_service_1.href, "draft", "active")
	}
	workload {
		href = illumio-core_workload.workload_1.href
	}
}

The Error thrown when terraform apply is executed:

Error: not-acceptable:
Token: invalid_uri
Message: Invalid URI: {/orgs/1/sec_policy/active/virtual_services/4abf00fe-5f68-46a4-8731-3bdd8351a77f}


  on test.tf line 32, in resource "illumio-core_service_binding" "service_binding_1":
  32: resource "illumio-core_service_binding" "service_binding_1" {

This is due to the unprovisioned virtual service referenced in the service binding resource block.

Expected Outcome:
terraform apply should not throw any type of error when executed and the virtual service resource should be provisioned at the time of creation.

@cmistry-crest cmistry-crest added the bug Something isn't working label Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants