Skip to content

Commit

Permalink
Merge pull request #105 from inspec/im/docs
Browse files Browse the repository at this point in the history
CHEF-4267 reorganize reusable text files
  • Loading branch information
clintoncwolfe authored Jan 22, 2024
2 parents 244b6a1 + 6927130 commit d31877b
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ end

## Matchers

{{% inspec_matchers_link %}}
{{< readfile file="content/inspec/reusable/md/inspec_matchers_link.md" >}}

### exist

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ end

## Matchers

{{% inspec_matchers_link %}}
{{< readfile file="content/inspec/reusable/md/inspec_matchers_link.md" >}}

### exist

Expand All @@ -148,6 +148,6 @@ end

### Alicloud Permissions

{{% alicloud_principal_action action="rds:DescribeDBInstances" %}}
{{% inspec-alicloud/alicloud_principal_action action="rds:DescribeDBInstances" %}}

You can find documentation at [Use RAM to manage ApsaraDB for RDS permissions](https://www.alibabacloud.com/help/doc-detail/58932.htm#section-rhd-4ll-5gb).
8 changes: 4 additions & 4 deletions docs-chef-io/content/inspec/resources/alicloud_disk.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ end

## Matchers

{{% inspec_matchers_link %}}
{{< readfile file="content/inspec/reusable/md/inspec_matchers_link.md" >}}

### exist

Expand Down Expand Up @@ -138,7 +138,7 @@ it { should be_encrypted }

### Alicloud Permissions

{{% alicloud_principal_action action="ecs:DescribeDisks" %}}
{{% inspec-alicloud/alicloud_principal_action action="ecs:DescribeDisks" %}}

{{% alibaba_access_management_doc %}}
{{% alibaba_authentication_ecs_api_doc %}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_access_management_doc.md" >}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_authentication_ecs_api_doc.md" >}}
8 changes: 4 additions & 4 deletions docs-chef-io/content/inspec/resources/alicloud_disks.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ end

## Matchers

{{% inspec_matchers_link %}}
{{< readfile file="content/inspec/reusable/md/inspec_matchers_link.md" >}}

### exist

Expand All @@ -118,7 +118,7 @@ end

### Alicloud Permissions

{{% alicloud_principal_action action="ecs:DescribeDisks" %}}
{{% inspec-alicloud/alicloud_principal_action action="ecs:DescribeDisks" %}}

{{% alibaba_access_management_doc %}}
{{% alibaba_authentication_ecs_api_doc %}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_access_management_doc.md" >}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_authentication_ecs_api_doc.md" >}}
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ end

## Matchers

{{% inspec_matchers_link %}}
{{< readfile file="content/inspec/reusable/md/inspec_matchers_link.md" >}}

### exist

Expand All @@ -179,5 +179,5 @@ it { should_not exist }

Your Principal will need the `ecs:DescribeInstances`, `ecs:DescribeInstanceAttribute` and `ecs:DescribeInstanceRamRole` actions with Effect set to Allow.

{{% alibaba_access_management_doc %}}
{{% alibaba_authentication_ecs_api_doc %}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_access_management_doc.md" >}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_authentication_ecs_api_doc.md" >}}
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ end

## Matchers

{{% inspec_matchers_link %}}
{{< readfile file="content/inspec/reusable/md/inspec_matchers_link.md" >}}

### exist

Expand All @@ -215,5 +215,5 @@ end

Your Principal will need the `ecs:DescribeInstances` and `ecs:DescribeInstanceRamRole` actions with Effect set to Allow.

{{% alibaba_access_management_doc %}}
{{% alibaba_authentication_ecs_api_doc %}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_access_management_doc.md" >}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_authentication_ecs_api_doc.md" >}}
4 changes: 2 additions & 2 deletions docs-chef-io/content/inspec/resources/alicloud_ims_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ end

## Matchers

{{% inspec_matchers_link %}}
{{< readfile file="content/inspec/reusable/md/inspec_matchers_link.md" >}}

### exist

Expand All @@ -109,4 +109,4 @@ end

### Alicloud Permissions

{{% alicloud_principal_action action="ims:GetLoginProfile" %}}
{{% inspec-alicloud/alicloud_principal_action action="ims:GetLoginProfile" %}}
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,5 @@ end

Your Principal will need the `ram:ListPolicies` and `ram:ListEntitiesForPolicy` actions with Effect set to Allow.

{{% alibaba_access_management_doc %}}
{{% alibaba_authentication_ram_api_doc %}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_access_management_doc.md" >}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_authentication_ram_api_doc.md" >}}
6 changes: 3 additions & 3 deletions docs-chef-io/content/inspec/resources/alicloud_ram_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ its('attachment_count') { should be eq 7 }

This InSpec audit resource has the following special matchers.

{{% inspec_matchers_link %}}
{{< readfile file="content/inspec/reusable/md/inspec_matchers_link.md" >}}

### exist

Expand Down Expand Up @@ -297,5 +297,5 @@ it { should have_statement(Resource: /acs:oss.+:(sally|kim)/) }

Your Principal will need the `ram:GetPolicy` and `ram:ListEntitiesForPolicy` actions with Effect set to Allow.

{{% alibaba_access_management_doc %}}
{{% alibaba_authentication_ram_api_doc %}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_access_management_doc.md" >}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_authentication_ram_api_doc.md" >}}
6 changes: 3 additions & 3 deletions docs-chef-io/content/inspec/resources/alicloud_ram_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ end

## Matchers

{{% inspec_matchers_link %}}
{{< readfile file="content/inspec/reusable/md/inspec_matchers_link.md" >}}

### exist

Expand Down Expand Up @@ -142,5 +142,5 @@ This will check whether the requested user has a login profile for console acces

Your Principal will need the following permissions action with Effect set to Allow: `ram:Getuser`, `ram:GetLoginProfile`, `ram:ListAccessKeys`.

{{% alibaba_access_management_doc %}}
{{% alibaba_authentication_ram_api_doc %}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_access_management_doc.md" >}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_authentication_ram_api_doc.md" >}}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ end

## Matchers

{{% inspec_matchers_link %}}
{{< readfile file="content/inspec/reusable/md/inspec_matchers_link.md" >}}

### exist

Expand All @@ -76,7 +76,7 @@ it { should_not exist }

### Alicloud Permissions

{{% alicloud_principal_action action="ram:GetUserMFAInfo" %}}
{{% inspec-alicloud/alicloud_principal_action action="ram:GetUserMFAInfo" %}}

{{% alibaba_access_management_doc %}}
{{% alibaba_authentication_ram_api_doc %}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_access_management_doc.md" >}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_authentication_ram_api_doc.md" >}}
4 changes: 2 additions & 2 deletions docs-chef-io/content/inspec/resources/alicloud_ram_users.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,5 @@ end

Your Principal will need the following permissions action with Effect set to Allow: `ram:Listusers`, `ram:GetLoginProfile`, `ram:ListAccessKeys`, `ram:GetUserMFAInfo`

{{% alibaba_access_management_doc %}}
{{% alibaba_authentication_ram_api_doc %}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_access_management_doc.md" >}}
{{< readfile file="content/inspec/resources/reusable/md/alibaba_authentication_ram_api_doc.md" >}}
5 changes: 5 additions & 0 deletions docs-chef-io/content/inspec/resources/reusable/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
headless = true
## headless = true makes this directory a headless bundle.
## See https://gohugo.io/content-management/page-bundles/#headless-bundle
+++

0 comments on commit d31877b

Please sign in to comment.