Error using access_policies()
when creating OpenSearch domain
#608
-
I am trying to create an OpenSearch domain with this command
where "000000000000" is my account number. The command fails with the error message "'accessPolicies' failed to satisfy constraint: Member must satisfy regular expression pattern: .*" If I omit the For reference, I'm trying to replicate in Rust what I normally do via the AWS Console. In the console, when I create an OpenSearch domain, under "Access Policy", I choose "Configure domain level access policy", then specify that same access policy (the JSON). This method works. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Ah, figured it out: the JSON string has to be all one line. Remove the EOLs, and it works. I suppose the regex |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Ah, figured it out: the JSON string has to be all one line. Remove the EOLs, and it works.
I suppose the regex
.*
should have been a clue :)