github.com/mcuadros/ascode@v1.3.1/starlark/types/testdata/examples/ref.star (about)

     1  # Non-computed arguments are passed by value to one argument to another 
     2  # in some cases may be required to make a referece to and relay in the HCL
     3  # interpolation. 
     4  
     5  aws = tf.provider("aws")
     6  
     7  instance = aws.resource.instance("foo")
     8  instance.ami = "foo"
     9  
    10  print(ref(instance, "ami"))
    11  # Output:
    12  # ${aws_instance.foo.ami}