Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

feat: Filtering imported security groups by IDs #410

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 16, 2018

  1. feat: Filtering imported security groups by IDs

    `terraforming sg` now accepts one or more security groups via `--group-ids sg-12345 sg-234456`.
    This limits the tf output to include only the two security groups.
    
    Similarly, `terraform sg --tfstate --group-ids sg-12345` limits the tfstate output to include only the security group.
    
    An expected use-case to this flag is to gradually migrate hundreds of your security groups under the control of terraform, without worrying about the huge tf/tfstate diff on initial import.
    
    Run `terraforming help sg` to see the description of the flag:
    
    ```
     bundle exec bin/terraforming help sg
    Usage:
      terraforming sg
    
    Options:
      [--group-ids=one two three]                    # Filter exported security groups by IDs
      [--merge=MERGE]                                # tfstate file to merge
      [--overwrite], [--no-overwrite]                # Overwrite existing tfstate
      [--tfstate], [--no-tfstate]                    # Generate tfstate
      [--profile=PROFILE]                            # AWS credentials profile
      [--region=REGION]                              # AWS region
      [--assume=ASSUME]                              # Role ARN to assume
      [--use-bundled-cert], [--no-use-bundled-cert]  # Use the bundled CA certificate from AWS SDK
    
    Security Group
    ```
    mumoshu committed May 16, 2018
    Configuration menu
    Copy the full SHA
    f3200ef View commit details
    Browse the repository at this point in the history