目录

Aws

AWS

1 概述

2 S3

2.1 S3 Command

2.1.1 复制文件(正则表达式)

aws s3 cp s3://xxxx/infoc2.cm.xxx.com/ ./ --recursive --include "E2WJDUAXKAHT4N.2015-08-12-*.ffb06261.gz" --exclude "*"
aws s3 cp s3://xxx/infoc2.cm.xxx.com/ s3://xxx/wangbokun --recursive --include E2WJDUAXKAHT4N.2015-08-12-*.gz --exclude *
aws s3 cp s3://xxx/infoc2.cm.xxx.com/ ./ --recursive --exclude "*" --include "E2WJDUAXKAHT4N.2015-08-12-*" --profile kun

2.1.2 S3 权限

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws-cn:iam::xxxxxxx:user/$user"
            },
            "Action": [
                "s3:ListBucket",
                "s3:GetObject",
                "s3:PutObject",
                "s3:DeleteObject"
            ],
            "Resource": [
                "arn:aws-cn:s3:::$bucket/*",
                "arn:aws-cn:s3:::$bucket"
            ],
            "Condition": {
                "StringEquals": {
                    "aws:SourceVpce": [
                        "vpce-xxxxx",
                        "vpce-xxx"
                    ]
                }
            }
        },
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws-cn:iam::xxxxxxx:user/$user"
            },
            "Action": [
                "s3:ListBucket",
                "s3:GetObject",
                "s3:PutObject",
                "s3:DeleteObject"
            ],
            "Resource": [
                "arn:aws-cn:s3:::$bucket/*",
                "arn:aws-cn:s3:::$bucket"
            ],
            "Condition": {
                "IpAddress": {
                    "aws:SourceIp": [
                        "10.10.10.10/32",
                        "10.10.10.10/32",
                        "10.10.10.10/32",
                        "10.10.10.10/32"
                    ]
                }
            }
        }
    ]
}

3 EC2

3.1 ec2

3.2 Volumes

3.2 Elb-Alb

3.3 AMI

3.4 Reserved Instances(RI预留实例)

3.5 Spot Requests (竞价实例)

4 EMR

5 DBS

5.1 RDS

5.2 ElastiCache

6 Machine Learning

6.1 Polly

7 Network

7.1 VPC

7.2 SubNet

7.3 region 2 region VPC

8 Scurity

8.1 IAM

9 Management Tools

9.1 CloudWatch

10 Lambda