Skip to content

An AWS Lambda function to take a received S3 event, and update a related certificate in AWS IAM.

License

Notifications You must be signed in to change notification settings

ocelotconsulting/iam-server-cert-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iam-server-cert-lambda

An AWS Lambda function to take a received SNS message based upon an S3 event from node-letsencrypt-lambda, and update a related certificate in AWS IAM. This project will serve as a follow-on project to node-letsencrypt-lambda, helping to further the automation of configuring SSL certificates in AWS.

AWS Configuration

This project requires a little configuration to be used in AWS.

Execution

  1. Git-clone this repository.

     $ git clone [email protected]:ocelotconsulting/iam-server-cert-lambda.git
    
  2. Modify configuration (TBD).

  3. Create S3 buckets, IAM role, then test locally:

     $ sbt clean assembly
    
  4. Upload JAR for JVM Lambda to AWS. In handler configuration, use the string for the public handler function com.ocelotconsulting.ssl.IAMServerCertificateLambda::configureIAMCert

Disclaimer

So far, AWS IAM only allows certificates to be uploaded, renamed, and deleted, which means that when a certificate expires, we must delete and re-upload it, which could break certain integrations relying on a specific certificate.

About

An AWS Lambda function to take a received S3 event, and update a related certificate in AWS IAM.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published