title: How can I make AWS work as IdP for OIDC or SAML provider?
body: <p>I am planning to use <code>IAM</code> and <code>cognito</code> identity pool as OIDC or SAML provider.
  My goal is to use AWS as the provider without any third party integration.</p>
  <p>I looked at IAM <code>Identity Provider</code> and have read through a doc <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_oidc.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_oidc.html</a> but it seems I need to provide <code>Metadata document</code> for SAML or <code>Provider URL and audience</code> for OIDC from third party providers.</p>
  <p>Is there a way to use AWS as the provider? I don't want to use any other providers.</p>