gyro
gyro copied to clipboard
In rare case not having an @Id field on a resource causes confusing error
See this issue: https://github.com/perfectsense/gyro-aws-provider/issues/202
The problem is that the following reference $SELF
is invalid because it's referencing the aws::security-group-rules
rather than an actual aws::security-group
.
I think if the error in this case showed the configuration it might have helped debug this issue. However, I could be convinced that not having @Id
on the rules resource is invalid as well. Perhaps both things should happen.
aws::security-group-rules sg-rules
security-group: $(aws::security-group sg)
ingress
security-group: $SELF
...
end
end