-
Notifications
You must be signed in to change notification settings - Fork 56
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
Aurora Serverless v2 #1150
Comments
I have used Cloudformation with There is some suggestion from |
@taspeotis I do not see, how you could have used CloudFormation just fine. It errors for me: I both need and cannot set the min & max values. |
Again:
You can configure the min and max in the web interface, and then use Cloudformation subsequently with the I did not say I could set
|
"You can configure the min and max in the web interface" - only during initial cluster setup, which also creates the instances. Pressing modify on an existing DB Cluster without serverless instances, doesn't expose this setting, only modify to change the already set values, not setting it initially. |
You can set them after the fact, modify one of the database instances and change it to serverless v2. And then you can run your cloudformation stack. I converted one instance to serverless v2 and that has the effect of setting min/max on the cluster. Then I submitted my cloudformation template and it set the rest of the instances to db.serverless. I've migrated four clusters in place to serverless v2 with a combination of the web interface and cloudformation. |
I also have the problem to be able to define the configuration of the cluster. Any update with the resource structure to be able to specify the Max/Min ACUs in the cluster? |
The closest thing now seem to be
|
+1 |
There are ~300 requests in CDK for serverless aurora (aws/aws-cdk#20197), issue was given p1, but it is blocked by lack of support in cloudformation |
any ETA on this one? |
This issue is more upvoted than the vote count would suggest. Like someone mentioned earlier in the comments, #1153 is also effectively an issue covering the same need (just referencing a different specific CloudFormation type) and there's the CDK issue at aws/aws-cdk#20197. There are about 200 thumbs up here, about 100 in the other issue in the repo, and over 300 in the CDK one. I know there's likely to be some overlap in the thumbsup counts, but it's still a substantial ask from end customers. I'm sure the CloudFormation team has heard this before, but it's really frustrating when a feature/service launches "GA" without CFN or CDK support. |
Just heard back from AWS Support, and they said
|
Hi, can you clarify in more detail how you did this? Did you create the Aurora cluster in the console as a v2 cluster, then deploy a Cloudformation stack where one of the resources is the pre-existing cluster? If so, how did you do that? Any help appreciated! |
This hasn't even made it to the "Researching" phase of the roadmap. Why not? This issue seems to have fallen through the cracks. Could someone from AWS please provide a response? Thanks! |
Interestingly, AWS Controllers for Kubernetes (ACK) already has support. https://aws-controllers-k8s.github.io/community/reference/rds/v1alpha1/dbcluster/ And terraform seems to support it as well. https://registry.terraform.io/modules/terraform-aws-modules/rds-aurora/aws/latest/examples/serverless. Not the first time I've seen terraform having better support for AWS resources than cloudformation. |
Guys, this would be great, currently have to make this from console instead of IaC. |
Also bumping. This should definitely be native to CFN |
We are seriously blocked by this. Please prioritize it, thanks! |
@kftsehk I am using the following shell script to create the serverless v2
|
It is not to mention CDK repo have same request with the most 👍 . But it is not on public milestone |
+1 |
Thanks, this worked smoothly 🙏 |
For Anyone that is trying to put this all in cloudformation...
Make sure the Role (Which refers to the instance profile btw...) has enough permissions to run the command of course |
The same standard reply from support re no ETA. How surprising. BTW, this response about rigorous testing is complete garbage but I'm sure plenty of people will just lap it up as a valid excuse. They need to take responsibility and admit that releasing a service or product involves coordination with other teams and testing beforehand. This is what it means to be a professional company and a professional software development organization and their rhetoric surrounding this is dogsh*t. What they're doing instead is releasing products in the market in hopes of obtaining a market advantage but which are not integrated with the rest of the AWS service offerings and tooling. This in turn just makes everyone's lives supporting these half-baked offerings miserable. This is the hallmark of a company that is no longer a gold standard and which is simply just churning out garbage. |
There is actually a soft ETA, as per this reply. |
Seems like this has been implemented already right? At the section |
You're right @skysb, seems it was implemented and this issue hasn't been updated. I tried it out and can confirm it works well 👍 |
Hey all, the feature is now available globally. Please refer to the doc for more details. Please open a new ticket upon any other issue concerning ServerlessV2. This ticket might be closed now. |
@osdrv: Great, thanks! However I'm not finding any documentation on how to create a |
you should choose the db.serverless |
@Beast12: Ah, thanks! |
Great work but looks like it first having its first bug with not serving Postgres serverless v2 aws/aws-cdk#20197 (comment) |
It does work in eu-west-1. I've created 4 aurora-postgres clusters with cfn. Version 14.3 |
@mmuller88: I see the error in that issue is |
@trygve-aaberge-adsk wow that fixed it. Thanks :) |
Sorry me again. Even if the deploy went smoothly it doesn't create the writer instance. So it seems there is still something wrong or I miss something ^^. |
@mmuller88: You need to create one or more database instances in the cluster in addition to the cluster itself. Like this (this is CloudFormation YAML, I don't use CDK so don't know how to do it there):
|
@trygve-aaberge-adsk got it thanks :) |
Request you if you could share the Yaml file for deploying server less V2 which is working for you |
the documentation example is missing a guidence to create an instance. it is not obvious for newcommers |
Sorry... Didn't had the time yet... This is a complete example... It has some basics from a aws aurora cluster cloudformation. But I added some stuff for our pupose... So you do need to filter maybe... But at least it has the instances...
|
As a side note, when I actually tried it, I was forced to put in the engine version as "8.0.mysql_aurora.3.02.0" and create the DB instance, contradicting the documentation that with only the cluster, the database would be ready to use. |
Here is a tested and working stripped down example for an RDS Aurora for MySQL 5.7 cluster with a single instance that is updated to MySQL 8.0 and RDS Serverless V2. See comments in CloudFormation for the step to follow.
|
@siebrand thanks a lot, your sample really helped me get started. Do you have an idea on how to do Multi-AZ? I tried setting the AvailabilityZone property for each DBInstance, but got rejected with: When I create two AWS::RDS::DBInstance in my CloudFormation template, it deploys both in the same AZ 🫠 |
@jankammerath: You should be able to set
|
@trygve-aaberge-adsk Awesome, thank you. It's working now. I probably wasn't careful enough placing the AvailabilityZone key properly under the properties. |
Name of the resource
AWS::RDS::DBInstance
Resource name
No response
Description
Aurora Serverless v2 is now GA. From how I understand the creation via UI/aws-cli the instances need to be of instance type db.serverless, which may or may not need to be added in CloudFormations property validation, but I definitively haven't found any way to specify the minimum and maximum ACUs yet. This is no longer a cluster setting, as with serverless v1, and even if, it now supports other values (e.g. 0.5) which definitively is neither documented as such or supported.
Other Details
https://aws.amazon.com/blogs/aws/amazon-aurora-serverless-v2-is-generally-available-instant-scaling-for-demanding-workloads/
The text was updated successfully, but these errors were encountered: