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/02/10 09:11]
tomas
automatizace:aws [2024/03/14 18:16] (current)
tomas
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''\\ 
 +''ws sts get-caller-identity'' ... ukáže, jaké identitě patří token, který požívám v AWS CLI\\
 ==== ECR Elastic Container Registry ==== ==== ECR Elastic Container Registry ====
  
Line 32: Line 35:
 ''%%aws --profile aws-automation s3api list-buckets --query "Buckets[].Name"%%'' ... další možnost vylistování\\ ''%%aws --profile aws-automation s3api list-buckets --query "Buckets[].Name"%%'' ... další možnost vylistování\\
 ''aws s3 ls s3:/BUCKET/ADRESAR1/ADRESAR2 --recursive --human-readible'' ... vylistování obsahu S3 Bucketu\\ ''aws s3 ls s3:/BUCKET/ADRESAR1/ADRESAR2 --recursive --human-readible'' ... vylistování obsahu S3 Bucketu\\
-%%aws s3 mb s3://hands-on-cloud-example-2 --region us-east-2%% ... vytvoří bucket\\ +''%%aws s3 mb s3://hands-on-cloud-example-2 --region us-east-2%%'' ... vytvoří bucket\\ 
-%%aws s3 rb s3://hands-on-cloud-example-2 --force%% ... smaže neprázdný bucket\\ +''%%aws s3 rb s3://hands-on-cloud-example-2 --force%%'' ... smaže neprázdný bucket\\ 
-%%aws s3 rm s3://BUCKER/SOUBOR.png%% ... smaže soubor\\ +''%%aws s3 rm s3://BUCKER/SOUBOR.png%%'' ... smaže soubor\\ 
-%%aws s3 sync s3://ULOZISTE1/ADRESAR s3://ULOZISTE2/ADRESAR --region us-west-2 --source-region us-east-1 --sse AES256  --delete%% ... synchronizace bucketů\\ +''%%aws s3 sync s3://ULOZISTE1/ADRESAR s3://ULOZISTE2/ADRESAR --region us-west-2 --source-region us-east-1 --sse AES256  --delete%%'' ... synchronizace bucketů\\ 
-%%aws s3 mv s3://ULOZISTE1/CESTA s3://ULOZISTE2/CESTA --recursive%% ... přejmenování, přesun\\ +''%%aws s3 mv s3://ULOZISTE1/CESTA s3://ULOZISTE2/CESTA --recursive%%'' ... přejmenování, přesun\\ 
-%%aws s3api put-object --bucket ULOZISTE --key ADRESAR/%% ... vytvoření prázdného adresáře\\ +''%%aws s3api put-object --bucket ULOZISTE --key ADRESAR/%%'' ... vytvoření prázdného adresáře\\ 
-aws s3 cp s3://ULOZISTE/ADRESAR ./ADRESAR --recursive ... rekurzivní kopírování\\+%%aws s3 cp s3://ULOZISTE/ADRESAR ./ADRESAR --recursive%% ... rekurzivní kopírování\\
 %%aws s3 cp ./ADRESAR s3://ULOZISTE/ADRESAR --recursive --exclude "*" --include "*.png"%% ... selektivní kopírování\\ %%aws s3 cp ./ADRESAR s3://ULOZISTE/ADRESAR --recursive --exclude "*" --include "*.png"%% ... selektivní kopírování\\
 %%aws s3 cp ./SOUBOR.png s3://ULOZISTE --storage-class ONEZONE_IA%% ... ukládání na konkrétnní typ storage\\ %%aws s3 cp ./SOUBOR.png s3://ULOZISTE --storage-class ONEZONE_IA%% ... ukládání na konkrétnní typ storage\\
 +
 +==== Event Bridge ====
 +časovač - scheduler - cron
 +
 +==== Lambda ====
 +Joby ve formě v kontejnerů
 +==== BeanStalk ====
 +hostovaní webových aplikací
 +
 +==== Systems manager (SSM) ====
 +Správa infrastruktury - automatické patchování atd.
 +
 +==== Cloudfront - CDN ====