Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing project database password fails #90

Open
adamstoffel opened this issue May 22, 2024 · 2 comments
Open

Changing project database password fails #90

adamstoffel opened this issue May 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@adamstoffel
Copy link

Bug report

  • [x ] I confirm this is a bug with Supabase, not with my own application.
  • [x ] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

When rotating a password automatically with Terraform (e.g. the below), the supabase terraform provider fails:

resource "time_rotating" "supabase_password_rotation" {
  rotation_days = 90
}

resource "random_password" "supabase_password" {
  length           = 48
  special          = true
  override_special = "_"
}

resource "supabase_project" "my_project" {
  organization_id   = var.supabase_organization_id
  name              = var.project_name
  database_password = random_password.supabase_password.result
  region            = "us-west-1"
  instance_size     = "micro"
}

Terraform error:

╷
│ Error: Client Error
│ 
│   with supabase_project.my_project,
│   on supabase.tf line 19, in resource "supabase_project" "my_project":
│   19: resource "supabase_project" "my_project" {
│ 
│ Update is not supported for project resource: <supabase project ref redacted>
╵
Operation failed: failed running terraform apply (exit 1)
Error: Process completed with exit code 1.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Create terraform file with the above configuration (change rotation to a few sec or minutes)

Expected behavior

Terraform should successfully change the DB password

System information

Terraform HCP
Github actions

@adamstoffel adamstoffel added the bug Something isn't working label May 22, 2024
@sweatybridge sweatybridge added enhancement New feature or request and removed bug Something isn't working labels May 30, 2024
@alleeclark
Copy link

I am unable to get this to work even without changing the password. I am trying to create a project and it fails with the same error. On versions 1.0 and 1.4.

@skf-funzt
Copy link

I am facing the same issue unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants