GithubHelp home page GithubHelp logo

Comments (4)

flbla avatar flbla commented on July 17, 2024 1

okay good, I didn't know that
thank you 😄

from terraform-provider-harbor.

wrighbr avatar wrighbr commented on July 17, 2024

Hi @flbla
What you like terraform to do if there is already project named the same thing? The above error message comes from harbor itself.

if you like to import the project into terraform you can use the terraform import command or you could use the data resource

Cheers,
Brett

from terraform-provider-harbor.

flbla avatar flbla commented on July 17, 2024

Hi @wrighbr,

The issue is if I create manually a project in Harbor (for eg: "test") for any reason,
Then I add it to my tfvars and do a terraform plan or apply, I get an error, that the project already exist in Harbor so it can't be created

It could be great, if the harbor provider could check if the project exist before try to create it.

from terraform-provider-harbor.

wrighbr avatar wrighbr commented on July 17, 2024

Hi @flbla

If you create a project manually in harbor then want to add it to terraform to (manage/modify/know about) the exist project.
You will need to run the terraform import command.
https://github.com/BESTSELLER/terraform-provider-harbor/blob/master/docs/resources/project.md#import

terraform import harbor_project.main /projects/1

Otherwise you will need to delete the test project within harbor and then let terraform create the project

from terraform-provider-harbor.

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.