Modify rule S6317: Fix missing diff view (#3032)

## Review

A dedicated reviewer checked the rule description successfully for:

- [ ] logical errors and incorrect information
- [ ] information gaps and missing content
- [ ] text style and tone
- [ ] PR summary and labels follow [the
guidelines](https://github.com/SonarSource/rspec/#to-modify-an-existing-rule)
This commit is contained in:
Egon Okerman 2023-09-21 10:04:41 +02:00 committed by GitHub
parent d707dfa2d2
commit ba6e52e303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ In this example, the IAM policy allows an attacker to update the code of any Lam
==== Noncompliant code example
[source,terraform]
[source,terraform,diff-id=1,diff-type=noncompliant]
----
resource "aws_iam_policy" "example" {
name = "example"
@ -32,7 +32,7 @@ EOF
The policy is narrowed such that only updates to the code of certain Lambda functions (without high privileges) are allowed.
[source,terraform]
[source,terraform,diff-id=1,diff-type=compliant]
----
resource "aws_iam_policy" "example" {
name = "example"