Difference between revisions of "Error: MalformedPolicyDocumentException: Policy contains a statement with one or more invalid principals."

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
 
  │ Error: [[MalformedPolicyDocumentException]]: Policy contains a statement with one or more invalid [[principals]].
 
  │ Error: [[MalformedPolicyDocumentException]]: Policy contains a statement with one or more invalid [[principals]].
 
  │
 
  │
  │  with module.cmk.aws_kms_key.this,
+
  │  with module.[[cmk]].aws_kms_key.this,
  │  on .terraform/modules/cmk/modules/kms/cmk.tf line 7, in resource "[[aws_kms_key]]" "this":
+
  │  on .terraform/modules/cmk/modules/kms/yourmodule.tf line 7, in resource "[[aws_kms_key]]" "this":
 
  │    7: resource "aws_kms_key" "this" {
 
  │    7: resource "aws_kms_key" "this" {
 
  │
 
  │

Revision as of 08:40, 21 September 2021


╷
│ Error: MalformedPolicyDocumentException: Policy contains a statement with one or more invalid principals.
│
│   with module.cmk.aws_kms_key.this,
│   on .terraform/modules/cmk/modules/kms/yourmodule.tf line 7, in resource "aws_kms_key" "this":
│    7: resource "aws_kms_key" "this" {
│
╵

See also

Advertising: