- 최신
- 최다 투표
- 가장 많은 댓글
Hello.
I think this can be changed by setting "TZ" in the environment variable in the ECS task definition.
For example, if you want to set Tokyo time, you can change it by specifying "TZ" as the key of the environment variable and setting "Asia/Tokyo" as the value.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#container_definition_environment
By the way, please note that depending on the container image used in the task definition, it may not be possible to set the environment variable even if you use "TZ".
Check the base image documentation for how to change it.
https://wiki.alpinelinux.org/wiki/Setting_the_timezone
set env var "TZ" in the task definition
{
"family": "your-task-family",
"containerDefinitions": [
{
"name": "your-container-name",
"image": "your-image",
"cpu": 256,
"memory": 512,
"essential": true,
"environment": [
{
"name": "TZ",
"value": "America/New_York"
}
],
...
}
],
...
}
Hi,
A fully detailled article on this topic: https://axelhodler.medium.com/setting-a-specific-timezone-in-aws-fargate-c328dfe4210c
You'll get the how-to and the rationale.
Best,
Didier
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 3달 전
- AWS 공식업데이트됨 일 년 전
When configuring from the management console, you can configure from the task definition as shown in the image below.