我正在使用 aws eks fargate deployment.yaml 文件部署我的服务,我的服务将连接到 dynamodb,并且在加载 id 时会抛出错误。即使我通过以下命令获得了网络令牌文件。
kubectl exec -n first-namespace first-deployment-fhghgj567kkk-257xq env | grep AWS
AWS_REGION=us-east-1
AWS_ROLE_ARN=arn:aws:iam::263011912432:role/firstRole
AWS_WEB_IDENTITY_TOKEN_FILE=/var/run/secrets/eks.amazonaws.com/serviceaccount/token
Run Code Online (Sandbox Code Playgroud)
但它仍然抛出以下错误。
Caused by: com.amazonaws.SdkClientException: Unable to load AWS credentials from any provider in the chain:
[EnvironmentVariableCredentialsProvider:
Unable to load AWS credentials from environment variables (AWS_ACCESS_KEY_ID (or AWS_ACCESS_KEY)
and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY)),
SystemPropertiesCredentialsProvider: Unable to load AWS credentials from Java system properties (aws.accessKeyId and aws.secretKey),
WebIdentityTokenCredentialsProvider: Unable to locate specified web identity token file:
/var/run/secrets/eks.amazonaws.com/serviceaccount/token,
com.amazonaws.auth.profile.ProfileCredentialsProvider@7b58e085: profile file cannot be …Run Code Online (Sandbox Code Playgroud) 我想span使用这样的:before属性在css中的标签上方添加一个空行。
______
Hi
Run Code Online (Sandbox Code Playgroud)
我试过使用border-topforspan标签。但这不是我的要求。我搜索并尝试过,但没有奏效。请帮忙。