Skip to content

Conversation

@matejsmisek
Copy link

@matejsmisek matejsmisek commented Jun 13, 2025

Ownership resource does not use internal ID,instead its a single resource per project

Since all helper methods have id attribute hardcoded I created new method

The proper import usage is

terraform import {resource}  org-slug/project-slug

* Ownership resource does not use internal ID,instead its a single  resource per project

func (r *ProjectOwnershipResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) {
tfutils.ImportStateThreePartId(ctx, "organization", "project", req, resp)
tfutils.ImportStateTwoPart(ctx, "organization", "project", req, resp)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would this clash with the project resource? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants