Update code based on the review suggestions.
Update code based on the review suggestions.

1. Used resource.Retry instead of custom solution
2. Removed unnecessary variables and added required variable to resource.Retry.

ClementCunin/terraform-provider-aws,terraform-providers/terraform-provider-aws,charles-at-geospock/terraform-provider-aws,charles-at-geospock/terraform-provider-aws,ashinohara/terraform-provider-aws,terraform-providers/terraform-provider-aws,kjmkznr/terraform-provider-aws,Ninir/terraform-provider-aws,kjmkznr/terraform-provider-aws,nbaztec/terraform-provider-aws,Ninir/terraform-provider-aws,ashinohara/terraform-provider-aws,ClementCunin/terraform-provider-aws,nbaztec/terraform-provider-aws,kjmkznr/terraform-provider-aws,charles-at-geospock/terraform-provider-aws,terraform-providers/terraform-provider-aws,ashinohara/terraform-provider-aws,terraform-providers/terraform-provider-aws,ClementCunin/terraform-provider-aws,nbaztec/terraform-provider-aws,ClementCunin/terraform-provider-aws,nbaztec/terraform-provider-aws,Ninir/terraform-provider-aws,kjmkznr/terraform-provider-aws,charles-at-geospock/terraform-provider-aws,Ninir/terraform-provider-aws,ashinohara/terraform-provider-aws