R&D/클라우드

boto3 security group

sunshout 2016. 6. 4. 21:15

http://serverfault.com/questions/729457/python-boto3-allow-ingress-security-groups



    ec2 = boto3.resource('ec2')
    mysg = ec2.create_security_group(GroupName="testgroup",Description='testme')
    mysg.authorize_ingress(IpProtocol="tcp",CidrIp="0.0.0.0/0",FromPort=80,ToPort=80)