Prerequisites
- An AWS account with an AdministratorAccess policy to create the Managed kdb resources.
- A KX insights license applied to your account. If you don’t have one see Activate your Managed kdb Insights license - Amazon FinSpace.
- Inside a Linux system you will need to download code from the TorQ and TorQ-Amazon-FinSpace-Starter-Pack GitHub repositories - Instructions below.
- If you are NOT using our Terraform deployment option to create and set up your Kdb Environment, follow this AWS workshop to do so.
Downloading the Code
TorQ
Take note of the latest version of code from the TorQ Latest Release Page - release name are v#.#.# e.g. v1.0.0
Run the following code - ensure you replace <copied_version_name>
with the release version you took note of above.
git clone --depth 1 --branch <copied_version_name> https://github.com/DataIntellectTech/TorQ.git
TorQ Amazon FinSpace Starter Pack
Take note of the latest version of code from the TorQ-Amazon-FinSpace-Starter-Pack Latest Release Page - release name are v#.#.# e.g. v1.0.0
Run the following code - ensure you replace <copied_version_name>
with the release version you took note of above.
git clone --depth 1 --branch <copied_version_name> https://github.com/DataIntellectTech/TorQ-Amazon-FinSpace-Starter-Pack.git
Zip them up together
Now we will zip these files together:
zip -r code.zip TorQ/ TorQ-Amazon-FinSpace-Starter-Pack/ -x "TorQ*/.git*"
Create and Upload code to S3 (For Non Terraform Deployment Only)
Two S3 buckets are required for this setup - one for the code and one for the data.
Create your S3 bucket by searching for "S3" and clicking Create bucket
Choose the same AWS Region as your AWS Finspace KxEnvirnment
Give your bucket a name
Unselect the Block all public access
box
Leave all other settings as the default
Edit the access policy
Copy the ARN of your S3 buckets in the console by navigating to your S3 bucket, selecting Properties
Edit the Access policy of both S3 buckets with the JSON document:
{
"Version": "2012-10-17",
"Id": "FinSpaceServiceAccess",
"Statement": [{
"Effect": "Allow",
"Principal": {
"Service": "finspace.amazonaws.com"
},
"Action": [
"s3:GetObject",
"s3:GetObjectTagging",
"s3:GetObjectVersion"
],
"Resource": "<ARN OF BUCKET COPIED EARLIER>/*",
"Condition": {
"StringEquals": {
"aws:SourceAccount": "766012286003"
}
}
},
{
"Effect": "Allow",
"Principal": {
"Service": "finspace.amazonaws.com"
},
"Action": "s3:ListBucket",
"Resource": "<ARN OF BUCKET COPIED EARLIER>",
"Condition": {
"StringEquals": {
"aws:SourceAccount": "766012286003"
}
}
}
]
}
Upload code to S3 code bucket
Upload the zip file created earlier to AWS S3 codebucket:
aws s3 cp code.zip s3://<your S3 codebucket name>
Upload hdb to S3 data bucket
Copy the pre-packaged hdb to AWS S3 databucket:
aws s3 cp --recursive TorQ-Amazon-FinSpace-Starter-Pack/hdb s3://<your S3 data bucket name>/hdb