Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amber-lamp-dev opened this issue Apr 8, 2022 · 0 comments
Open

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

amber-lamp-dev opened this issue Apr 8, 2022 · 0 comments

Comments

@amber-lamp-dev
Copy link

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.

REGION=$(${AWS_CLI_BIN} configure get region | sed -e 's/\r//g' || echo "")

“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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant