Powershell script to modify eks nodegroup across multiple accounts

0

Hi everyone, Need assistance with writing a PS script that will log into different AWS GovCloud accounts and modify the eks nodegroup. I know the eks command would be like this "aws eks update-nodegroup-config --cluster-name <name>, --nodegroup-name <name> minSize=#,maxSize=#,desiredSize=#"

But I'm not sure how to get the creds to log into each account? We use SSO if that helps. Don't want to create a new IAM user/role if possible.

1개 답변
0
수락된 답변

I learned for the first time that AWS SSO is also available in AWS GovCloud.
I believe this would allow us to manage multiple accounts.
https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-sso.html

The following documents may be of use to you.
https://aws.amazon.com/jp/blogs/containers/a-quick-path-to-amazon-eks-single-sign-on-using-aws-sso/

If the above is difficult, it will be necessary to create a cross-account access IAM role or take other action.
https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html

profile picture
전문가
답변함 10달 전
profile picture
전문가
검토됨 10달 전

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

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

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

관련 콘텐츠