Skip to content

Commit 30efb30

Browse files
committed
Refactor backend configuration out of main.tf
Why is it necessary? (Bug fix, feature, improvements?) - improvement: The backend is tied to AWS S3 and tightly coupled with the main implementation. Moving to its own file allows for flexibility to overwrite file if users are not storing their configuration in S3 or want some other S3 configuration How does the change address the issue? - Move the backend config into its own resource file What side effects does this change have? - None
1 parent 8cc2877 commit 30efb30

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

backend.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
terraform {
2+
backend "s3" {}
3+
}

main.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
terraform {
2-
backend "s3" {}
3-
}
4-
51
data "aws_caller_identity" "default" {}
62

73
# Make a topic

0 commit comments

Comments
 (0)