40 lines
827 B
Plaintext
40 lines
827 B
Plaintext
include::../description.adoc[]
|
|
|
|
include::../ask-yourself.adoc[]
|
|
|
|
include::../recommended.adoc[]
|
|
|
|
== Sensitive Code Example
|
|
|
|
----
|
|
resource "azurerm_role_assignment" "example" {
|
|
scope = azurerm_resource_group.example.id
|
|
role_definition_name = "Owner" # Sensitive
|
|
principal_id = data.azuread_user.example.id
|
|
}
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
[source,terraform]
|
|
----
|
|
resource "azurerm_role_assignment" "example" {
|
|
scope = azurerm_resource_group.example.id
|
|
role_definition_name = "Azure Maps Data Reader"
|
|
principal_id = data.azuread_user.example.id
|
|
}
|
|
----
|
|
|
|
include::../see.adoc[]
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
include::../highlighting.adoc[]
|
|
|
|
endif::env-github,rspecator-view[] |