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

[RS-DEF] Enhance Eventstream resource by adding definition support #159

Open
1 of 11 tasks
DariuszPorowski opened this issue Dec 18, 2024 · 0 comments
Open
1 of 11 tasks
Labels
enhancement Enhancement to existing feature tf/resource Terraform Resource type/RS-DEF Fabric Item resource with definition

Comments

@DariuszPorowski
Copy link
Member

📝 Description

When I am managing my Infrastructure as Code using Terraform for Eventstream. I want to be able to manage definition. So, I can automate the deployment and configuration of my Eventstream definition, ensuring consistency, and reducing manual effort.

🔬 Details / References

🚧 Potential Terraform Configuration / Desired Solution

# Example 1 - Eventstream without definition
resource "fabric_eventstream" "example" {
  display_name = "example"
  workspace_id = "00000000-0000-0000-0000-000000000000"
}

# Example 2 - Eventstream with definition bootstrapping only
resource "fabric_eventstream" "example_definition_bootstrap" {
  display_name              = "example"
  description               = "example with definition bootstrapping"
  workspace_id              = "00000000-0000-0000-0000-000000000000"
  definition_update_enabled = false
  definition = {
    "eventstream.json" = {
      source = "${local.path}/eventstream.json.tmpl"
    }
  }
}

# Example 3 - Eventstream with definition update when source or tokens changed
resource "fabric_eventstream" "example_definition_update" {
  display_name = "example"
  description  = "example with definition update when source or tokens changed"
  workspace_id = "00000000-0000-0000-0000-000000000000"
  definition = {
    "eventstream.json" = {
      source = "${local.path}/eventstream.json.tmpl"
      tokens = {
        "MESSAGE" = "World"
        "MyValue" = "Lorem Ipsum"
      }
    }
  }
}

📎 Additional context

  • Definition is optional
  • Format is N/A

✅ Definition of Done

  • Data Transfer Objects (DTOs)
  • Data Client functions
  • Resource Implementation
  • Resource Added to Provider
  • Unit Tests for Happy path
  • Unit Tests for Error path
  • Acceptance Tests
  • Example in the ./examples folder
  • Schema documentation in code
  • Updated auto-generated provider docs with task docs

🔰 Code of Conduct

  • I agree to follow this project's Code of Conduct.
@DariuszPorowski DariuszPorowski added enhancement Enhancement to existing feature tf/resource Terraform Resource type/RS-DEF Fabric Item resource with definition labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to existing feature tf/resource Terraform Resource type/RS-DEF Fabric Item resource with definition
Projects
None yet
Development

No branches or pull requests

1 participant