Comments (4)
okay good, I didn't know that
thank you 😄
from terraform-provider-harbor.
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.
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.
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)
- Consistent group_type HOT 2
- harbor_config_system to accept global storage quota per project HOT 1
- add import functionality for harbor_config_auth HOT 2
- add import functionality for harbor_config_system HOT 2
- SendRequest always return 0 when the expected status code is different of the status code
- harbor_registry - jfrog - update failed
- Spelling error in docs for harbor_config_system_project_quota
- Adding a registry of type google results in a 400 error response HOT 1
- Ability to authentificate to harbor using Bearer Token HOT 1
- robot accounts don't appear in admin UI HOT 2
- cve_allowlist does not work on initial project create HOT 3
- type mismatch for resource harbor_project field public
- harbor_robot_account create permissions in all the projects HOT 1
- Change in cve_allowlist is not displayed
- Cant run plan after manually deleting resources in the UI that are in the state HOT 1
- Error when creating projects using system robot account HOT 5
- harbor_garbage_collection / add support of workers
- harbor_replications filter not working at all. HOT 3
- harbor_replication documentation bug HOT 1
- Robot account with permissions to pull across all and push project specific HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-harbor.