You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 5, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/sources/awscognitouserpool.md
+24-11Lines changed: 24 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,30 @@
1
-
# Event source for AWS Cognito User Pool
1
+
# Event source for AWS Cognito User Pools
2
2
3
-
This event source captures messages from an [AWS Cognito User Pool ][cup-docs] whenever a specific action, such as the creation of a new user, happens in the user identity pool.
3
+
This event source captures messages from an [AWS Cognito User Pool][cup-docs] whenever a specific action, such as the
4
+
creation of a new user, happens in the user identity pool.
4
5
5
6
## Prerequisites
6
7
7
8
### AWS Cognito User Pool
8
9
9
-
If you don't already have an AWS Cognito User Pool, create one by following the instructions in the [Getting started with User Pools][cup-getting-started] guide.
10
+
If you don't already have an AWS Cognito User Pool, create one by following the instructions in the [Getting started
11
+
with User Pools][cup-getting-started] guide.
10
12
11
13
### Amazon Resource Name (ARN)
12
14
13
15
A fully qualified ARN is required to uniquely identify the AWS Cognito User Pool.
14
16
15
17

16
18
17
-
As shown in the above screenshot, you can obtain the ARN of a User Pool from the AWS console. It typically has the following format:
19
+
As shown in the above screenshot, you can obtain the ARN of a User Pool from the AWS console. It typically has the
Alternatively you can also use the [AWS CLI][aws-cli]. The following command retrieves the ARN of a User Pool in the `us-west-2` region which has the pool id `us-west-2_fak3p001B`.
26
+
Alternatively you can also use the [AWS CLI][aws-cli]. The following command retrieves the ARN of a User Pool in the
27
+
`us-west-2` region which has the pool id `us-west-2_fak3p001B`.
The TriggerMesh AWS Cognito UserPool event source authenticates calls to the AWS Cognito API using an [Access Key][accesskey]. The page at this link contains instructions to create an access key when signed either as the root user or as an IAM user. Take note of the **Access Key ID** and **Secret Access Key**, they will be used to create an instance of the event source.
43
+
The TriggerMesh event source for Amazon Cognito User Pools authenticates calls to the AWS API using AWS Access Keys. The
44
+
page [Understanding and getting your AWS credentials][accesskey] contains instructions to create access keys when
45
+
signed-in either as the root user or as an IAM user. Take note of the **Access Key ID** and **Secret Access Key**, they
46
+
will be used to create an instance of the event source.
40
47
41
-
It is considered a [good practice][iam-bestpractices] to create dedicated users with restricted privileges in order to programmatically access AWS services. Permissions can be added or revoked granularly for a given IAM user by attaching [IAM Policies][iam-policies] to it.
48
+
It is considered a [good practice][iam-bestpractices] to create dedicated users with restricted privileges in order to
49
+
programmatically access AWS services. Permissions can be added or revoked granularly for a given IAM user by attaching
50
+
[IAM Policies][iam-policies] to it.
42
51
43
-
As an example, the following policy contains the permissions required by the TriggerMesh AWS Cognito User Pool event source to list users in any user pool associated with the AWS account:
52
+
As an example, the following policy contains the permissions required by the TriggerMesh AWS Cognito User Pool event
53
+
source to list users in any user pool associated with the AWS account:
44
54
45
55
```json
46
56
{
@@ -67,16 +77,19 @@ Open the Bridge creation screen and add a source of type `AWS Cognito User Pool`
67
77
68
78
In the Source creation form, give a name to the event source and add the following information:
69
79
70
-
*[**Secret**][accesskey]: Reference to a [TriggerMesh secret][tm-secret] containing an Access Key ID and a Secret Access Key to communicate with the AWS SQS API, as described in the previous sections.
80
+
*[**Secret**][accesskey]: Reference to a [TriggerMesh secret][tm-secret] containing an Access Key ID and a Secret
81
+
Access Key to communicate with the AWS SQS API, as described in the previous sections.
71
82
*[**AWS ARN**][arn]: ARN of the User Pool, as described in the previous sections.
After clicking the `Save` button, you will be taken back to the Bridge editor. Proceed to adding the remaining components to the Bridge, then submit it.
86
+
After clicking the `Save` button, you will be taken back to the Bridge editor. Proceed to adding the remaining
0 commit comments