machine icon indicating copy to clipboard operation
machine copied to clipboard

The use of aws drivers in China is different from the official documentation.

Open Naist4869 opened this issue 5 years ago • 0 comments

For example:

$aws ec2 describe-subnets
{
    "Subnets": [
        {
            "MapPublicIpOnLaunch": true,
            "AvailabilityZoneId": "cnnw1-az2",
            "AvailableIpAddressCount": 4091,
            "DefaultForAz": true,
            "SubnetArn": "arn:aws-cn:ec2:cn-northwest-1:241111561648:subnet/subnet-059594a8b7187fb3b",
            "Ipv6CidrBlockAssociationSet": [],
            "VpcId": "vpc-034b2afd5c458e2d1",
            "State": "available",
            "AvailabilityZone": "cn-northwest-1b",
            "SubnetId": "subnet-059594a8b7187fb3b",
            "OwnerId": "241111561648",
            "CidrBlock": "172.31.16.0/20",
            "AssignIpv6AddressOnCreation": false
        },
}

--amazonec2-zone = cn-northwest-1b // Need to use full name not 'b' --amazonec2-endpoint = ec2.cn-northwest-1.amazonaws.com.cn // not "ec2.cn-northwest-1.amazonaws.com" https://docs.amazonaws.cn/en_us/general/latest/gr/cnnorthwest_region.html

https://docs.docker.com/machine/drivers/aws/ All the examples in the document are not work to me.

docker-machine create --driver amazonec2 --amazonec2-endpoint ec2.cn-northwest-1.amazonaws.com.cn --amazonec2-vpc-id vpc-034b2afd5c458e2d1 --amazonec2-subnet-id subnet-059594a8b7187fb3b --amazonec2-zone cn-northwest-1b --amazonec2-region cn-northwest-1  aws-taobaoke

worked for me

Naist4869 avatar Sep 04 '20 06:09 Naist4869