Skip to content

dwtechnologies/custom-cf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

custom-cf

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.

Custom Resources

Check the individual README.md files in the subfolders below.

Cognito

IAM

Requirements

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

Deployment

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

Creating a new Custom Resource

To create a new custom resource, please have a look in example folder for a simple example custom resource.

About

Custom CloudFormation resources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published