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.

asked 2 years ago300 views
1 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions