provider/aws: Increase timeout for retrying creation of IAM server cert (#14609)

This commit is contained in:
Radek Simko 2017-05-18 11:43:50 +02:00 committed by GitHub
parent 2a36e75b9e
commit 1b532b519f
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ func resourceAwsIAMServerCertificateRead(d *schema.ResourceData, meta interface{
func resourceAwsIAMServerCertificateDelete(d *schema.ResourceData, meta interface{}) error { func resourceAwsIAMServerCertificateDelete(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).iamconn conn := meta.(*AWSClient).iamconn
log.Printf("[INFO] Deleting IAM Server Certificate: %s", d.Id()) log.Printf("[INFO] Deleting IAM Server Certificate: %s", d.Id())
err := resource.Retry(3*time.Minute, func() *resource.RetryError { err := resource.Retry(5*time.Minute, func() *resource.RetryError {
_, err := conn.DeleteServerCertificate(&iam.DeleteServerCertificateInput{ _, err := conn.DeleteServerCertificate(&iam.DeleteServerCertificateInput{
ServerCertificateName: aws.String(d.Get("name").(string)), ServerCertificateName: aws.String(d.Get("name").(string)),
}) })