Rudy Regazzoni ab4c36fbdc
Update S6273: Re-organize and simplify description (#3943)
* Update S6273: Re-organize and simplify description

* Remove redundant sentance from summary

* switch sentance place

* Address review comment

* Put regex in code block
2024-05-27 11:23:16 +02:00

60 lines
1.1 KiB
Plaintext

include::../summary.adoc[]
== Why is this an issue?
include::../description.adoc[]
== How to fix it
=== Code examples
==== Noncompliant code example
With default provided regular expression `^([A-Z][A-Za-z]\*:)*([A-Z][A-Za-z]*)$`:
[source,yaml,diff-id=1,diff-type=noncompliant]
----
AWSTemplateFormatVersion: 2010-09-09
Resources:
S3Bucket:
Type: 'AWS::S3::Bucket'
Properties:
BucketName: "mybucketname"
Tags:
- Key: "anycompany:cost-center"
Value: "Accounting"
- Key: "anycompany:EnvironmentType"
Value: "PROD"
----
==== Compliant solution
[source,yaml,diff-id=1,diff-type=compliant]
----
AWSTemplateFormatVersion: 2010-09-09
Resources:
S3Bucket:
Type: 'AWS::S3::Bucket'
Properties:
BucketName: "mybucketname"
Tags:
- Key: "Anycompany:CostCenter"
Value: "Accounting"
- Key: "Anycompany:EnvironmentType"
Value: "PROD"
----
include::../see.adoc[]
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../parameters.adoc[]
endif::env-github,rspecator-view[]