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

[commercetools_subscription] Empty string as URI for Azure EventGrid topic #362

Closed
philippeckelintive opened this issue Apr 23, 2023 · 0 comments · Fixed by #364
Closed
Labels
bug Something isn't working

Comments

@philippeckelintive
Copy link
Contributor

Information
Terraform version: 1.4.5
Provider version: 1.6.9
Resource: commercetools_subscription

To Reproduce
Steps to reproduce the behavior:

resource "commercetools_subscription" "subscription" {
  key = var.key
  destination {
    type       = "EventGrid"
    access_key = var.access_key
    uri        = var.uri
  }

  changes {
    resource_type_ids = ["product"]
  }

  format {
    type                 = "CloudEvents"
    cloud_events_version = "1.0"
  }

  message {
    resource_type_id = "product"
    types            = ["ProductPublished"]
  }
}

While terraform plan shows the correct URI for EventGrid, terraform apply fails with

"Error creating subscription","detail":"The URI '' is not an expected Azure URI (as in 'https://topic.region.eventgrid.azure.net/api/events')."
@philippeckelintive philippeckelintive added the bug Something isn't working label Apr 23, 2023
philippeckelintive added a commit to philippeckelintive/terraform-provider-commercetools that referenced this issue Apr 23, 2023
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

Successfully merging a pull request may close this issue.

1 participant