title: Granting application users access to Amazon S3 but hitting 5000 user limit
body: <p>What I am trying to achieve is the following:</p>
  
  <ol>
  <li>Create users dynamicly through API(users might grow alot - 50-100k+ eventually)</li>
  <li>Give those users access to a specific prefix of an AWS S3 bucket(IAM policy)</li>
  </ol>
  
  <p>Currently my idea is to create AWS IAM Users and generate credentials for those users(The credentials should not be temporary). This works fine, but the problem is that AWS is limited to 5000 IAM users. Is there another way to avoid that limit. One way that I found out is via cognito users -> <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_s3_cognito-bucket.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_s3_cognito-bucket.html</a>
  However I do not think that there is a way to create long-term access keys(as the IAM user access keys) for those cognito users ?</p>
  
  <p>Is there another way to achieve this ?</p>
  
  <p>Thanks in advance!</p>