Difference between revisions of "AWS"

From Wasya Wiki
Jump to: navigation, search
(EC2)
Line 37: Line 37:
 
   aws s3 sync s3://<from> s3://<to> --profile <profile>
 
   aws s3 sync s3://<from> s3://<to> --profile <profile>
  
= EC2 =
+
* [[ aws 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:23, 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>