---
title: "Discussion on \"Extract AWS account number from access_key\" | Hashnode"
description: "Discussion on \"Extract AWS account number from access_key\". This is a cool little snippet of code here, especially if you're trying to debug a terraform configuration with multiple AWS provider aliases, each of which connects to a different account number.\nimport base64\nimport binascii\n\ndef AWSAccount(AWSKeyI..."
url: "https://hashnode.com/posts/extract-aws-account-number-from-accesskey/65a9e4e439281260a602f024"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Extract AWS account number from access\_key](https://timcod.es/extract-aws-account-number-from-accesskey?utm_source=hashnode&utm_medium=feed)

This is a cool little snippet of code here, especially if you're trying to debug a terraform configuration with multiple AWS provider aliases, each of which connects to a different account number. import base64 import binascii def AWSAccount(AWSKeyI...

Jan 19, 2024 · 1 min read · timcod.es  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#terraform](https://hashnode.com/tag/terraform)
-   [#cloudsecurity](https://hashnode.com/tag/cloudsecurity)

## Written by

[Tim Bailey-Jones](https://hashnode.com/@timbaileyjones)

@timbaileyjones · Plant City, FL

  
[View profile](https://hashnode.com/@timbaileyjones)

Linux, Web, and Infrastructure development

I am a developer living in the countryside east of Tampa Bay, Florida.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
