Sha256: 03608ebf261d492d29d957a9bae9f8c375a186255c96d3b2ba5c5b09101c192e

Contents?: true

Size: 1.07 KB

Versions: 10

Compression:

Stored size: 1.07 KB

Contents

---
title: About the aws_iam_groups Resource
platform: aws
---

# aws\_iam\_groups

Use the `aws_iam_groups` InSpec audit resource to test properties of all or multiple groups.

To test properties of a single group, use the `aws_iam_group` resource.

<br>

## Syntax

An `aws_iam_groups` resource block uses an optional filter to select a collection of IAM groups and then tests that collection.

    # The control will pass if the filter returns at least one result. Use `should_not` if you expect zero matches.
    describe aws_iam_groups do
      it { should exist }
    end

<br>

## Examples

The following examples show how to use this InSpec audit resource.

As this is the initial release of `aws_iam_groups`, its limited functionality precludes examples.

<br>

## Matchers

For a full list of available matchers, please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). 

### exists

The control will pass if the filter returns at least one result. Use `should_not` if you expect zero matches.

    describe aws_iam_groups
      it { should exist }
    end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
inspec-2.1.72 docs/resources/aws_iam_groups.md.erb
inspec-2.1.68 docs/resources/aws_iam_groups.md.erb
inspec-2.1.67 docs/resources/aws_iam_groups.md.erb
inspec-2.1.59 docs/resources/aws_iam_groups.md.erb
inspec-2.1.54 docs/resources/aws_iam_groups.md.erb
inspec-2.1.43 docs/resources/aws_iam_groups.md.erb
inspec-2.1.30 docs/resources/aws_iam_groups.md.erb
inspec-2.1.0 docs/resources/aws_iam_groups.md.erb
inspec-2.0.45 docs/resources/aws_iam_groups.md.erb
inspec-2.0.16 docs/resources/aws_iam_groups.md.erb