Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Using Terraform, Go, AWS Lambda and Slack to monitor the age of your AWS credentials

License

Notifications You must be signed in to change notification settings

empathyco/platform-aws-credentials-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use Terraform, Go, AWS Lambda and Slack to monitor the age of your AWS credentials.

The aim of this project is explain how to notify AWS users when they need to rotate their credentials to be under an imposed age limit. You can read in more detail in the next article

Requisites

  • Terraform v0.11.7
  • Terragrunt v0.14.2
  • An AWS-account-ID
  • Slack-Webhook-URL

Getting started

Lambda function code

The lambda function has been done in Golang. We don't include the zip code but you can generate it executing the access.sh

Terraform instructions

From the path ./stranger-things. We should do the following to deploy the infrastructure:

$ aws-vault exec <profile> -- terragrunt plan -out=fit.plan
$ aws-vault exec <profile> -- terragrunt apply fit.plan

This create us the infrastructure defined in the main.tf

License

Copyright 2018 EmpathyBroker

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Using Terraform, Go, AWS Lambda and Slack to monitor the age of your AWS credentials

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published