Pulumi Resource: Difference between revisions
(→Type) |
|||
Line 32: | Line 32: | ||
The short form is the rendering of the <code><package>:<module>:<resource-name></code> pattern. The "long form" that can be used as the type argument of the <code>[[Pulumi_Operations#Import_External_Resources_into_a_Stack|pulumi import]]</code> is generated as <code><package>:<module>/<lowercase-first-char-resource-name>:<uppercase-first-char-resource-name></code>. For example "datadog:index:Dashboard" → "datadog:index/dashboard:Dashboard". | The short form is the rendering of the <code><package>:<module>:<resource-name></code> pattern. The "long form" that can be used as the type argument of the <code>[[Pulumi_Operations#Import_External_Resources_into_a_Stack|pulumi import]]</code> is generated as <code><package>:<module>/<lowercase-first-char-resource-name>:<uppercase-first-char-resource-name></code>. For example "datadog:index:Dashboard" → "datadog:index/dashboard:Dashboard". | ||
=Protected Resource= | =Protected Resource= | ||
<font color=darkkhaki> | |||
TODO: https://www.pulumi.com/blog/pulumi-release-notes-m65/#exclude-protected-resources-from-pulumi-destroy | |||
</font> | |||
=Property= | =Property= |
Revision as of 01:43, 13 April 2022
External
- https://www.pulumi.com/docs/intro/concepts/resources/
- https://www.pulumi.com/docs/reference/pkg/python/pulumi/#the-pulumi-python-resource-model-1
Internal
Overview
Pulumi understands dependencies between resources and uses the relationship between resources to maximize execution parallelism and ensure correct ordering when a stack is instantiated.
URN
'urn:pulumi:<stack-name>::<project-name>::<resource-type>::'
Example:
'urn:pulumi:dd.test_env.test_app.test_template::datadog-dashboards::datadog:index/dashboardJson:DashboardJson::'
Type
The "short form" of the resource type can be obtained with pulumi preview
:
Previewing update (my-org/my-project/my-stack) Type Name Plan Info pulumi:pulumi:Stack my-project-my-stack └─ datadog:index:Dashboard Test Dashboard
The short form is the rendering of the <package>:<module>:<resource-name>
pattern. The "long form" that can be used as the type argument of the pulumi import
is generated as <package>:<module>/<lowercase-first-char-resource-name>:<uppercase-first-char-resource-name>
. For example "datadog:index:Dashboard" → "datadog:index/dashboard:Dashboard".
Protected Resource
Property
Difference between resource and stack inputs/outputs.
Input Property
Output Property
Organizatorium
TO PROCESS:
- https://www.pulumi.com/docs/intro/concepts/resources/
- https://www.pulumi.com/docs/reference/pkg/python/pulumi/#the-pulumi-python-resource-model-1
Include Output in conversation.
Other attributes like id, etc.
The UI has a Resource Graph.
Resource Types:
- pulumi:pulumi:Stack
- pulumi:pulumi:StackReference
- pulumi:providers:kubernetes
- pulumi:providers:pulumi
- kubernetes:helm.sh/v3:Chart
- kubernetes:core/v1:Service
- kubernetes:core/v1:ConfigMap
- kubernetes:apps/v1:Deployment