0
aws ec2 create-security-group --group-name test-sg --description "test"
顯示輸出:
{
"GroupId": "sg-79e9441d"
}
增加了一個新的規則給它:
aws ec2 authorize-security-group-ingress --group-name test-sg --port 8091 --protocol tcp
描述爲:
aws ec2 describe-security-groups --group-name test-sg
輸出不顯示安全組中的規則:
{
"SecurityGroups": [
{
"IpPermissionsEgress": [
{
"IpProtocol": "-1",
"IpRanges": [
{
"CidrIp": "0.0.0.0/0"
}
],
"UserIdGroupPairs": [],
"PrefixListIds": []
}
],
"Description": "test",
"IpPermissions": [],
"GroupName": "test-sg",
"VpcId": "vpc-c561f9a0",
"OwnerId": "598307997273",
"GroupId": "sg-79e9441d"
}
]
}
缺少了什麼?