Comments (3)
from provider-aws.
I think my TODO was more related to having deletionProtection: true
because in that case even if the user changes it to false
, it won't matter since Update
is never called when the deletion timestamp exists. See crossplane/crossplane-runtime#59
from provider-aws.
This was solved by updating the config as follows:
apiVersion: database.aws.crossplane.io/v1beta1
kind: RDSInstance
metadata:
name: rdsmysql
labels:
example: "true"
spec:
forProvider:
dbInstanceClass: db.t2.small
masterUsername: masteruser
allocatedStorage: 20
engine: mysql
applyModificationsImmediately: true # this was added
skipFinalSnapshotBeforeDeletion: true # this was added
writeConnectionSecretsToNamespace: crossplane-system
providerRef:
name: aws-provider
reclaimPolicy: Delete
This works because:
applyModificationsImmediately: true
makes it such that RDS will not wait for the next maintenance window to apply changes. This was the source of the error described above.- When applying changes immediately, we must specify
skipFinalSnapshotBeforeDeletion
. If we do not, you will observe the following error from AWS:
- lastTransitionTime: "2020-02-25T17:44:02Z"
message: "delete failed: cannot delete RDS instance: InvalidParameterCombination:
FinalDBSnapshotIdentifier is required unless SkipFinalSnapshot is specified.\n\tstatus
code: 400, request id: 589d07eb-73e3-443b-9229-6700d363b5cc"
reason: Encountered an error during resource reconciliation
status: "False"
type: Synced
from provider-aws.
Related Issues (20)
- Improve scalability of the EC2/Route53 controllers HOT 1
- Reconcile error in RDSInstance for IOPS value when updating allocated storage from under 400 gib to over 400 gib HOT 1
- s3 v1beta1 NoSuchTagSet when providing a tagSet HOT 1
- VPCPeeringConnection not created with Observed a panic HOT 2
- Add arn to OpenIDConnectProvider status HOT 1
- Elasticache provider does not populate connection secret HOT 3
- S3 Buckets fail to become Synced and Ready
- Release v0.49.0 July 17, 2024
- [RDS] pendingModifiedValues not respected - caCertificateIdentifier causes reconcile loop HOT 2
- Creating a seconday cluster under global cluster still expects masterUserPasswordSecretRef or autogeneration enabled HOT 1
- RDS aurora-postgresql Serverless Required Fields Bug
- Subscriptions with filterPolicy set are in a SetSubscriptionAttributes loop HOT 2
- can't create secondary Aurora DBCluster in Global Database
- Huge API calls to `iam.amazonaws.com` HOT 2
- (Secretsmanager): If the K8s do not exist, the secret is not created with the data from AWS HOT 10
- AWS backup using crossplane
- mTLS capability for ALB Listener
- Create Blue Green RDS Deployment HOT 1
- [controller-runtime] log.SetLogger(...) was never called; logs will not be displayed. HOT 2
- S3 bucket with loggingConfiguration never becomes READY HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from provider-aws.