title: Why I get a "Policy has invalid action" error?
body: <p>I created this policy using the generator, however I still get an error:</p>
  
  <p><strong>edit</strong>: I have used the policy generator again, reducing the actions, here is my updated script obtained with that tool, I assume that at least the syntax is correct:</p>
  
  <p><a href="https://i.stack.imgur.com/FlmVz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FlmVz.jpg" alt="enter image description here"></a></p>
  
  <p>I have then removed one action at a time, starting with <code>s3:CreateBucket</code> at this point I get a different error: <code>Action does not apply to any resource(s) in statement</code> same if I only leave the <code>s3:DeleteObject</code> and <code>s3:GetObject</code> actions.</p>