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 [2024/03/14 18:16]
tomas
automatizace:aws [2024/12/13 08:09] (current)
tomas [EKS Elastic Kubernetes Service]
Line 16: Line 16:
 ''export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY''\\ ''export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY''\\
 ''export AWS_DEFAULT_REGION=eu-central-1''\\ ''export AWS_DEFAULT_REGION=eu-central-1''\\
-''ws sts get-caller-identity'' ... ukáže, jaké identitě patří token, který požívám v AWS CLI\\+''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 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 get-login-password --region region | docker login --username AWS --password-stdin%%''\\ 
 +''%%aws_account_id.dkr.ecr.region.amazonaws.com%%'' ... nastaví token ECR pro Docker\\ 
 + 
 +==== EKS Elastic Kubernetes Service ==== 
 +''%%aws eks update-kubeconfig --region eu-central-1 --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ě ====