You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some example manifests, we need to inject some values e.g tenantID, accountID, objectID. This injection values usually corresponds to Data Sources of Terraform. Please see the following example:
This convention is from the Terraform registry documentation. So we use a regular expression to extract the key of the tenantID value. For this example ,the key is: azurerm_client_config.current.tenant_id
And our source yaml file has the following format:
FWIW, I think the simple find&replace approach we took is perfectly fine for small number of entries. So this issue is about tracking whether it's going to stay like that or grow to many that we'll want to implement fully-structured YAML.
What problem are you facing?
In some example manifests, we need to inject some values e.g
tenantID
,accountID
,objectID
. This injection values usually corresponds to Data Sources of Terraform. Please see the following example:tenantId: ${data.azurerm_client_config.current.tenant_id}
This convention is from the Terraform registry documentation. So we use a regular expression to extract the key of the tenantID value. For this example ,the key is:
azurerm_client_config.current.tenant_id
And our source yaml file has the following format:
@muvaf suggested two formats for data source yaml in this PR: https://github.com/upbound/official-providers/pull/299#discussion_r910804037
How could Official Providers help solve your problem?
Let's discuss the possible formats and decide that a best one.
The text was updated successfully, but these errors were encountered: