Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit 69acd98

Browse files
committed
feat: add cognito management panel
1 parent e0e3ec0 commit 69acd98

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { extend, extract } from '../../../src/index.js'
2+
3+
export default [extend('presets/base/typescript-cdk'), extract()]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<p align="center">
2+
<a href="https://buttonize.io">
3+
<img width="350" alt="Buttonize.io" src="https://user-images.githubusercontent.com/6282843/212024942-9fd50774-ea26-48ba-b2cf-ca2584498c9a.png">
4+
</a>
5+
</p>
6+
7+
---
8+
9+
## Cognito Management Panel
10+
11+
[![Cognito Management Panel](https://github.com/buttonize/create-buttonize/assets/6282843/e2a9d533-d32f-4fb3-b50a-61947d3c24c7)](https://buttonize.io/library/cognito-management-panel)
12+
13+
Learn more about Cognito Management Panel Construct [here](https://buttonize.io/library/cognito-management-panel).
14+
15+
## CDK
16+
17+
The `cdk.json` file tells the CDK Toolkit how to execute your app.
18+
19+
### Useful commands
20+
21+
* `npm run build` compile typescript to js
22+
* `npm run watch` watch for changes and compile
23+
* `npx cdk deploy` deploy this stack to your default AWS account/region
24+
* `npx cdk diff` compare deployed stack with current state
25+
* `npx cdk synth` emits the synthesized CloudFormation template
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import * as cdk from 'aws-cdk-lib'
2+
import { UserPool } from 'aws-cdk-lib/aws-cognito'
3+
import { Buttonize } from 'buttonize/cdk'
4+
import { CognitoManagementPanel } from 'buttonize/library'
5+
import { Construct } from 'constructs'
6+
7+
export class ExampleStack extends cdk.Stack {
8+
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
9+
super(scope, id, props)
10+
11+
Buttonize.init(this, {
12+
apiKey: '@@apiKey'
13+
})
14+
15+
const userPool = new UserPool(this, 'UserPool', {
16+
signInAliases: {
17+
email: true
18+
}
19+
})
20+
21+
new CognitoManagementPanel(this, 'CognitoPanel', {
22+
userPool
23+
})
24+
}
25+
}

0 commit comments

Comments
 (0)