Skip to content

Commit d15ad75

Browse files
committed
feat: add auto-generated Terraform backend and variables configuration files
1 parent b6c4340 commit d15ad75

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ override.tf
1313
override.tf.json
1414
*_override.tf
1515
*_override.tf.json
16-
auto_generated_*.tf
1716

1817
# Docker
1918
docker-compose.override.yml

01-tf/auto_generated_backend.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# !!! DO NOT MODIFY THIS FILE MANUALLY !!!
2+
# File generated by 'setup_tf_backend.sh' dont modify this file manually
3+
# unless you know what you are doing
4+
5+
terraform {
6+
backend "s3" {
7+
bucket = "poc-hello-world-tfstate-058264118467-us-east-1"
8+
key = "states/poc-hello-world/terraform.tfstate"
9+
region = "us-east-1"
10+
dynamodb_table = "poc-hello-world-terraform-lock-table"
11+
encrypt = true
12+
}
13+
}

01-tf/auto_generated_variables.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# !!! DO NOT MODIFY THIS FILE MANUALLY !!!
2+
# File generated by 'setup_tf_backend.sh' dont modify this file manually
3+
# unless you know what you are doing
4+
5+
variable "AWS_REGION" {
6+
description = "AWS region for ECR repository"
7+
type = string
8+
default = "us-east-1"
9+
}
10+
11+
variable "ECR_REPOSITORY_NAME" {
12+
description = "Name for the ECR repository"
13+
type = string
14+
default = "poc-hello-world"
15+
}

0 commit comments

Comments
 (0)