Difference between revisions of "AWS"
From Wasya Wiki
Line 2: | Line 2: | ||
* [[ aws rds ]] | * [[ aws rds ]] | ||
− | + | = Install = | |
* 2023-12-19 | * 2023-12-19 | ||
* From: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html | * From: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html | ||
Line 17: | Line 17: | ||
</pre> | </pre> | ||
− | + | = Permissions = | |
<pre> | <pre> | ||
Line 32: | Line 32: | ||
</pre> | </pre> | ||
+ | = s3 = | ||
== duplicate a bucket == | == duplicate a bucket == | ||
aws s3 sync s3://<from> s3://<to> --profile <profile> | aws s3 sync s3://<from> s3://<to> --profile <profile> | ||
+ | |||
+ | = EC2 = | ||
+ | == keypairs == | ||
+ | |||
+ | * From: https://docs.aws.amazon.com/cli/latest/userguide/cli-services-ec2-keypairs.html | ||
+ | |||
+ | <pre> | ||
+ | |||
+ | ## us-east-1 | ||
+ | ## idrsa_ecs_key1 | ||
+ | |||
+ | ## us-east-2 | ||
+ | ## idrsa_ecs_key2 | ||
+ | |||
+ | |||
+ | aws ec2 create-key-pair --key-name idrsa_ecs_key2 --query 'KeyMaterial' \ | ||
+ | --output text --profile rds_driver_1 > idrsa_ecs_key2.pem | ||
+ | |||
+ | aws ec2 describe-key-pairs --key-name idrsa_ecs_key2 --profile rds_driver_1 | ||
+ | </pre> |
Revision as of 20:22, 29 March 2024
Install
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install
## ~/.aws/credentials [ish-ses] aws_access_key_id = <> aws_secret_access_key = <>
Permissions
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "ses:SendRawEmail", "Resource": "*" } ] }
s3
duplicate a bucket
aws s3 sync s3://<from> s3://<to> --profile <profile>
EC2
keypairs
## us-east-1 ## idrsa_ecs_key1 ## us-east-2 ## idrsa_ecs_key2 aws ec2 create-key-pair --key-name idrsa_ecs_key2 --query 'KeyMaterial' \ --output text --profile rds_driver_1 > idrsa_ecs_key2.pem aws ec2 describe-key-pairs --key-name idrsa_ecs_key2 --profile rds_driver_1