https://github.com/ringods/pulumi-components-dependencies
Various cases of modeling dependencies from resources on components in Pulumi
https://github.com/ringods/pulumi-components-dependencies
pulumi
Last synced: 11 months ago
JSON representation
Various cases of modeling dependencies from resources on components in Pulumi
- Host: GitHub
- URL: https://github.com/ringods/pulumi-components-dependencies
- Owner: ringods
- License: apache-2.0
- Created: 2023-03-08T09:16:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-13T10:29:03.000Z (over 1 year ago)
- Last Synced: 2025-03-26T13:53:47.449Z (over 1 year ago)
- Topics: pulumi
- Language: Go
- Homepage:
- Size: 418 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pulumi dependencies between resources & components
The normal way to define dependencies between resources is to use an output from one resource as
an input to another resource. See the documentation on
[Inputs & Outputs](https://www.pulumi.com/docs/intro/concepts/inputs-outputs/) for more information.
Pulumi adds the `dependsOn` [resource option](https://www.pulumi.com/docs/intro/concepts/resources/options/dependson/)
in case you want to express a dependency between resources, but there is no output-to-input
relation you can use.
Leveraging `dependsOn` does seem to have some subleties when needing a dependency **on** a component.
This repository contains a set of use cases for depending on a component, implemented in any of the
supported programming languages and using:
* component resources in a single language
* [C#](./single/cs/)
* [Go](./single/go/)
* [Python](./single/python/)
* [Typescript](./single/ts/)
* component resources multi-language packages
* [C#](./mlc/cs/)
* [Go](./mlc/go/)
* [Python](./mlc/python/)
* [Typescript](./mlc/ts/)
* [YAML](./mlc/yaml/)