This website uses cookies to ensure you get the best experience.
Learn more.
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
- Have the bootstrap script send its success or failure result by using cfn-signal after the configuration work.
- Use a DeletionPolicy of Retain to make CloudFormation wait for successful installation.
- Add a CreationPolicy with the required ResourceSignal count and a 15-minute timeout to the instance resource.
- Increase only the EC2 Auto Scaling health-check grace period to 15 minutes.
- Add only DependsOn to the instance and assume it evaluates the user-data exit code.
Comments — 0
Sign in to comment