Setup an Unlimited Database on an EC2 Cluster using IAM Role
Warning
SingleStore 9.0 gives you the opportunity to preview, evaluate, and provide feedback on new and upcoming features prior to their general availability. In the interim, SingleStore 8.9 is recommended for production workloads, which can later be upgraded to SingleStore 9.0.
The following steps should be used only if you are using a regular AWS EC2 based cluster.
-
On the AWS EC2 console, find your instance.
Right-click, go to Security
thenModify IAM Role
. -
Change the IAM role to
AmazonS3FullAccess
. -
Do this for each node in your cluster.
-
Connect to the MA and execute:
CREATE DATABASE <dbname> INTO S3 '<bucket_name>/<path_in_bucket>' CONFIG '{"region":<region>}' CREDENTIALS '{}';
-
If it does not work, it should give you the IP of the problematic node, recheck that node to ensure the IAM role is set correctly.
-
If you get an error about delete protection in your bucket, turn off delete protection in your bucket.
Last modified: September 29, 2023