Fix Enforce-Encryption-CMK default value #1255
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview/Summary
This pull request has been created in order to fix the
'Enforce-Encryption-CMK' could not be parameterized
error when running the module. This error seems to pop up on old and new deployments and currently requires the user to overwrite thepolicy_set_definition_es_enforce_encryption_cmk.tmpl.json
file manually. Here the valuedeny
must be removed. This error probably appeared because of a change on Azure.This PR fixes
"The policy set 'Enforce-Encryption-CMK' could not be parameterized because the default value of a policy set parameter referenced by policy definition 76a56461-9dc0-40f0-82f5-2453283afa2f was not valid for that policy definition.
error message when deploying using the level 100 caf model.Breaking Changes
This pull request solves a breaking change. However if for some reason old
Deny
value was used and is still working this pull request will break it (However I highly doubt it when looking at the error message).Testing Evidence
When this file is run with Terraform the above mentioned error that the definition
76a56461-9dc0-40f0-82f5-2453283afa2f (cognitiveSearchCmk)
cannot have the valueDeny
will not show up and will show a succesfull plan as usual.As part of this Pull Request I have
main
branch