問題文
A security group must allow traffic from a load balancer that the same configuration creates. The load balancer's address is only known after it exists. How should the configuration express this?
選択肢
- Reference the attribute and also add the explicit dependency meta-argument, since a reference by itself does not guarantee the ordering.
- Look up the load balancer with a data block in the same configuration, so that the value is read after it has been created and the ordering falls out of the read.
- Declare the address as an input variable and pass it in on the command line after the load balancer has been created.
- Reference the load balancer's attribute in the security group rule, which both supplies the value and establishes the dependency ordering between the two resources.