Skip to content

timmyeats/mfa-api-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mfa-api-tool

Use the API Gateway to get MFA code

Prerequisites

  • Install terraform
  • Install AWS CLI
  • Set AWS credential in your environment, aws configure --profile your_profile_name

Configuration

Modify terraform.tfvars.template to terraform.tfvars, and set the tfvars

  • aws_profile = "your aws profile"
  • aws_region = "your aws default region"
  • resource_tags.project = "your project name"

Deploy & Delete resources

  • Deploy resources:

    terraform init

    terraform plan

    terraform apply

  • Delete resources:

    terraform destroy

Resources

  • API Gateway
  • Lambda Function
  • IAM Role
  • IAM Policy
  • Cloudwatch Log Group

How to use this API

About

Use API to get MFA code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published