title: AWS Cloudfront error? invalidation max times while deploying?
body: <p>I got the error while I'm deploying something from gitlab.</p>
  <pre><code>$ aws cloudfront create-invalidation --distribution-id=EVB1B2B3B4B56 --paths &quot;/*&quot;
  **An error occurred (ServiceUnavailable) when calling the CreateInvalidation operation (reached max retries: 2): CloudFront encountered an internal error. Please try again.**
  </code></pre>
  <p>I sort it out by creating invalidation manually from AWS console and it works . This is the case happens sometimes causes this error, at that time I'm doing manually . What was the permanent solution ? Please help me to sort it out this.</p>