amazon-ecs-exec-checker
amazon-ecs-exec-checker copied to clipboard
If BSD sed is used, the check with ap-northeast-1 fails.
The following error occurred when running ECS Exec Checker on Mac.
Could not connect to the endpoint URL: "https://sts.ap-notheast-1.amazonaws.com/"
Verified that the region setting for profile is correct.
$ aws configure get region
ap-northeast-1
When using BSD sed, it seems that “r” is removed from ap-northeast-1 in the following places. https://github.com/aws-containers/amazon-ecs-exec-checker/blob/fc5fddebdc06bc83ab87d9cae3208111ad5bb1c7/check-ecs-exec.sh#L128
“r” was not removed when gnu-sed was used.
$ aws configure get region | sed -e "s/\r//g"
ap-notheast-1
$ brew install gnu-sed
$ aws configure get region | gsed -e "s/\r//g"
ap-northeast-1
I think it would be better to describe it in the prerequisites.