Skip to content

Commit 0a74112

Browse files
author
Scott Mattan
committed
Added configuration page for ALB Ingress Controller with Cognito Auth.
1 parent 01c1c20 commit 0a74112

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/guide/cognito/setup.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Setup Cognito/ALB Ingress Controller
2+
3+
This document describes how to install ALB Ingress Controller with AWS Cognito integration to minimal capacity, other options and or configurations may be required for production, and on an app to app basis.
4+
5+
## Assumptions
6+
7+
The following assumptions are observed regarding this procedure.
8+
* ExternalDNS is installed to the cluster and will provide a custom URL for your ALB. To setup ExternalDNS refer to the [install instructions](https://kubernetes-sigs.github.io/aws-alb-ingress-controller/guide/external-dns/setup/).
9+
10+
## Cognitio Configuration
11+
12+
Configure Cognito for use with ALB Ingress Controller using the following links with specified caveats.
13+
* [Create Cognito user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-as-user-directory.html)
14+
* [Configure application integration](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-configuring-app-integration.html)
15+
* On step 11.c for the `Callback URL` enter `https://<your-domain>/oauth2/idpresponse`.
16+
* On step 11.d for `Allowed OAuth Flows` select `authorization code grant` and for `Allowed OAuth Scopes` select `openid`.
17+
18+
## ALB Ingress Controller Setup
19+
20+
Install the ALB Ingress Controller using the [install instructions](https://kubernetes-sigs.github.io/aws-alb-ingress-controller/guide/controller/setup/) with the following caveats.
21+
* When setting up IAM Role Permissions, add the `cognito-idp:DescribeUserPoolClient` permission to the example policy.
22+
23+
## Deploying an Ingress
24+
25+
Using the [cognito-ingress-template](https://kubernetes-sigs.github.io/aws-alb-ingress-controller/examples/cognito-ingress-template.yaml) you can fill in the `<required>` variables to create an ALB ingress connected to your Cognito user pool for authentication.

0 commit comments

Comments
 (0)