rspec/rules/S5332/terraform/highlighting.adoc
eric-therond-sonarsource 3069550d46
Modify rule S5332[terraform]: add GCP load balancers (#760)
* add GCP balancers

* rephrase sentence

* fix after review

* Add code highlighted tag to code example

Co-authored-by: Nils Werner <nils.werner@sonarsource.com>
2022-03-02 14:19:10 +00:00

34 lines
1.3 KiB
Plaintext

=== Highlighting
For ``aws_kinesis_stream``:
* Highlight the resource if `encryption_type` is missing or set to ``NONE``
For `aws_elasticache_replication_group`:
* Highlight `transit_encryption_enabled` if it is specified but has the wrong value
* Highlight resource if `transit_encryption_enabled` is not set
For `aws_ecs_task_definition`:
* Highlight `transit_encryption` if it is specified but has the wrong value
* Highlight `efs_volume_configuration` if it exists but does not contain `transit_encryption`
* For `aws_lb_listener`:
** For a `fixed-response` or `forward` action: Highlight the root `protocol` if it is set to `HTTP`
** For a `redirect` action: Highlight the root `protocol` if `default_action.redirect.protocol` is set as `HTTP`
For `aws_elasticsearch_domain`:
* Highlight `enabled` field from `node_to_node_encryption` if it is specified but has the wrong value
* Highlight `enforce_https` field from `domain_endpoint_options` if it is specified but has the wrong value
* Highlight resource if `node_to_node_encryption` is not specified at all
For `aws_msk_cluster`:
* Highlight `client_broker` if it is specified but does not contain `TLS`
* Highlight `in_cluster` if it is specified but is set to `false`
For `google_compute_region_backend_service`:
* Highlight `protocol` argument value when equals to `HTTP`