-
Notifications
You must be signed in to change notification settings - Fork 68
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
aws sso login Error in creating session object : profile "default" is configured to use SSO but is missing required configuration: sso_region, sso_start_url #200
Comments
I was able to fix the first error services: but now it is giving other errors, its like it doesn't use the sso config Debug] processor: segment batch size: 2. capacity: 50 |
I am creating an xray daemon like this xray-daemon: I added region because I was getting an error even though region is specified in my config, I am using However, I keep getting this error after compiliing locally and running I get this But as you can see above these values are set this pr should have fixed this? I have verified the aws sdk go from this link aws/aws-sdk-go#4054 (comment) Version 1.44.275 Trying V2.... |
Checking doc AWS SSO Support in the AWS SDK for Go v1
X-Ray Daemon code does contain the similar code SharedConfigEnable https://github.com/aws/aws-xray-daemon/blame/56bcdadc0e5808f4428ed6e3e54a88a2ceca2f82/pkg/conn/conn.go#L294 |
How can I enable the session.SharedConfigEnable ? I have reviewed the doc you shared as well as |
I'm struggling with setting up a local instance of xra-daemon on my Windows developer machine. The package I'm using is: https://s3.us-east-2.amazonaws.com/aws-xray-assets.us-east-2/xray-daemon/aws-xray-daemon-windows-process-3.x.zip My set up is, basically, from scratch (remove all profiles from ~/.aws/config, remove ~/.aws/sso/cache completely):
After that, I'm able to use
I've got an idea, and I edited the
and this change allowed the
After I got this, I accidentaly found this similar report elsewhere, and the person there did almost exactly the same: gruntwork-io/terragrunt#2604 (comment) However, that's not the end of it, at least for me.
But on my computer, I had different files there:
I played a bit, and discovered that the hash-name of the file wanted by
So, for some unknown reason, the I tried playing around with copying files. I had those
So, it works now. Yay! It seems the solution is 100% repeatable. If I observe the logs of But - I had 2 credential files. Here's how they looked like (anonymized ofc, and FORMATTED):
The xray daemon wanted the second file. That one having attributes like So, the full workaround was, for me:
HTH |
2023-06-01T20:14:16Z [Info] Initializing AWS X-Ray daemon 3.3.7
2023-06-01T20:14:16Z [Debug] Listening on UDP xray-daemon:2000
2023-06-01T20:14:16Z [Info] Using buffer memory limit of 78 MB
2023-06-01T20:14:16Z [Info] 1248 segment buffers allocated
2023-06-01T20:14:16Z [Debug] Using proxy address:
2023-06-01T20:14:17Z [Error] Error in creating session object : profile "default" is configured to use SSO but is missing required configuration: sso_region, sso_start_url
services:
xray-daemon:
command:
- '-o'
- '--log-level=debug'
- '--bind=xray-daemon:2000'
build:
context: ./
dockerfile: Dockerfile.xray
volumes:
- ~/.aws/:/root/.aws/
FROM amazonlinux
RUN yum install -y unzip
RUN curl -o daemon.zip https://s3.us-east-2.amazonaws.com/aws-xray-assets.us-east-2/xray-daemon/aws-xray-daemon-linux-3.x.zip
RUN unzip daemon.zip && cp xray /usr/bin/xray
ENTRYPOINT ["/usr/bin/xray", "-t", "0.0.0.0:2000", "-b", "0.0.0.0:2000"]
EXPOSE 2000/udp
EXPOSE 2000/tcp
The text was updated successfully, but these errors were encountered: