snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.] snippet-sourceauthor:[Doug-AWS] snippet-sourcedescription:[Creates an EC2 security group.] snippet-keyword:[Amazon Elastic Compute Cloud] snippet-keyword:[AuthorizeSecurityGroupIngress function] snippet-keyword:[CreateSecurityGroup function] snippet-keyword:[DescribeVpcs function] snippet-keyword:[Go] snippet-sourcesyntax:[go] snippet-service:[ec2] snippet-keyword:[Code Sample] snippet-sourcetype:[full-example] snippet-sourcedate:[2020-1-6]

    Copyright 2010-2020, Inc. or its affiliates. All Rights Reserved.
    This file is licensed under the Apache License, Version 2.0 (the "License").
    You may not use this file except in compliance with the License. A copy of
    the License is located at

    This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
    CONDITIONS OF ANY KIND, either express or implied. See the License for the
    specific language governing permissions and limitations under the License.