Setup an Unlimited Database on an EC2 Cluster using IAM Role
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