Currently, it is not possible to deploy ESF with the terraform files in this repository.
It ends in this error:
╷
│ Error: creating IAM Policy (constanca-lambda-test-inline): MalformedPolicyDocument: Resource must be in ARN format or "*".
│ status code: 400, request id: 63b61d40-8b93-4a58-b99e-41d729a5282d
│
│ with module.esf-lambda-function.aws_iam_policy.additional_inline[0],
│ on .terraform/modules/esf-lambda-function/iam.tf line 386, in resource "aws_iam_policy" "additional_inline":
│ 386: resource "aws_iam_policy" "additional_inline" {
│
╵
Currently, it is not possible to deploy ESF with the terraform files in this repository.
It ends in this error:
This issue was meant to be fixed in the now closed PR https://github.com/elastic/terraform-elastic-esf/pull/1.