Follow the steps below to connect to Amazon RDS or Redshift. For Amazon Elastic MapReduce (EMR) see the Amazon EMR connection page. For non-Amazon data sources see the JDBC/JNDI connections section below.
JasperReports Server must be running and you must be logged in as superuser.
Get help with these requirements here: Launching Jaspersoft BI for AWS.
Connect to Amazon RDS or Redshift
JasperReports Server can automatically discover and connect to Amazon Relational Database Server (RDS) and Amazon Redshift using the auto-connect feature.
To connect to Amazon RDS or Redshift:
|1.||In JasperReports Server, go to Create > Data Source|
Create > Data Source menu
|2.||Select AWS Data Source from the Type dropdown menu.|
|3.||Enter your EC2 instance credentials. If EC2 instance credentials are not available, then see the Additional Connection Possibilities section below.|
|4.||Under AWS Settings, select EC2 instance credentials.|
Add Data Source dialog
|5.||Enter your database connection info:|
JasperReports Server is able to detect your RDS and Redshift data sources. This is possible because the IAM Role associated with the EC2 instance is allowed to execute the actions "rds:Describe*" and "redshift:Describe*". It pre-populates the Database Name, Driver, and URL.
On the New Data Source page, You must enter the database username and password. For security reasons, Amazon does not store these credentials, and Jaspersoft cannot retrieve them.
The default database is automatically populated, but you may manually enter another if your RDS or Redshift instance has multiple databases.
New Data Source dialog
|6.||Test your connection:|
You should always test your connection. This button does much more than just testing:
|•||It creates a DB Security Group.|
|•||It adds the internal IP of the EC2 instance to the security group to authorize ingress to RDS.|
This is possible because the IAM Role provides the instance with credentials like "rds:CreateDBSecurityGroup" and "redshift:AuthorizeClusterSecurityGroupIngress".
|•||If you want to control details of the security group name or specify the IP address manually because you have a complex VPC Topology, then navigate to the menu Manage > Server Settings > AWS Settings.|
Test Connection dialog
|7.||Create a Domain:|
Jaspersoft's metadata layer is called "Data Domains". Choose Create > Domain from the main menu and follow the wizard to build a domain.
Create > Domain menu
|8.||Analyze your data:|
Choose Create > Ad Hoc View. Find your newly created domain and use the ad hoc environment to begin analyzing your data.
Create > Ad Hoc View menu
Refer to the Online Learning Portal for lots of details on creating domains, performing ad hoc analysis, and creating reports.
Additional Connection Possibilities
Under normal circumstances it's best to launch Jaspersoft BI on an EC2 instance with an associated IAM Role. This role provides EC2 credentials for your JRS instance.
If this option is not available for some reason, you can use AWS credentials instead. If you already have AWS Credentials, you can enter the Access Key and Secret Key.
If you don't have AWS Credentials, you can run the CloudFormation Template "jrs-create-user" to generate credentials.
Entering AWS credentials
|•||JDBC / JNDI Connections|
NOTE: When using JDBC for data source connections, you're responsible for managing the security groups to allow access from the Jaspersoft server to the data source.
Using JDBC / JNDI connections
|•||Amazon RDS or Redshift|
When connecting to Amazon RDS or Redshift, it is best to use the AWS Data Source type to make configuration easier. If you prefer, you can use JDBC to connect to Amazon RDS or Redshift. To connect using JDBC, choose the JDBC Data Source type. Enter all connection information and test. Alternatively, you can choose JNDI Data Source and refer to a data source defined in Apache Tomcat.
Benefits of defining your own JDBC connections:
|•||You have complete control|
Benefits of using AWS Data Sources:
|•||Jaspersoft provides the driver and URL|
|•||Data source automatically recovers if the IP address changes|
|•||Data source automatically recovers if DB Security Groups are modified|
Connect to Amazon EMR
The JasperReports Server auto-connect feature is not supported for Amazon EMR. Connections to EMR need to be configured manually. Please see the Amazon EMR connection page for details: http://community.jaspersoft.com/jaspersoft-aws/connect-emr
Follow the steps above to connect to Amazon RDS or Redshift. For Amazon EMR see the Amazon EMR connection page. For non-Amazon data sources see the JDBC/JNDI connections section above.