- 최신
- 최다 투표
- 가장 많은 댓글
Hi, I've received an update frow AWS support.
The above looks to be a cloudformation + python error. With this error I was able to locate an issue regarding the Cloudformation Helper Script in the userdata utilizing the latest version from the public url (https://s3.us-east-1.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-win64-latest.exe), to cause issues when performing a windows restart during cfn bootstrapping [1].
The workaround at this stage is to down grade 2.0-10 (https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-2.0-10.win64.exe). Or as you have done already by rolling back to the June AMI. The internal team is aware of this issue and working on a fix.
I will monitor this issue and inform you as soon as there is a fix for this. If you need further assistance regarding the CFN Bootstrap, I would encourage you to reach out to the Cloudformation Team, along with the below log files [2]: -The EC2 configuration log at C:\Program Files\Amazon\Ec2ConfigService\Logs\Ec2ConfigLog.txt -The cfn-init log at C:\cfn\log\cfn-init.log
this works fine for me:
<script>
powershell.exe -Command "(New-Object Net.WebClient).DownloadFile('https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-2.0-12.win64.exe','C:\aws-cfn-bootstrap-py3-2.0-12.win64.exe')"
START /wait C:\aws-cfn-bootstrap-py3-2.0-12.win64.exe /Q
cfn-init.exe -v -s ${AWS::StackId} -r EC2Instance --configsets default --region ${AWS::Region}
</script>
make sure to change "EC2Instance" to your logical-id
I've got the exact same problem with Windows Server 2019 July AMI. Do you have a solution ? For now, I will recreate my golden ami from june ami provide by aws....
We reverted to AWS's June 2022 image for now in hopes they would fix it. I contacted AWS Support and they wouldn't do anything since we don't pay for support. They suggested I post here, but unless AWS sees this question and resolves the issue, I'm skeptical it'll get fixed.
I'll open a case on my side since we have AWS support.....I'll add info in this post....
Awesome! Thank you!
please let us know. Same issue, again!
@gMergulhao we have a similar issue with the August 2022 Serer 2012 R2 RTM English image, but not exactly the same. Instead of saying the file is missing, we got an error about the file or directory already being in use so the Autoscaling Launch Config can't complete its processes.
similar with August 2019 Server. Installing an older cfn-boostrap is a pain since the required c++ redist has been superseeded and the installer refuses to continue.. Thanks to your tip, i changed my ImageBuilder Recipe to the June AMI and updated to cfn-bootstrap 2.0-12
Hi, on my side, all is now working as expected with August, Windows Server 2019 AMI and cfn-int 2.0.15
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 2년 전
Thanks for the follow-up. We don't specify a version of this helper script in the user data, so we have to wait on them to fix it. It's at least good to know they've located the issue and have plans to fix it.