| 
									
										
										
										
											2022-06-26 17:23:26 +00:00
										 |  |  | From e356afa8e19d90c7e343120897f4385d616ae9d2 Mon Sep 17 00:00:00 2001 | 
					
						
							| 
									
										
										
										
											2022-04-16 10:02:57 +00:00
										 |  |  | From: Bert Blommers <info@bertblommers.nl> | 
					
						
							| 
									
										
										
										
											2022-06-26 17:23:26 +00:00
										 |  |  | Date: Sun, 19 Jun 2022 19:39:31 +0000 | 
					
						
							|  |  |  | Subject: [PATCH] IAM: Reduce wait times | 
					
						
							| 
									
										
										
										
											2022-04-16 10:02:57 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ---
 | 
					
						
							|  |  |  |  internal/service/iam/wait.go | 4 ++-- | 
					
						
							|  |  |  |  1 file changed, 2 insertions(+), 2 deletions(-) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | diff --git a/internal/service/iam/wait.go b/internal/service/iam/wait.go
 | 
					
						
							| 
									
										
										
										
											2022-06-26 17:23:26 +00:00
										 |  |  | index 705d88d664..527f4fa9b8 100644
 | 
					
						
							| 
									
										
										
										
											2022-04-16 10:02:57 +00:00
										 |  |  | --- a/internal/service/iam/wait.go
 | 
					
						
							|  |  |  | +++ b/internal/service/iam/wait.go
 | 
					
						
							|  |  |  | @@ -17,7 +17,7 @@ const (
 | 
					
						
							|  |  |  |  	// as this will negatively impact user experience when configurations | 
					
						
							|  |  |  |  	// have incorrect references or permissions. | 
					
						
							|  |  |  |  	// Reference: https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency | 
					
						
							| 
									
										
										
										
											2022-06-26 17:23:26 +00:00
										 |  |  | -	propagationTimeout = 2 * time.Minute
 | 
					
						
							|  |  |  | +	propagationTimeout = 2 * time.Second
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-16 10:02:57 +00:00
										 |  |  |  	RoleStatusARNIsUniqueID = "uniqueid" | 
					
						
							|  |  |  |  	RoleStatusARNIsARN      = "arn" | 
					
						
							|  |  |  | @@ -72,7 +72,7 @@ func waitDeleteServiceLinkedRole(conn *iam.IAM, deletionTaskID string) error {
 | 
					
						
							|  |  |  |  		Pending: []string{iam.DeletionTaskStatusTypeInProgress, iam.DeletionTaskStatusTypeNotStarted}, | 
					
						
							|  |  |  |  		Target:  []string{iam.DeletionTaskStatusTypeSucceeded}, | 
					
						
							|  |  |  |  		Refresh: statusDeleteServiceLinkedRole(conn, deletionTaskID), | 
					
						
							|  |  |  | -		Timeout: 5 * time.Minute,
 | 
					
						
							| 
									
										
										
										
											2022-05-03 09:44:47 +00:00
										 |  |  | +		Timeout: 15 * time.Second,
 | 
					
						
							| 
									
										
										
										
											2022-04-16 10:02:57 +00:00
										 |  |  |  		Delay:   10 * time.Second, | 
					
						
							|  |  |  |  	} | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  | -- 
 | 
					
						
							|  |  |  | 2.25.1 | 
					
						
							|  |  |  | 
 |