File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -118,26 +118,6 @@ def get_caller_identity() -> None:
118118 except ClientError as e :
119119 logger .error (f"An error occurred: { e } " )
120120
121-
122- def delete_aws_directory () -> None :
123- """
124- Delete the .aws directory in the user's home directory.
125-
126- This function removes the .aws directory and all its contents from the user's
127- home directory. If the directory does not exist, it logs a message.
128- """
129- aws_dir = Path .home () / ".aws"
130-
131- if aws_dir .exists ():
132- try :
133- shutil .rmtree (aws_dir )
134- logger .info (f"Deleted all contents under { aws_dir } ." )
135- except Exception as e :
136- logger .error (f"Error deleting { aws_dir } : { e } " )
137- else :
138- logger .info (f"{ aws_dir } does not exist." )
139-
140-
141121def run_shell_command (
142122 command : List [str ], env_vars : Optional [Dict [str , str ]] = None
143123) -> None :
@@ -245,7 +225,6 @@ def deploy_resources(
245225 # TODO: Replace with proper waiter implementation
246226 time .sleep (15 )
247227
248- delete_aws_directory ()
249228 get_caller_identity ()
250229
251230
You can’t perform that action at this time.
0 commit comments