Set up cognito.json for web apps and react native apps in serverless monorepos
Usage
npx @raydeck/serverless-setup-cognito [options]
Options
- -s --stage [stage] Stage for the stack we are examining (default from monorepo root)
- -r --region [region] Region for the stack (default us-east-1)
- -p --cognitoPath [path] Path to the cognito serverless package
- -c --clientPath [path] Path to the package defining the app client
- -k --clientName [resourceName] Logical name of the cognito client name resource (e.g. CounselorClient)
@raydeck/serverless-setup-cognito - v1.0.2
Index
Variables
Functions
Variables
clientName
• clientName: any
Defined in bin.ts:28
clientPath
• clientPath: any
Defined in bin.ts:28
cognitoPath
• cognitoPath: any
Defined in bin.ts:28
region
• region: any
Defined in bin.ts:28
stage
• stage: any
Defined in bin.ts:28
Functions
getConfig
▸ getConfig(__namedParameters
: object): Promise‹object›
Defined in index.ts:7
Parameters:
Name | Type | Default |
---|---|---|
clientName |
undefined | string | - |
clientPath |
undefined | string | - |
cognitoPath |
undefined | string | - |
path |
string | process.cwd() |
region |
undefined | string | - |
stage |
string | - |
Returns: Promise‹object›
writeConfig
▸ writeConfig(config
: PromiseValue‹ReturnType‹typeof getConfig››, path
: string): void
Defined in index.ts:55
Parameters:
Name | Type | Default |
---|---|---|
config |
PromiseValue‹ReturnType‹typeof getConfig›› | - |
path |
string | join(process.cwd(), "config") |
Returns: void