---
title: "Discussion on \"Storing the Terraform State File in Remote Backend (S3 bucket)\" | Hashnode"
description: "Discussion on \"Storing the Terraform State File in Remote Backend (S3 bucket)\". In this article let us build a simple terraform script to create an EC2 instance (you can create any resource of your choice) and then let us store the state file in an S3 bucket.\nStoring Terraform state files in an S3 bucket is a recommended best pr..."
url: "https://hashnode.com/posts/storing-the-terraform-state-file-in-remote-backend-s3-bucket/651b229cb18769d3ef413e96"
---

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

Discussion

# [Storing the Terraform State File in Remote Backend (S3 bucket)](https://sandydevopsstuffs.hashnode.dev/storing-the-terraform-state-file-in-remote-backend-s3-bucket?utm_source=hashnode&utm_medium=feed)

In this article let us build a simple terraform script to create an EC2 instance (you can create any resource of your choice) and then let us store the state file in an S3 bucket. Storing Terraform state files in an S3 bucket is a recommended best pr...

Oct 2, 2023 · 8 min read · sandydevopsstuffs.hashnode.dev  
Updated Oct 7, 2023  
Read the article

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

## Written by

[SANDESH D MANOCHARYA](https://hashnode.com/@sandydevopsstuffs)

@sandydevopsstuffs

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

DevOps Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
