44 lines
731 B
Plaintext
Raw Normal View History

2021-05-21 18:34:30 +02:00
include::../description.adoc[]
== Noncompliant Code Example
2021-05-27 01:19:30 +00:00
With default provided regular expression ^([A-Z][A-Za-z]*:)*([A-Z][A-Za-z]*)$:
2021-05-21 18:34:30 +02:00
2022-02-04 17:28:24 +01:00
[source,terraform]
2021-05-21 18:34:30 +02:00
----
resource "aws_s3_bucket" "mynoncompliantbucket" {
bucket = "mybucketname"
tags = {
2021-05-26 01:17:44 +00:00
"anycompany:cost-center" = "Accounting" # Noncompliant
2021-05-21 18:34:30 +02:00
}
}
----
== Compliant Solution
2022-02-04 17:28:24 +01:00
[source,terraform]
2021-05-21 18:34:30 +02:00
----
resource "aws_s3_bucket" "mycompliantbucket" {
bucket = "mybucketname"
tags = {
2021-05-27 01:19:30 +00:00
"AnyCompany:CostCenter" = "Accounting"
2021-05-21 18:34:30 +02:00
}
}
----
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[]