AWS ElasticBeanstalk Windows Instance Time Sync in a private VPC

0

Hi we are deploying a Dotnet windows web application on the ElasticBeanstalk in a private VPC without internet. Recently we noticed that the time is not correct on the EBS windows instance and it caused our software bugs.

We understand that we can "Keeping Time With Amazon Time Sync Service" without internet by run some windows powershell scripts.

Reference is here: https://aws.amazon.com/blogs/aws/keeping-time-with-amazon-time-sync-service

My question is that how to run this script when we deploy the application to the ElasticBeanstalk? Could someone please provide a sample configuration file or steps to achieve this?

By the way, I have raised the same AWS support ticket 5 days ago but nobody is assigned to the ticket so I have to ask here.

Thank you.

已提問 2 年前檢視次數 300 次
1 個回答
0

Hello,

Apologies for delay with response on the support ticket

From August 2018 release, All Amazon Windows AMIs uses the Amazon Time Sync Service by default.

This time service is accessible from any EC2 Region at the 169.254.169.123 endpoint.Your instance does not require access to the internet, and you do not have to configure your security group rules or your network ACL rules to allow access. Please refer to documentation[1] to know more.

If your creating the Elastic Beanstalk environments with the latest AMIs please note that there is no need of adding config file as listed in the document [2]because the latest AMIs use Amazon Time Sync Service by default.

Resources: [1] https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/windows-set-time.html#default-ntp-settings [2] https://aws.amazon.com/blogs/aws/keeping-time-with-amazon-time-sync-service

AWS
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南