Skip to content

Instantly share code, notes, and snippets.

View ernesto-butto's full-sized avatar

Ernesto Butto ernesto-butto

  • Planhat - Catwizard
  • Spain
  • 00:33 (UTC +01:00)
View GitHub Profile
@ernesto-butto
ernesto-butto / aws-temp-token.sh
Created August 2, 2021 11:03 — forked from ogavrisevs/aws-temp-token.sh
Script to generate AWS STS token
#!/bin/bash
#
# Sample for getting temp session token from AWS STS
#
# aws sts get-session-token \
# --serial-number arn:aws:iam::012345678901:mfa/user --token-code 012345
#
# Based on : https://gist.github.com/ogavrisevs/2debdcb96d3002a9cbf2
#