add delay option to security group waiter
This commit is contained in:
parent
52558e4f75
commit
f2413ff138
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue