Coder Social home page Coder Social logo

Comments (3)

rikonen avatar rikonen commented on July 17, 2024

Based on quick searching it does not seem like there's any way to tell Terraform that tainting a service should taint or re-create some dependent resources. Even explicit depends_on definition apparently doesn't make it do anything about other resources. If you do terraform refresh after the service is re-created it should notice the sub-resources are no longer present and re-create them.

from terraform-provider-aiven.

erutherford avatar erutherford commented on July 17, 2024

I think the problem may be that the linkage is based off the service_name which didn't change as a result of the reset. It seems that we'd need some other way to invalidate the state.

from terraform-provider-aiven.

ivan-savciuc avatar ivan-savciuc commented on July 17, 2024

Hi,

I would recommend using depends_on inside aiven_service_user, for example:

resource "aiven_service_user" "foo" {
  service_name = aiven_service.grafana-service1.service_name
  project = aiven_project.project1.project
  username = "user-1"

  depends_on = [
    aiven_service.grafana-service1
  ]
}

This explicit dependency would help to solve your situation even when the service name stays the same.

from terraform-provider-aiven.

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.