Skip to content

Commit 686eace

Browse files
committed
put terraform state info in S3 bucket
1 parent 842aecd commit 686eace

3 files changed

Lines changed: 19 additions & 12 deletions

File tree

terraform/envs/dev/backend.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
terraform {
2+
required_version = ">= 1.6.0"
3+
4+
backend "s3" {
5+
bucket = "dougdaly-terraform-state"
6+
key = "entitlements/dev/terraform.tfstate"
7+
region = "us-west-2"
8+
encrypt = true
9+
use_lockfile = true
10+
}
11+
12+
required_providers {
13+
aws = {
14+
source = "hashicorp/aws"
15+
version = "~> 6.0"
16+
}
17+
}
18+
}

terraform/envs/dev/main.tf

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
terraform {
2-
required_version = ">= 1.6.0"
3-
4-
required_providers {
5-
aws = {
6-
source = "hashicorp/aws"
7-
version = "~> 6.0"
8-
}
9-
}
10-
}
11-
121
provider "aws" {
132
region = var.aws_region
143
}
@@ -32,4 +21,4 @@ module "sagemaker_pipeline" {
3221
pipeline_role_arn = var.sagemaker_execution_role_arn
3322
pipeline_definition_path = "${path.module}/../../../mlops/pipelines/digital_twin_resilience/pipeline_definition.json"
3423
tags = local.common_tags
35-
}
24+
}

terraform/modules/.DS_Store

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)