amazon-ecs-exec-checker icon indicating copy to clipboard operation
amazon-ecs-exec-checker copied to clipboard

If BSD sed is used, the check with ap-northeast-1 fails.

Open amber-lamp-dev opened this issue 2 years ago • 0 comments

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.

amber-lamp-dev avatar Apr 08 '22 12:04 amber-lamp-dev