Turning on SSAS
Use the following process to turn on SSAS for your DB instance:
-
Create a new option group, or choose an existing option group.
-
Add the
SSAS
option to the option group. -
Associate the option group with the DB instance.
-
Allow inbound access to the virtual private cloud (VPC) security group for the SSAS listener port.
-
Turn on Amazon S3 integration.
Creating an option group for SSAS
Use the Amazon Web Services Management Console or the Amazon CLI to create an option group that corresponds to the SQL Server engine and version of the DB instance that you plan to use.
Note
You can also use an existing option group if it's for the correct SQL Server engine and version.
The following console procedure creates an option group for SQL Server Standard Edition 2017.
To create the option group
Sign in to the Amazon Web Services Management Console and open the Amazon RDS console at https://console.amazonaws.cn/rds/
. -
In the navigation pane, choose Option groups.
-
Choose Create group.
-
In the Create option group pane, do the following:
-
For Name, enter a name for the option group that is unique within your Amazon account, such as
ssas-se-2017
. The name can contain only letters, digits, and hyphens. -
For Description, enter a brief description of the option group, such as
SSAS option group for SQL Server SE 2017
. The description is used for display purposes. -
For Engine, choose sqlserver-se.
-
For Major engine version, choose 14.00.
-
-
Choose Create.
The following CLI example creates an option group for SQL Server Standard Edition 2017.
To create the option group
-
Use one of the following commands.
For Linux, macOS, or Unix:
aws rds create-option-group \ --option-group-name
ssas-se-2017
\ --engine-namesqlserver-se
\ --major-engine-version14.00
\ --option-group-description "SSAS option group for SQL Server SE 2017
"For Windows:
aws rds create-option-group ^ --option-group-name
ssas-se-2017
^ --engine-namesqlserver-se
^ --major-engine-version14.00
^ --option-group-description "SSAS option group for SQL Server SE 2017
"
Adding the SSAS option to the option group
Next, use the Amazon Web Services Management Console or the Amazon CLI to add the SSAS
option to the option
group.
To add the SSAS option
Sign in to the Amazon Web Services Management Console and open the Amazon RDS console at https://console.amazonaws.cn/rds/
. -
In the navigation pane, choose Option groups.
-
Choose the option group that you just created.
-
Choose Add option.
-
Under Option details, choose SSAS for Option name.
-
Under Option settings, do the following:
-
For Max memory, enter a value in the range 10–80.
Max memory specifies the upper threshold above which SSAS begins releasing memory more aggressively to make room for requests that are running, and also new high-priority requests. The number is a percentage of the total memory of the DB instance. The allowed values are 10–80, and the default is 45.
-
For Mode, choose the SSAS server mode, Tabular or Multidimensional.
If you don't see the Mode option setting, it means that Multidimensional mode isn't supported in your Amazon Region. For more information, see Limitations.
Tabular is the default.
-
For Security groups, choose the VPC security group to associate with the option.
Note
The port for accessing SSAS, 2383, is prepopulated.
-
-
Under Scheduling, choose whether to add the option immediately or at the next maintenance window.
-
Choose Add option.
To add the SSAS option
-
Create a JSON file, for example
ssas-option.json
, with the following parameters:-
OptionGroupName
– The name of option group that you created or chose previously (ssas-se-2017
in the following example). -
Port
– The port that you use to access SSAS. The only supported port is 2383. -
VpcSecurityGroupMemberships
– Memberships for VPC security groups for your RDS DB instance. -
MAX_MEMORY
– The upper threshold above which SSAS should begin releasing memory more aggressively to make room for requests that are running, and also new high-priority requests. The number is a percentage of the total memory of the DB instance. The allowed values are 10–80, and the default is 45. -
MODE
– The SSAS server mode, eitherTabular
orMultidimensional
.Tabular
is the default.If you receive an error that the
MODE
option setting isn't valid, it means that Multidimensional mode isn't supported in your Amazon Region. For more information, see Limitations.
The following is an example of a JSON file with SSAS option settings.
{ "OptionGroupName": "
ssas-se-2017
", "OptionsToInclude": [ { "OptionName": "SSAS", "Port": 2383, "VpcSecurityGroupMemberships": ["sg-0abcdef123
"], "OptionSettings": [{"Name":"MAX_MEMORY","Value":"60
"},{"Name":"MODE","Value":"Multidimensional
"}] }], "ApplyImmediately": true } -
-
Add the
SSAS
option to the option group.For Linux, macOS, or Unix:
aws rds add-option-to-option-group \ --cli-input-json file://
ssas-option.json
\ --apply-immediatelyFor Windows:
aws rds add-option-to-option-group ^ --cli-input-json file://
ssas-option.json
^ --apply-immediately
Associating the option group with your DB instance
You can use the console or the CLI to associate the option group with your DB instance.
Associate your option group with a new or existing DB instance:
-
For a new DB instance, associate the option group with the DB instance when you launch the instance. For more information, see Creating an Amazon RDS DB instance.
-
For an existing DB instance, modify the instance and associate the new option group with it. For more information, see Modifying an Amazon RDS DB instance.
Note
If you use an existing instance, it must already have an Active Directory domain and Amazon Identity and Access Management (IAM) role associated with it. If you create a new instance, specify an existing Active Directory domain and IAM role. For more information, see Working with Active Directory with RDS for SQL Server.
You can associate your option group with a new or existing DB instance.
Note
If you use an existing instance, it must already have an Active Directory domain and IAM role associated with it. If you create a new instance, specify an existing Active Directory domain and IAM role. For more information, see Working with Active Directory with RDS for SQL Server.
To create a DB instance that uses the option group
-
Specify the same DB engine type and major version that you used when creating the option group.
For Linux, macOS, or Unix:
aws rds create-db-instance \ --db-instance-identifier
myssasinstance
\ --db-instance-classdb.m5.2xlarge
\ --enginesqlserver-se
\ --engine-version14.00.3223.3.v1
\ --allocated-storage100
\ --manage-master-user-password \ --master-usernameadmin
\ --storage-typegp2
\ --license-modelli
\ --domain-iam-role-namemy-directory-iam-role
\ --domainmy-domain-id
\ --option-group-namessas-se-2017
For Windows:
aws rds create-db-instance ^ --db-instance-identifier
myssasinstance
^ --db-instance-classdb.m5.2xlarge
^ --enginesqlserver-se
^ --engine-version14.00.3223.3.v1
^ --allocated-storage100
^ --manage-master-user-password ^ --master-usernameadmin
^ --storage-typegp2
^ --license-modelli
^ --domain-iam-role-namemy-directory-iam-role
^ --domainmy-domain-id
^ --option-group-namessas-se-2017
To modify a DB instance to associate the option group
-
Use one of the following commands.
For Linux, macOS, or Unix:
aws rds modify-db-instance \ --db-instance-identifier
myssasinstance
\ --option-group-namessas-se-2017
\ --apply-immediatelyFor Windows:
aws rds modify-db-instance ^ --db-instance-identifier
myssasinstance
^ --option-group-namessas-se-2017
^ --apply-immediately
Allowing inbound access to your VPC security group
Create an inbound rule for the specified SSAS listener port in the VPC security group associated with your DB instance. For more information about setting up security groups, see Provide access to your DB instance in your VPC by creating a security group.
Enabling Amazon S3 integration
To download model configuration files to your host for deployment, use Amazon S3 integration. For more information, see Integrating an Amazon RDS for SQL Server DB instance with Amazon S3.