github.com/mcuadros/ascode@v1.3.1/starlark/types/testdata/examples/attribute.star (about) 1 # When a Resource has an Attribute means that the value it's only available 2 # during the `apply` phase of Terraform. So in, AsCode an attribute behaves 3 # like a poor-man pointer. 4 5 aws = tf.provider("aws") 6 7 ami = aws.resource.ami("ubuntu") 8 9 instance = aws.resource.instance("foo") 10 instance.ami = ami.id 11 12 print(instance.ami) 13 # Output: 14 # ${aws_ami.ubuntu.id}