lundi 18 juillet 2016

how to associate a newly created EC2 security group with an instance


How do I add an EC2 instance to a newly created security group? The security group was created with

client = session.client("ec2")
group_id = client.create_security_group(
    DryRun=False,
    GroupName=group_name,
    VpcId=vpc_id,
    Description=description
)

Aucun commentaire:

Enregistrer un commentaire