Temporary credentials are not expiring after session duration with credential-process

0

When we execute command command = ./aws_signing_helper credential-process --certificate ./certificate.pem --private-key ./privkey.pem --session-duration 900 --trust-anchor-arn arn:666hggfg --profile-arn arn:nbvhj765 --role-arn arn:mhgjdgd678 It generates temporary credentials on the stdout, but the credentials are not getting expired after 15 mins. As session duration is defined as 15 mins, new set of temporary credentials should be generated at 10 mins. Is there a reason for this?

Also, command = ./aws_signing_helper update --certificate ./certificate.pem --private-key ./privkey.pem --session-duration 900 --trust-anchor-arn arn:8645654fghg --profile-arn arn:jhgjhgf7632 --role-arn arn:jgfgge432 writes output to credentials file, though credentials are regenerated every 10 mins. Is there a way if we do not want to write credentails in the credential file, but just want to directly set in AWS.config.credentials?

Namita
질문됨 3달 전132회 조회
1개 답변
1

Make sure you are passing the correct format for the trust-anchor-arn, profile-arn and role-arn:

./aws_signing_helper credential-process \
      --certificate /path/to/certificate \
      --private-key /path/to/private-key \
      --trust-anchor-arn arn:aws:rolesanywhere:region:account:trust-anchor/TA_ID \
      --profile-arn arn:aws:rolesanywhere:region:account:profile/PROFILE_ID \
      --role-arn arn:aws:iam::account:role/role-name-with-path
profile picture
전문가
답변함 2달 전
  • Arns format is correct (here i have not posted the values i am using). First time credentials are generated, but they contain the same value after 15 mins too. My understanding is AWS.config.credentials should automatically get updated after 15 mins.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠