Git Product home page Git Product logo

Comments (4)

bittopaz avatar bittopaz commented on July 18, 2024

I don't think this is supported by terraform now..

from terraform-provider-alicloud.

xiaozhu36 avatar xiaozhu36 commented on July 18, 2024

Hi @bittopaz

I am sorry to tell you that terraform doesn't support rollback now. If alicloud_instance return error, you can run terraform apply again, and alicloud_security_group would not be created again, thanks a lot.

Regards,
He Guimin

from terraform-provider-alicloud.

zhuzhih2017 avatar zhuzhih2017 commented on July 18, 2024

Hi @bittopaz
Terraform will record the resource it already created and when error happens, you can choose to fix the error and continue the process by running the "terraform apply" again. It will create the remaining resources and don't duplicate resources you already created. If you don't want to continue the process. You can run "terraform destroy" to delete the created resources. So what's the concern you want terraform to support the rollback?

from terraform-provider-alicloud.

rquadling avatar rquadling commented on July 18, 2024

Just to help those less experienced ... when you say " you can choose to fix the error and continue the process " ... can you elaborate on the "fix" part?

Is this a correction to the terraform files (and so a new plan?), or changes to the cloud that you are attempting to modify?

from terraform-provider-alicloud.

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.