
Answer-first summary for fast verification
Answer: Add the DependsOn attribute to the resource declaration for the route table entry. Specify the virtual private gateway resource.
The error encountered during the testing of the CloudFormation template is likely due to a dependency issue where resources are being created in an order that does not account for their dependencies. In AWS CloudFormation, the 'DependsOn' attribute can be used to specify that the creation of a particular resource should only proceed after another specified resource has been successfully created. In this scenario, the virtual private gateway must be created before the route table entry, as the route table entry depends on the existence of the virtual private gateway. Therefore, adding the 'DependsOn' attribute to the resource declaration for the route table entry, specifying the virtual private gateway resource, ensures that the virtual private gateway is created first, resolving the dependency issue and preventing the error.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
What steps should the network engineer take to troubleshoot and resolve the error causing the AWS CloudFormation template to roll back while creating a virtual private gateway, customer gateway, VPN connection, and static routes in a route table?
A
Change the order of resource creation in the CloudFormation template.
B
Add the DependsOn attribute to the resource declaration for the virtual private gateway. Specify the route table entry resource.
C
Add a wait condition in the template to wait for the creation of the virtual private gateway.
D
Add the DependsOn attribute to the resource declaration for the route table entry. Specify the virtual private gateway resource.
No comments yet.