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)
- S3 with Bucket Policy will stuck with reason "Creating" state HOT 2
- Release v0.41.0 June 16, 2023
- Respect web token locaton envrionment variable HOT 3
- Release v0.42.0 July 14, 2023
- Add S3 AccessPoint and AccessPointPolicy from s3control API
- AssumeRoleWithWebIdentity issues cross partition HOT 8
- Container creation fails for versions 0.32.x and above HOT 2
- ElasticCache replicasPerNodeGroup not updating do not trigger resizing
- EC2 instances getting constant "refresh failed" HOT 2
- Invalid character '%!'(MISSING) on policy in composition HOT 2
- Unable to upgrade AWS EKS Cluster K8s version - "InvalidParameterException: Encryption is already enabled on the cluster" HOT 1
- cannot modify RDS instance: api error InvalidParameterCombination: No modifications were requested HOT 8
- [RDS Instance] EngineVersion parameter is not being sent to AWS during creation in latest version of crossplane HOT 4
- DBInstance: InvalidParameterCombination: The specified DB Instance is a member of a cluster. Modify vpc security group for the DB Cluster using the ModifyDbCluster API HOT 2
- Enable support for Amazon-aurora-i-o-optimized HOT 1
- tags parameter missing for HostedZone
- Secretsmanager: Resource with policy and single principal is updated on every reconcile
- DBCluster unable to update values with MasterUserPassword error HOT 4
- DBCluster: writeConnectionSecretToRef doesn't output the read replica
- Request for WAF support HOT 1
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.