Support Anchors and Aliases in Terraform Provider
pending feedback
M
Monthly Deer
Add support for anchors and aliases in the Terraform Provider for YAML based resources. For example, if I had an anchor and alias defined as such
definitions:
description: &desc test
pipeline:
name: Rollback
identifier: Rollback
projectIdentifier: CSE_Lab_Project
orgIdentifier: CSE_Labs
stages:
- stage:
name: Rollback
identifier: Rollback
description: *desc
I am able to use this fine in Pipeline Studio and the description will reference the anchor just fine. When trying to create a pipeline with the above YAML in Terraform, I am getting an error that definitions could not be resolved. Can we add support for Definitions in the Harness Terraform Provider?
Log In
P
Pranay Kaikini
Hi Wyatt, Can you please share the error you get and also a valid sample yaml?
Prateek Mittal
pending feedback
Prateek Mittal
Hi Wyatt,
Thanks for the post. Terraform itself doesn't natively support YAML syntax, which is where anchors and aliases are commonly used. Can you elaborate on the use case how you want to use this and which resources are you envisioning it.
P
Pranay Kaikini
under review