-
Notifications
You must be signed in to change notification settings - Fork 123
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
[Bug]: DBInstanceAutomatedBackupsReplication cannot change the value of the argument "kms_key_id" after successful creation #1435
Comments
I don't think this is a bug from what I understand... Crossplane Providers will not update a resource if it requires a re-creation (or at least in my experience upjet ones do not for sure). I think you'd have to create a new resource, then delete this resource (or however TF deals with replacements of this resource assuming you feel that makes sense). |
This is happening immediately after the DBInstanceAutomatedBackupsReplication resource is reconciled, and is not the result of trying to update to use a new KMS Key. The resource is successfully created with |
Expanding my search of other issues, this appears to be part of a larger problem when resources reference The following issue has a possible workaround, using a |
Ahh I see. I think the issue is on the Terraform side from what I can tell. https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/rds/instance_automated_backups_replication.go#L228 specifically it seems that they set status based on the KMSKeyID returned from AWS SDK https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/[email protected]/types#DBInstanceAutomatedBackup which the AWS SDK says can return "id, arn or alias" so I think on the TF side they need to make it consistent on the ARN or maybe we in crossplane need to have a custom diff maybe as two solutions to the underlying problem. |
Tested the following workaround:
The DBInstanceAutomatedBackupsReplication resource created successfully and did not enter a Synced 'False' state. |
This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as |
Is there an existing issue for this?
Affected Resource(s)
DBInstanceAutomatedBackupsReplication.rds.aws.upbound.io/v1beta1
Resource MRs required to reproduce the bug
No response
Steps to Reproduce
Create KMS Key and RDS DBInstanceAutomatedBackupsReplication with a
kmsKeyIdSelector
.What happened?
After DBInstanceAutomatedBackupsReplication returns a Ready 'True' state, it immediately enters a Synced 'False' state with the following
status
:Relevant Error Output Snippet
No response
Crossplane Version
1.16.0
Provider Version
1.10.0
Kubernetes Version
No response
Kubernetes Distribution
EKS
Additional Info
No response
The text was updated successfully, but these errors were encountered: