githubEdit

Resolving "SSM Parameter already exists" error in Terraform

If you encounter a Terraform error stating that an SSM parameter already exists, this typically occurs when a parameter was created outside of Terraform management or from a previous failed deployment. Error Message You may see an error similar to: Error: Error creating tenant SSM parameter '/path/to/parameter': status: 409, message: {"Message":"SSM Parameter: /path/to/parameter: already exists"} Solution To resolve this issue: Navigate to the DuploCloud portal Go to the SSM Parameters section Locate the conflicting parameter (as shown in the error message) Delete the existing parameter manually Re-run your Terraform deployment Once the existing parameter is removed, Terraform will be able to create and manage the parameter as intended. This ensures the parameter is properly managed by your Terraform code going forward. Note: You may also see a deprecation warning about the "dynamodb_table" parameter. Consider updating your Terraform configuration to use "use_lockfile" instead.

Last updated

Was this helpful?