Admin Security Private Link

0

I am following the link:- https://docs.snowflake.com/en/user-guide/admin-security-privatelink

This is to set up the private link between AWS and Snowflake.

The first command is aws sts get-federation-token --name sam

Here i am replacing the name Sam with Root user and executing in Cloudshell.

error occurred (AccessDenied) when calling the GetFederationToken operation: Cannot call GetFederationToken with session credentials

Not sure if it has to do with permissions. Please advise

2 回答
1

I assume you've logged into the AWS Console with a Role? Roles, federation and temporary credentials are considered session credentials and thus cannot be used to obtain a new session token via a GetSessionToken call.

You'll have to using an IAM User to call that operation.

AWS
专家
Raphael
已回答 1 年前
  • I logged in using root user and then executing the command on cloudshell. Am I missing something here?

0

The error message you're encountering indicates that you're using session credentials (temporary security credentials) to call the GetFederationToken operation, which is not allowed. The GetFederationToken action must be called using long-term AWS security credentials, such as those associated with an IAM user.

# 1. Configure the AWS CLI to use the IAM user's access key and secret key
aws configure
# Enter IAM user's access key, secret key, and desired region when prompted

# 2. Run the aws sts get-federation-token command
aws sts get-federation-token --name YOUR_IAM_USER_NAME
# Replace YOUR_IAM_USER_NAME with the appropriate IAM user name
profile picture
专家
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则