【以下的问题经过翻译处理】 AWS于2022年7月13日发布了最新的Windows Server 2012 R2 AMIs。今天测试时,发现ami-0c7328b3dbb11f540已损坏,无法在启动时正常运行powershell命令,因为文件系统中缺少文件。恢复到6月的镜像(ami-09e13647920b2ba1d)则可以使我们的自动扩展EC2实例正常启动。
具体而言,下面是导致自动扩展构建失败的错误信息。
2022-07-15 13:43:32,501 [ERROR] -----------------------BUILD FAILED!------------------------
2022-07-15 13:43:32,501 [ERROR] Unhandled exception during build: [Errno 2] No such file or directory: 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\tmp2_4a69w_/subp-stderr-8e0905c1-1293-4379-bbb8-bf88a2978290.txt'
Traceback (most recent call last):
File "cfn-init", line 176, in <module>
File "cfnbootstrap\construction.pyc", line 137, in build
File "cfnbootstrap\construction.pyc", line 564, in build
File "cfnbootstrap\construction.pyc", line 578, in run_config
File "cfnbootstrap\construction.pyc", line 146, in run_commands
File "cfnbootstrap\command_tool.pyc", line 92, in apply
File "cfnbootstrap\util.pyc", line 587, in call
File "cfnbootstrap\util.pyc", line 562, in call
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\tmp2_4a69w_/subp-stderr-8e0905c1-1293-4379-bbb8-bf88a2978290.txt'