QuestionQ39

VerifiedNetwork Implementation

A network engineer needs to develop an AWS CloudFormation template that creates a virtual private gateway, a customer gateway, a VPN connection, and static routes in a route table. During template testing, the network engineer observes that the CloudFormation template encounters an error and rolls back.

What should the network engineer do to resolve the error?

Explanation

A static route that uses a virtual private gateway must be created only after the virtual private gateway is provisioned. The route-table entry is the dependent resource, so it must use DependsOn to reference the virtual private gateway. DependsOn explicitly controls CloudFormation resource-creation order.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!