You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run my program on own VM. I try to use config.LoadDefaultConfig(ctx, config.WithSharedConfigProfile("test")) and pass it to cloudwatchlogs.NewFromConfig(cfg). But I have got error Error: no EC2 IMDS role found, operation error ec2imds: GetMetadata, canceled, context deadline exceeded. I do not want to use env like AWS_ACCESS_KEY_ID or AWS_SECRET_ACCESS_KEY. Can I somehow do that only by SSO profile? I also see function like config.LoadSharedConfigProfile() but I am not sure how to use it combine with cloudwatchlogs.NewFromConfig(cfg). Please help
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I run my program on own VM. I try to use
config.LoadDefaultConfig(ctx, config.WithSharedConfigProfile("test"))
and pass it tocloudwatchlogs.NewFromConfig(cfg)
. But I have got errorError: no EC2 IMDS role found, operation error ec2imds: GetMetadata, canceled, context deadline exceeded
. I do not want to use env like AWS_ACCESS_KEY_ID or AWS_SECRET_ACCESS_KEY. Can I somehow do that only by SSO profile? I also see function likeconfig.LoadSharedConfigProfile()
but I am not sure how to use it combine withcloudwatchlogs.NewFromConfig(cfg)
. Please helpBeta Was this translation helpful? Give feedback.
All reactions