test-kitchen/kitchen-ec2

Deprecation warning on destroy: "pass options to configure the waiter; yielding the waiter is deprecated"

clintoncwolfe opened this issue · 1 comments

🗣️ Foreword

There is a deprecation message issued during destroy.

Version

kitchen-ec2 3.6.0
test-kitchen 2.5.2
aws-sdk-ec2 1.166.1

Environment

MacOS Catalina

Steps to Reproduce

  1. Create any EC2 instance
  2. Destroy the instance
  3. See the following message:
[cwolfe@lodi temp]$ be kitchen destroy
-----> Starting Test Kitchen (v2.5.2)
-----> Destroying <default-ubuntu-1804>...
pass options to configure the waiter; yielding the waiter is deprecated
       Waited 0/300s for instance <i-> to terminate.
       Waited 5/300s for instance <i-> to terminate.
       Waited 10/300s for instance <i-> to terminate.
       Waited 15/300s for instance <i-> to terminate.
       Waited 20/300s for instance <i-> to terminate.
       EC2 instance <i-> destroyed.
       Removing automatic security group sg-
       Finished destroying <default-ubuntu-1804> (0m21.63s).
-----> Test Kitchen is finished. (0m22.56s)

Expected Result

No deprecation message appears.

Actual Result

The line pass options to configure the waiter; yielding the waiter is deprecated appears

@clintoncwolfe you may want to close this issue. the associated PR is merged.