Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
automatizace:aws [2023/09/14 10:51]
tomas [Systems manager (SSM)]
automatizace:aws [2024/12/13 08:09] (current)
tomas [EKS Elastic Kubernetes Service]
Line 13: Line 13:
 ''%%aws configure --profile%% AAA'' ... nastaví kredence pro profil AAA, může být název účtu\\ ''%%aws configure --profile%% AAA'' ... nastaví kredence pro profil AAA, může být název účtu\\
 ''export AWS_PROFILE=AAA'' ... nastaví pro aktualní shell profil AAA\\ ''export AWS_PROFILE=AAA'' ... nastaví pro aktualní shell profil AAA\\
 +''export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE''\\ 
 +''export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY''\\ 
 +''export AWS_DEFAULT_REGION=eu-central-1''\\ 
 +''aws sts get-caller-identity'' ... ukáže, jaké identitě patří token, který požívám v AWS CLI\\ 
 +''aws sts assume-role-with-web-identity --role-arn ROLEARN --role-session-name SESSION1 --web-identity-token TOKEN'' ... autentikace pomoci web tokenu\\ 
 +''aws sts assume-role --role-arn ROLEARN --role-session-name SESSION1'' ... spojení s novou rolí\\
 ==== ECR Elastic Container Registry ==== ==== ECR Elastic Container Registry ====
 +''%%aws ecr describe-repositories%%'' ... seznam ECR repozitářů pro AWS účet\\
 +''%%aws ecr get-authorization-token%%'' ... obdrží autorizační token v base64 tvaru (jméno AWS a heslo)\\
 +''%%aws ecr list-images --repository-name%%''  ... vylistování obsahu ECR repozitáře\\
 +''%%aws ecr get-login-password --region region | docker login --username AWS --password-stdin%%''\\
 +''%%aws_account_id.dkr.ecr.region.amazonaws.com%%'' ... nastaví token ECR pro Docker\\
  
-''%%aws ecr list-images --repository-name%%''  ... vylistování obsahu ECR repozitáře\\ +==== EKS Elastic Kubernetes Service ==== 
-%%aws ecr get-login-password --region region | docker login --username AWS --password-stdin aws_account_id.dkr.ecr.region.amazonaws.com%% ... nastaví token ECR pro Docker\\+''%%aws eks update-kubeconfig --region eu-central---name czdxl-non-prod-infra-applicationeks --role-arn "ARN"%%''\\
  
 ==== VPC - Virtual Private Cloud - virtuální sítě ==== ==== VPC - Virtual Private Cloud - virtuální sítě ====