add delay option to security group waiter

This commit is contained in:
Matthew Hooker 2017-11-02 00:25:54 -07:00
parent 52558e4f75
commit f2413ff138
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 1 additions and 0 deletions

View File

@ -158,6 +158,7 @@ func waitUntilSecurityGroupExists(c *ec2.EC2, input *ec2.DescribeSecurityGroupsI
w := request.Waiter{ w := request.Waiter{
Name: "DescribeSecurityGroups", Name: "DescribeSecurityGroups",
MaxAttempts: 40, MaxAttempts: 40,
Delay: request.ConstantWaiterDelay(5 * time.Second),
Acceptors: []request.WaiterAcceptor{ Acceptors: []request.WaiterAcceptor{
{ {
State: request.SuccessWaiterState, State: request.SuccessWaiterState,