Warning: Undefined array key 1 in /DISK2/WWW/lipensky.cz/tomas/inc/auth.php on line 78 automatizace:aws [Tomas Lipensky - vedomostni koutek] Warning: Undefined array key "stylesheets" in /DISK2/WWW/lipensky.cz/tomas/inc/StyleUtils.php on line 102
Warning: Undefined array key -1 in /DISK2/WWW/lipensky.cz/tomas/inc/html.php on line 1458

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/11/29 09:15]
tomas [AWS CLI]
automatizace:aws [2026/04/15 10:25] (current)
tomas [Secretsmanager]
Line 1: Line 1:
 +[[https://health.aws.amazon.com/health/status]] ... informace o výpadcích v AWS\\
 [[https://aws.amazon.com/]]\\ [[https://aws.amazon.com/]]\\
  
Line 13: Line 14:
 ''%%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\\
-''ws sts get-caller-identity'' ... ukáže, jaké identitě patří token, který požívám v AWS CLI\\ +''export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE''\\ 
-==== ECR Elastic Container Registry ====+''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í\\
  
 +
 +==== IAM ====
 +''aws iam list-roles'' ... seznam IAM rolí\\
 +''%%aws iam list-attached-role-policies --role-name=role%%'' ... zeznam přiřazených rolí\\
 +''aws iam list-policies'' ... seznam IAM policy\\
 +
 +==== System Manager ====
 +aws ssm describe-parameters ... vylistuje parametry ze SSM\\
 +aws ssm get-parameters --names /muj/moje ... vypíše hodnotu parametru\\
 +
 +
 +==== 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ě ====
Line 54: Line 77:
  
 ==== Cloudfront - CDN ==== ==== Cloudfront - CDN ====
 +
 +==== Secretsmanager ====
 +aws secretsmanager list-secrets ... vylistuje záznamy secretů\\
 +aws secretsmanager get-secret-value --secret-id MojeHeslo ... vypíše hodnotu secretu\\
 +aws secretsmanager get-secret-value --secret-id SECRET_IT --query SecretString --output text | jq -r .password ... vypíše heslo ve formě textu (bez zpětných lomítek). Zpracuje ho pomocí jq\\
 +
 +
 +==== Bedrock ====
 +aws bedrock list-foundation-models ... seznam dostupných modulů Bedrocku, včetně modelID a jejich možností\\
 +
 +===== Amazon Q =====