Git Product home page Git Product logo

Comments (5)

sbrudz avatar sbrudz commented on September 24, 2024 2

We needed this functionality, too. I've submitted some PRs to add the resource.

from terraform-provider-sentry.

jianyuan avatar jianyuan commented on September 24, 2024

Hey @lingrino! Thank you for your kind words!

Here is what I think the DSL could look like:

resource "sentry_organization_integration_pagerduty" "default" {
  organization   = "my-organization"
  identifier     = "my-pager-duty-instance"

  service {
    name            = "service_1"
    integration_key = "00000000000000000000000000000000"
  }

  service {
    name            = "service_2"
    integration_key = "00000000000000000000000000000000"
  }
}

You may notice that the integration keys are nested in the same resource. Ideally, each should be its resource, but the API only accepts a complete list. The Terraform provider has to track the internal ids.

  1. https://github.com/getsentry/sentry/blob/6d6c0bd9b8125d554f966da1bb0b70fcab601c27/tests/sentry/integrations/pagerduty/test_integration.py#L146-L161
  2. https://github.com/getsentry/sentry/blob/6d6c0bd9b8125d554f966da1bb0b70fcab601c27/src/sentry/integrations/pagerduty/integration.py#L80-L114

I was planning to work on this next week. Happy to delegate it to you if you're keen on taking this on! Let me know!

from terraform-provider-sentry.

lingrino avatar lingrino commented on September 24, 2024

@jianyuan sorry about the delay! I've got everything set up locally and I'm working on this now. Hopefully I will have a PR this week.

from terraform-provider-sentry.

lingrino avatar lingrino commented on September 24, 2024

@jianyuan I'm sorry. Even though I'd love to work on this I don't think I'll find the time for at least a few weeks. If you were already planning on this resource then please continue without me. Otherwise I will check back in February

from terraform-provider-sentry.

gratus-acuitymd avatar gratus-acuitymd commented on September 24, 2024

hi @jianyuan is this still on your roadmap? I am having the same issue as @lingrino - however I have never written GO so it would not be as easy for me to jump in and write this.

from terraform-provider-sentry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.