Skip to content

Commit 9f98d4d

Browse files
committed
Merge branch 'main' of https://github.com/port-labs/port-docs into update_doc_for_ingesting_all_repos
2 parents 0aee25c + 1cb9ee1 commit 9f98d4d

File tree

3 files changed

+240
-143
lines changed

3 files changed

+240
-143
lines changed

docs/build-your-software-catalog/custom-integration/iac/pulumi/pulumi.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,13 +1954,22 @@ To update an entity using Pulumi, update the existing `port.Entity` resource in
19541954

19551955
It is also possible to start managing existing entities using Port's Pulumi provider, to begin managing an existing entity, add a new `port.Entity` resource to your code file and make the desired changes
19561956

1957-
:::info
1957+
After you add the resource definition, import the existing entity into your Pulumi stack so the provider manages it instead of trying to recreate it:
19581958

1959-
Important notes about adding existing entities to the Pulumi provider:
1959+
```shell showLineNumbers
1960+
pulumi import port:index/entity:Entity myExistingEntity myBlueprint:myExistingEntity
1961+
```
1962+
1963+
- `port:index/entity:Entity` is the Pulumi type token for a Port entity.
1964+
- `myExistingEntity` is the logical name you gave the resource in code.
1965+
- `myBlueprint:myExistingEntity` follows the `<blueprintIdentifier>:<entityIdentifier>` format that matches the entity already in Port.
1966+
1967+
Then run `pulumi up -y` to apply any changes.
1968+
1969+
:::info Adding existing entities to the Pulumi provider
19601970

19611971
- It is important to specify the `identifier` of the entity, otherwise Pulumi will create a new entity with an autogenerated identifier.
19621972
- Port's Pulumi provider uses the [create/override](/build-your-software-catalog/custom-integration/api?update-strategy=create-override#usage) strategy, meaning for an existing entity, any properties not defined in the resource definition will be overridden with empty values.
1963-
19641973
:::
19651974

19661975
</TabItem>

0 commit comments

Comments
 (0)