A CloudFormation stack launches an EC2 instance whose user-data script installs and configures a service. CloudFormation currently reports CREATE_COMPLETE before bootstrap finishes. The stack should fail if bootstrap fails or does not finish within 15 minutes. Which changes implement this behavior? Select 2 answers.

Published
  1. Have the bootstrap script send its success or failure result by using cfn-signal after the configuration work.
  2. Use a DeletionPolicy of Retain to make CloudFormation wait for successful installation.
  3. Add a CreationPolicy with the required ResourceSignal count and a 15-minute timeout to the instance resource.
  4. Increase only the EC2 Auto Scaling health-check grace period to 15 minutes.
  5. Add only DependsOn to the instance and assume it evaluates the user-data exit code.

Comments — 0