A Lambda-backed Custom Resource for a Cognito Identity Pool in CloudFormation
❗️DEPRECATED as of 2017-04-28. Please use AWS::Cognito::IdentityPool
An AWS Lambda-backed Custom Resource for CRUD operations on Cognito Identity Pools
Cognito Identity Pools are not currently supported within CloudFormation templates. However, CloudFormation provides extensibility via Custom Resources, which enable Create/Update/Delete operations. This is meant to replace having to manually create Cognito Identity Pools manually via the CLI or web console.
See the related blog post for more information.
yarn global add gulp
)yarn
config.json
(see below)AWS_REGION
environment variable.gulp
this will:config.json
Create a config.json
file. See The AWS-SDK for JavaScript docs on CognitoIdentity for options, or run aws cloudformation get-template-summary --template-body file:///path/to/cloudformation.json
{
"IdentityPoolName": "IdentityPoolName",
"AllowUnauthenticatedIdentities": false,
"LambdaS3Bucket": "bucket-name",
"LambdaS3Key": "CloudFormation-CustomResource-CognitoIdentityPool.zip",
"DeveloperProviderName": "com.site"
}
All non-string values will be stringified for the CloudFormation template. If you're going to use the template directly (instead of using gulp), keep this in mind.
yarn
)AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
, and AWS_REGION
environment variables)config.json
yarn test