Contains custom resources for creating resources in CloudFormation that currently doesn't exists.
For creating your own please have a look in the lib/
for common interfaces that can make your
life easier.
All these resources support all the cli attributes, but in CloudFormation.
You can also use Fn::GetAtt
or Fn::Sub
on most of these to get data back from the resource.
Please look at the individual README.md
files in the functions folders.
Check the individual README.md
files in the subfolders below.
- cognito/identitypool-roles
- cognito/userpool-client
- cognito/userpool-mfa
- cognito/userpool-domain
- cognito/userpool-uicustomization
- cognito/userpool-federation
You will need docker
to build the lambda functions with the included Makefile
. And a fairly recent version
of awscli
to copy the code to s3 and deploy the Cloudformation template.
- make
- docker
- aws cli
Use the included Makefile
to deploy the resources.
The OWNER
env var is for tagging. So you can set this to what you want.
The ENVIRONMENT
env var is also for naming + tagging, but will also be included in CloudWatch logs.
This so you can make out differences between dev, test and prod etc. if you're running them on the same AWS Account.
AWS_PROFILE=my-profile AWS_REGION=region OWNER=TeamName S3_BUCKET=my-artifact-bucket FUNCTION=folder/my-resource make deploy
Example
AWS_PROFILE=default AWS_REGION=eu-west-1 OWNER=devops S3_BUCKET=my-artifact-bucket FUNCTION=cognito/userpool-federation make deploy
To create a new custom resource, please have a look in example
folder for a simple example custom resource.