---
title: "Discussion on \"Terraform: How to avoid hard-coding of AWS account IDs?\" | Hashnode"
description: "Discussion on \"Terraform: How to avoid hard-coding of AWS account IDs?\". When using multiple AWS accounts it very likely that you will have hard-coded AWS account IDs all over your Terraform codebase. Hard-coding is annoying and prone to errors. For example, you could use the production AWS account ID instead of pre-produ..."
url: "https://hashnode.com/posts/terraform-how-to-avoid-hard-coding-of-aws-account-ids/5f89dbcb6eb39417ce5e5444"
---

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

Discussion

# [Terraform: How to avoid hard-coding of AWS account IDs?](https://arunvelsriram.dev/terraform-how-to-avoid-hard-coding-of-aws-account-ids?utm_source=hashnode&utm_medium=feed)

When using multiple AWS accounts it very likely that you will have hard-coded AWS account IDs all over your Terraform codebase. Hard-coding is annoying and prone to errors. For example, you could use the production AWS account ID instead of pre-produ...

Sep 7, 2019 · 2 min read · arunvelsriram.dev  
Read the article

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

## Written by

[Arunvel Sriram](https://hashnode.com/@arunvelsriram)

@arunvelsriram · Chennai, Tamil Nadu, India

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

Engineering @ Equal Experts | Ex-Thoughtworks | DevOps | Polyglot | Backend | Open Source

Engineering @ Equal Experts | Ex-Thoughtworks | DevOps | Polyglot | Backend | Open Source

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
