Skip to content

Commit

Permalink
Merge pull request #6611 from ministryofjustice/update-dr-runbook
Browse files Browse the repository at this point in the history
remove repetitive steps
  • Loading branch information
FolarinOyenuga authored Dec 19, 2024
2 parents 00f334c + b951254 commit e2fe282
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions runbooks/source/disaster-recovery-scenarios.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -305,16 +305,19 @@ Access the S3 bucket where the effected terraform state is stored. From the list
#### Recovery Steps:

- Navigate to AWS console > switch region to eu-west-1 (not necessary)> cloud-platform-terraform-state/aws-accounts/cloud-platform-aws/vpc/eks/core/components>your-cluster>terraform.tfstate
- download the state file with this command -- aws s3 cp s3://cloud-platform-terraform-state/aws-accounts/cloud-platform-aws/vpc/eks/core/components/your-cluster/terraform.tfstate terraform.tfstate
- Upload the terraform.tfstate file back to the bucket -- aws s3 cp terraform.tfstate s3://cloud-platform-terraform-state/aws-accounts/cloud-platform-aws/vpc/eks/core/components/cp-1712-1719/terraform.tfstate
- Reran terraform plan -target=module.starter-pack and got No changes. Your infrastructure matches the configuration. as indicated in the documentation.

Now running terraform plan will show, infrastructure is up-to-date.

- download the state file:
```
terraform plan -target=module.starter_pack
aws s3 cp s3://cloud-platform-terraform-state/aws-accounts/cloud-platform-aws/vpc/eks/core/components/your-cluster/terraform.tfstate terraform.tfstate
```
- Upload the terraform.tfstate file back to the bucket:
```
aws s3 cp terraform.tfstate s3://cloud-platform-terraform-state/aws-accounts/cloud-platform-aws/vpc/eks/core/components/cp-1712-1719/terraform.tfstate
```
- Reranning the command below will generate the feedback beneath it:
```
terraform plan -target=module.starter-pack

No changes. Infrastructure is up-to-date.
No changes. Your infrastructure matches the configuration. Your infrastructure is up-to-date
```

### Resolving a PartiallyFailed backup alert
Expand Down

0 comments on commit e2fe282

Please sign in to comment.