-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
The Demo environment currently has the incorrect AWS region set on line 74 in terraform/demo/main.tf. It's currently set to us-east-1, but needs to be us-west-2 to properly match the AWS region that the SSB service is actually running out of.
(see https://github.com/GSA/usnotify-ssb?tab=readme-ov-file#aws-accounts-and-regions-in-use for details)
However, if you just change and update it Terraform will fail with this error:
│ Error: Instance notify-api-sns-demo failed 0b28b133-9f7b-49f1-9f34-a179cbb2549f, reason: [Job (90b9f2e1-f82c-4368-8af1-e889cddda878) failed: update could not be completed: Service broker error: attempt to update parameter that may result in service instance re-creation and data loss]
│
│ with module.sns_sms.cloudfoundry_service_instance.sns,
│ on ../shared/sns/main.tf line 18, in resource "cloudfoundry_service_instance" "sns":
│ 18: resource "cloudfoundry_service_instance" "sns" {
We probably just need to delete the service and let Terraform recreate, but I'm not 100% sure on that, so we need to figure out the right way to update this.
Implementation Sketch and Acceptance Criteria
- Figure out how to properly modify the service instance associated with the SNS SSB, or if we just need to delete it first
- Apply the AWS region update
- Deploy the change
Security Considerations
- We want to make sure our service instance are connected to the right AWS accounts and regions so that our app functions properly in all environments.