Skip to content

Commit

Permalink
[#97] Revert S3 and DynamoDB names for legacy infrastructure access
Browse files Browse the repository at this point in the history
Summary:
This commit rolls back the names of the S3 bucket and DynamoDB table used
for Terraform state management to their original identifiers. This change is
crucial for maintaining access to our current infrastructure setup before
we proceed with renaming and rebranding efforts within our infrastructure
configuration. By reverting these names, we ensure continuity and access
to existing resources, which is necessary for a smooth transition to the
new naming convention. This step is preparatory, aimed at minimizing disruption
and maintaining operational integrity during the rebranding process.

Technical Details:
Modifications were made in Terraform configuration file, versions.tf, within the infra/terraform directory. The changes are as follows:

S3 Bucket Name: The Terraform backend configuration in versions.tf has been updated to point back to the original S3 bucket, changing from govtool-terraform-state to vva-terraform-state. This reversion ensures that Terraform commands continue to interface with the existing state file, preserving the link to our current infrastructure assets.

DynamoDB Table Name: Similarly, the DynamoDB table used for state locking has been reverted from govtool-terraform-locks to vva-terraform-locks. This change is crucial for maintaining state consistency and preventing concurrent execution conflicts during Terraform operations.
  • Loading branch information
placek committed Feb 13, 2024
1 parent 04fb08a commit f815006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions infra/terraform/bootstrap-aws-account.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

state_bucket="govtool-terraform-state"
lock_table="govtool-terraform-locks"
state_bucket="vva-terraform-state"
lock_table="vva-terraform-locks"
region="eu-west-1"

# aws s3api create-bucket --bucket "$state_bucket" --region "$region"
Expand Down
4 changes: 2 additions & 2 deletions infra/terraform/versions.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
terraform {
backend "s3" {
bucket = "govtool-terraform-state"
bucket = "vva-terraform-state"
key = "terraform.tfstate"
region = "eu-west-1"
dynamodb_table = "govtool-terraform-locks"
dynamodb_table = "vva-terraform-locks"
encrypt = true
}
required_version = ">= 1.5.3"
Expand Down

0 comments on commit f815006

Please sign in to comment.