<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article How to get started with the Amazon KMS connector and Qlik's Encryption API using Qlik Automate in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-get-started-with-the-Amazon-KMS-connector-and-Qlik-s/ta-p/2104061</link>
    <description>&lt;P&gt;This article explains how the Amazon KMS connector in Qlik Automate and the Encryption API of Qlik Cloud can be used together to manage operations such as key rotations.&lt;/P&gt;
&lt;P&gt;This article makes use of the Qlik Cloud connector, however the same actions can be performed with the Qlik Platform Ops connector for OEM use cases.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Table of Contents:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-TOC indent="15" liststyle="none" maxheadinglevel="4"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Authentication&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;AWS Setup&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;Authentication to Amazon KMS happens through an IAM user. The steps below outline how to create the IAM user, have the correct policy assigned and make a connection in Automations.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open the AWS console&lt;/LI&gt;
&lt;LI&gt;Navigate to &lt;STRONG&gt;Identity and Access Management (IAM)&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Create Policy&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;In the &lt;STRONG&gt;Policy editor&lt;/STRONG&gt;, switch to &lt;STRONG&gt;JSON &lt;/STRONG&gt;view&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JSON view.png" style="width: 393px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113878iE079437203D07229/image-dimensions/393x387?v=v2" width="393" height="387" role="button" title="JSON view.png" alt="JSON view.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;SPAN&gt;Copy in the following &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;JSON &lt;/STRONG&gt;&lt;SPAN&gt;document:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "kms:EnableKey",
                "kms:UntagResource",
                "kms:PutKeyPolicy",
                "kms:GetKeyPolicy",
                "kms:CancelKeyDeletion",
                "kms:ListResourceTags",
                "kms:DisableKey",
                "kms:UpdateAlias",
                "kms:ListKeys",
                "kms:TagResource",
                "kms:ListAliases",
                "kms:CreateAlias",
                "kms:DescribeKey",
                "kms:CreateKey",
                "kms:DeleteAlias",
                "kms:scheduleKeyDeletion"
            ],
            "Resource": "*"
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Specify Permissions.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113879iC7132E6EEFD360FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Specify Permissions.png" alt="Specify Permissions.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;On the review policy page, add a name and a description for the policy. In the example, the name is set to &lt;STRONG&gt;qlik-byok&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="name and description.png" style="width: 929px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113880iB27D578DA3029EA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="name and description.png" alt="name and description.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;After creating the policy, navigate to the &lt;STRONG&gt;Users&lt;/STRONG&gt; page in IAM&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Add Users&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Specify a name for the user. &lt;BR /&gt;&lt;BR /&gt;There is no need to provide the user access to the AWS console.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Specify User Details.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113881iC9601AB68546540C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Specify User Details.png" alt="Specify User Details.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Assign the previously generated permission policy to the user on the &lt;STRONG&gt;Set Permissions Page&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="set permission policy.png" style="width: 554px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113882i68CBB57ECD879D53/image-size/large?v=v2&amp;amp;px=999" role="button" title="set permission policy.png" alt="set permission policy.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Review your user settings in the&amp;nbsp;&lt;STRONG&gt;Review and Create&lt;/STRONG&gt; page&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Create user&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Back on the Users page, click on the user that you just created&lt;/LI&gt;
&lt;LI&gt;Navigate to the &lt;STRONG&gt;Security Credentials&amp;nbsp;&lt;/STRONG&gt;tab&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Create Access Key&amp;nbsp;&lt;/STRONG&gt;and then navigate to the Security Credentials tab and click Create Access Key:&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Create Access Key.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113883i7BC94A14C11EB06F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Create Access Key.png" alt="Create Access Key.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;For &lt;STRONG&gt;Use Case&amp;nbsp;&lt;/STRONG&gt;click&amp;nbsp;&lt;STRONG&gt;Third-party service&amp;nbsp;&lt;/STRONG&gt;and follow the recommendations.&amp;nbsp;A description tag is optional.&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Create Access Key&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Copy the &lt;STRONG&gt;Access Key&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;Secret Access Key&amp;nbsp;&lt;/STRONG&gt;values.&lt;BR /&gt;&lt;BR /&gt;Store them safely. The Secret Access Key will only be shown once. See&amp;nbsp;&lt;EM&gt;Access key best practices&amp;nbsp;&lt;/EM&gt;onscreen.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Retrieve access key.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113885i0150C136DEF53318/image-size/large?v=v2&amp;amp;px=999" role="button" title="Retrieve access key.png" alt="Retrieve access key.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Qlik Cloud&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;OL&gt;
&lt;LI&gt;Open Qlik Cloud&lt;/LI&gt;
&lt;LI&gt;Navigate to &lt;STRONG&gt;My Automations&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my automations.png" style="width: 342px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113887iE3F29E9C87E697A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="my automations.png" alt="my automations.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Switch to the &lt;STRONG&gt;Connections&amp;nbsp;&lt;/STRONG&gt;tab&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add new connection.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113890i3AD66B3877B9198B/image-size/large?v=v2&amp;amp;px=999" role="button" title="add new connection.png" alt="add new connection.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Add new connection&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Search for&amp;nbsp;&lt;STRONG&gt;Amazon KMS&lt;/STRONG&gt;&amp;nbsp;and click &lt;STRONG&gt;Add&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amazon KMS.png" style="width: 560px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113892iB4E26C4388A58AAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Amazon KMS.png" alt="Amazon KMS.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Provide the &lt;STRONG&gt;access key&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;secret access key&amp;nbsp;&lt;/STRONG&gt;and specify the&amp;nbsp;&lt;STRONG&gt;AWS region&amp;nbsp;&lt;/STRONG&gt;in which your KMS is located&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Key management.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113891i5E85C411B633F252/image-size/large?v=v2&amp;amp;px=999" role="button" title="Key management.png" alt="Key management.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Available blocks&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;The Amazon KMS connector has the following blocks available:&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Add Tag to Key&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Cancel Key Deletion&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Create Alias&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Create Key&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Delete Alias&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Delete Tag from Key&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Describe Key&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Disable Key&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Enable Key&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;List Aliases&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;List Keys&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;List Tags from Keys&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Put Key Policy&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Schedule Key Deletion&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Update Alias&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;The Qlik Cloud and Qlik Platform Ops connector have the following blocks to make use of the Encryption API:&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;List Key Providers&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Validate Key Provider&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Create Key Provider&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Get Key Provider by Fingerprint&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Trigger Migration to Key Provider&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Get Ongoing Key Provider Migration Details&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Reset a Migration to Qlik Provider&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Building an automation to encrypt a tenant with a customer-managed key&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;Now that there's a connection to Amazon KMS, we can configure an automation which generates a new key and sets this key to be the key provider in Qlik Cloud for the entire tenant. Then re-encrypt the whole tenant with the new provided key. Instructions below on how to build this with an Automation:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;First, validate which key is currently being used. &lt;BR /&gt;&lt;BR /&gt;Navigate to &lt;FONT face="courier new,courier"&gt;https://&lt;STRONG&gt;{tenant_name}&lt;/STRONG&gt;.&lt;STRONG&gt;{region}&lt;/STRONG&gt;.qlikcloud.com/console/settings/KMS-providers&lt;/FONT&gt;.&lt;BR /&gt;&lt;BR /&gt;If this is your first time adding a Customer Managed Key, you should see that the tenant is making use of a Qlik-provided key:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlik Provided Key.png" style="width: 755px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113893iF6C8BE2F9D7019D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Qlik Provided Key.png" alt="Qlik Provided Key.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Change to the Automations console using the icon in the top right and click on &lt;STRONG&gt;My Automations&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my automations.png" style="width: 342px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113887iE3F29E9C87E697A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="my automations.png" alt="my automations.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Click on &lt;STRONG&gt;Create Automation&lt;/STRONG&gt; in the top right&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Create Automation.png" style="width: 299px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113894iFAD107149BDD7D88/image-size/large?v=v2&amp;amp;px=999" role="button" title="Create Automation.png" alt="Create Automation.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Choose the &lt;STRONG&gt;Blank Automation&amp;nbsp;&lt;/STRONG&gt;template&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Blank Automation.png" style="width: 931px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113895iF89D224C117FB132/image-size/large?v=v2&amp;amp;px=999" role="button" title="Blank Automation.png" alt="Blank Automation.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Provide a &lt;STRONG&gt;name&lt;/STRONG&gt; for the automation and an optional description&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Save&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;In the Automation editor, use the left panel to search for the &lt;STRONG&gt;Amazon KMS&lt;/STRONG&gt; connector&lt;/LI&gt;
&lt;LI&gt;Locate&amp;nbsp;the&amp;nbsp;&lt;STRONG&gt;Create Key&amp;nbsp;&lt;/STRONG&gt;block and drag it into the canvas on the right&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Create the Automation.png" style="width: 810px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113897iFF939903E5F958BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Create the Automation.png" alt="Create the Automation.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Do the same for the&lt;STRONG&gt; Put Key Policy&lt;/STRONG&gt; block and drag this underneath the Create Key block.&lt;/LI&gt;
&lt;LI&gt;Click on the &lt;STRONG&gt;Put Key Policy&lt;/STRONG&gt; block and provide a key ID in the inputs panel. &lt;BR /&gt;&lt;BR /&gt;You can make use of the example values from the Create Key block. &lt;BR /&gt;&lt;BR /&gt;To do so:&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;click on the &lt;STRONG&gt;Key ID&lt;/STRONG&gt; input&lt;/LI&gt;
&lt;LI&gt;Choose &lt;STRONG&gt;Output from Create Key&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Find the &lt;STRONG&gt;KeyId&lt;/STRONG&gt; field&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="create the keyid.png" style="width: 888px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113898iAC2ACAD1D60C3F65/image-size/large?v=v2&amp;amp;px=999" role="button" title="create the keyid.png" alt="create the keyid.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;For the Key Policy input field, use the toggle for Raw Input and provide the following JSON document. Modify the values for {account_id} to your AWS account ID and the {tenant_id} to your Qlik Cloud tenant Id. You can use Automations to obtain your tenant ID through the Get Tenant Info block of the Qlik Cloud connector.&lt;BR /&gt;&lt;BR /&gt;&lt;LI-CODE lang="javascript"&gt;{
    "Version": "2012-10-17",
    "Id": "key-consolepolicy-3",
    "Statement": [
        {
            "Sid": "Enable IAM User Permissions",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::{acoount_id}:root"
            },
            "Action": "kms:*",
            "Resource": "*"
        },
        {
            "Sid": "Enable KMS Key policy for proxy account",
            "Effect": "Allow",
            "Principal": {
                "AWS": [
                    "arn:aws:iam::338144066592:role/byok-encryption-proxy-role",
                    "arn:aws:iam::338144066592:role/byok-automations-proxy-role",
                    "arn:aws:iam::634246602378:role/byok-encryption-proxy-role",
                    "arn:aws:iam::634246602378:role/byok-automations-proxy-role"
                ]
            },
            "Action": [
                "kms:Encrypt",
                "kms:Decrypt",
                "kms:GenerateDataKey"
            ],
            "Resource": "*",
            "Condition": {
                "StringEquals": {
                    "kms:EncryptionContext:TenantId": "{tenant_id}"
                }
            }
        }
    ]
}​&lt;/LI-CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Put Key Policy.png" style="width: 342px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113899i835686C5A5AF722F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Put Key Policy.png" alt="Put Key Policy.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Use the blocks panel to open the Qlik Cloud connector and drag the &lt;STRONG&gt;Create Key Provider&lt;/STRONG&gt; block on the canvas. Configure this block with the ARN obtained from the Create Key block, provide a name and set the type to AWS-KMS.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Create Key Provider.png" style="width: 358px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113900i4A149CE7AE706903/image-size/large?v=v2&amp;amp;px=999" role="button" title="Create Key Provider.png" alt="Create Key Provider.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;From the Qlik Cloud connector, drag both the &lt;STRONG&gt;Validate Key Provider&lt;/STRONG&gt; and &lt;STRONG&gt;Trigger Migration to Key Provider&lt;/STRONG&gt; blocks on the canvas. Configure the inputs for Key ID just like for the earlier blocks. You should have the following automation:&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Add validate key provider and trigger migration to key provider.png" style="width: 345px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113901iFB7F8979D6CBE216/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add validate key provider and trigger migration to key provider.png" alt="Add validate key provider and trigger migration to key provider.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Upon running this automation, the tenant will be re-encrypted using a Customer Managed Key.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 28 May 2025 12:12:22 GMT</pubDate>
    <dc:creator>MarkGeurtsen</dc:creator>
    <dc:date>2025-05-28T12:12:22Z</dc:date>
    <item>
      <title>How to get started with the Amazon KMS connector and Qlik's Encryption API using Qlik Automate</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-get-started-with-the-Amazon-KMS-connector-and-Qlik-s/ta-p/2104061</link>
      <description>&lt;P&gt;This article explains how the Amazon KMS connector in Qlik Automate and the Encryption API of Qlik Cloud can be used together to manage operations such as key rotations.&lt;/P&gt;
&lt;P&gt;This article makes use of the Qlik Cloud connector, however the same actions can be performed with the Qlik Platform Ops connector for OEM use cases.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Table of Contents:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-TOC indent="15" liststyle="none" maxheadinglevel="4"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Authentication&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;AWS Setup&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;Authentication to Amazon KMS happens through an IAM user. The steps below outline how to create the IAM user, have the correct policy assigned and make a connection in Automations.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open the AWS console&lt;/LI&gt;
&lt;LI&gt;Navigate to &lt;STRONG&gt;Identity and Access Management (IAM)&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Create Policy&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;In the &lt;STRONG&gt;Policy editor&lt;/STRONG&gt;, switch to &lt;STRONG&gt;JSON &lt;/STRONG&gt;view&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JSON view.png" style="width: 393px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113878iE079437203D07229/image-dimensions/393x387?v=v2" width="393" height="387" role="button" title="JSON view.png" alt="JSON view.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;SPAN&gt;Copy in the following &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;JSON &lt;/STRONG&gt;&lt;SPAN&gt;document:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "kms:EnableKey",
                "kms:UntagResource",
                "kms:PutKeyPolicy",
                "kms:GetKeyPolicy",
                "kms:CancelKeyDeletion",
                "kms:ListResourceTags",
                "kms:DisableKey",
                "kms:UpdateAlias",
                "kms:ListKeys",
                "kms:TagResource",
                "kms:ListAliases",
                "kms:CreateAlias",
                "kms:DescribeKey",
                "kms:CreateKey",
                "kms:DeleteAlias",
                "kms:scheduleKeyDeletion"
            ],
            "Resource": "*"
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Specify Permissions.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113879iC7132E6EEFD360FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Specify Permissions.png" alt="Specify Permissions.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;On the review policy page, add a name and a description for the policy. In the example, the name is set to &lt;STRONG&gt;qlik-byok&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="name and description.png" style="width: 929px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113880iB27D578DA3029EA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="name and description.png" alt="name and description.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;After creating the policy, navigate to the &lt;STRONG&gt;Users&lt;/STRONG&gt; page in IAM&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Add Users&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Specify a name for the user. &lt;BR /&gt;&lt;BR /&gt;There is no need to provide the user access to the AWS console.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Specify User Details.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113881iC9601AB68546540C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Specify User Details.png" alt="Specify User Details.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Assign the previously generated permission policy to the user on the &lt;STRONG&gt;Set Permissions Page&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="set permission policy.png" style="width: 554px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113882i68CBB57ECD879D53/image-size/large?v=v2&amp;amp;px=999" role="button" title="set permission policy.png" alt="set permission policy.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Review your user settings in the&amp;nbsp;&lt;STRONG&gt;Review and Create&lt;/STRONG&gt; page&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Create user&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Back on the Users page, click on the user that you just created&lt;/LI&gt;
&lt;LI&gt;Navigate to the &lt;STRONG&gt;Security Credentials&amp;nbsp;&lt;/STRONG&gt;tab&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Create Access Key&amp;nbsp;&lt;/STRONG&gt;and then navigate to the Security Credentials tab and click Create Access Key:&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Create Access Key.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113883i7BC94A14C11EB06F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Create Access Key.png" alt="Create Access Key.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;For &lt;STRONG&gt;Use Case&amp;nbsp;&lt;/STRONG&gt;click&amp;nbsp;&lt;STRONG&gt;Third-party service&amp;nbsp;&lt;/STRONG&gt;and follow the recommendations.&amp;nbsp;A description tag is optional.&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Create Access Key&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Copy the &lt;STRONG&gt;Access Key&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;Secret Access Key&amp;nbsp;&lt;/STRONG&gt;values.&lt;BR /&gt;&lt;BR /&gt;Store them safely. The Secret Access Key will only be shown once. See&amp;nbsp;&lt;EM&gt;Access key best practices&amp;nbsp;&lt;/EM&gt;onscreen.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Retrieve access key.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113885i0150C136DEF53318/image-size/large?v=v2&amp;amp;px=999" role="button" title="Retrieve access key.png" alt="Retrieve access key.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Qlik Cloud&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;OL&gt;
&lt;LI&gt;Open Qlik Cloud&lt;/LI&gt;
&lt;LI&gt;Navigate to &lt;STRONG&gt;My Automations&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my automations.png" style="width: 342px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113887iE3F29E9C87E697A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="my automations.png" alt="my automations.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Switch to the &lt;STRONG&gt;Connections&amp;nbsp;&lt;/STRONG&gt;tab&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add new connection.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113890i3AD66B3877B9198B/image-size/large?v=v2&amp;amp;px=999" role="button" title="add new connection.png" alt="add new connection.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Add new connection&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Search for&amp;nbsp;&lt;STRONG&gt;Amazon KMS&lt;/STRONG&gt;&amp;nbsp;and click &lt;STRONG&gt;Add&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amazon KMS.png" style="width: 560px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113892iB4E26C4388A58AAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Amazon KMS.png" alt="Amazon KMS.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Provide the &lt;STRONG&gt;access key&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;secret access key&amp;nbsp;&lt;/STRONG&gt;and specify the&amp;nbsp;&lt;STRONG&gt;AWS region&amp;nbsp;&lt;/STRONG&gt;in which your KMS is located&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Key management.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113891i5E85C411B633F252/image-size/large?v=v2&amp;amp;px=999" role="button" title="Key management.png" alt="Key management.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Available blocks&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;The Amazon KMS connector has the following blocks available:&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Add Tag to Key&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Cancel Key Deletion&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Create Alias&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Create Key&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Delete Alias&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Delete Tag from Key&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Describe Key&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Disable Key&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Enable Key&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;List Aliases&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;List Keys&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;List Tags from Keys&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Put Key Policy&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Schedule Key Deletion&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Update Alias&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;The Qlik Cloud and Qlik Platform Ops connector have the following blocks to make use of the Encryption API:&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;List Key Providers&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Validate Key Provider&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Create Key Provider&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Get Key Provider by Fingerprint&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Trigger Migration to Key Provider&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Get Ongoing Key Provider Migration Details&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color="#000000"&gt;Reset a Migration to Qlik Provider&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Building an automation to encrypt a tenant with a customer-managed key&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;Now that there's a connection to Amazon KMS, we can configure an automation which generates a new key and sets this key to be the key provider in Qlik Cloud for the entire tenant. Then re-encrypt the whole tenant with the new provided key. Instructions below on how to build this with an Automation:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;First, validate which key is currently being used. &lt;BR /&gt;&lt;BR /&gt;Navigate to &lt;FONT face="courier new,courier"&gt;https://&lt;STRONG&gt;{tenant_name}&lt;/STRONG&gt;.&lt;STRONG&gt;{region}&lt;/STRONG&gt;.qlikcloud.com/console/settings/KMS-providers&lt;/FONT&gt;.&lt;BR /&gt;&lt;BR /&gt;If this is your first time adding a Customer Managed Key, you should see that the tenant is making use of a Qlik-provided key:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlik Provided Key.png" style="width: 755px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113893iF6C8BE2F9D7019D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Qlik Provided Key.png" alt="Qlik Provided Key.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Change to the Automations console using the icon in the top right and click on &lt;STRONG&gt;My Automations&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my automations.png" style="width: 342px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113887iE3F29E9C87E697A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="my automations.png" alt="my automations.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Click on &lt;STRONG&gt;Create Automation&lt;/STRONG&gt; in the top right&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Create Automation.png" style="width: 299px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113894iFAD107149BDD7D88/image-size/large?v=v2&amp;amp;px=999" role="button" title="Create Automation.png" alt="Create Automation.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Choose the &lt;STRONG&gt;Blank Automation&amp;nbsp;&lt;/STRONG&gt;template&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Blank Automation.png" style="width: 931px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113895iF89D224C117FB132/image-size/large?v=v2&amp;amp;px=999" role="button" title="Blank Automation.png" alt="Blank Automation.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Provide a &lt;STRONG&gt;name&lt;/STRONG&gt; for the automation and an optional description&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Save&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;In the Automation editor, use the left panel to search for the &lt;STRONG&gt;Amazon KMS&lt;/STRONG&gt; connector&lt;/LI&gt;
&lt;LI&gt;Locate&amp;nbsp;the&amp;nbsp;&lt;STRONG&gt;Create Key&amp;nbsp;&lt;/STRONG&gt;block and drag it into the canvas on the right&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Create the Automation.png" style="width: 810px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113897iFF939903E5F958BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Create the Automation.png" alt="Create the Automation.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Do the same for the&lt;STRONG&gt; Put Key Policy&lt;/STRONG&gt; block and drag this underneath the Create Key block.&lt;/LI&gt;
&lt;LI&gt;Click on the &lt;STRONG&gt;Put Key Policy&lt;/STRONG&gt; block and provide a key ID in the inputs panel. &lt;BR /&gt;&lt;BR /&gt;You can make use of the example values from the Create Key block. &lt;BR /&gt;&lt;BR /&gt;To do so:&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;click on the &lt;STRONG&gt;Key ID&lt;/STRONG&gt; input&lt;/LI&gt;
&lt;LI&gt;Choose &lt;STRONG&gt;Output from Create Key&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Find the &lt;STRONG&gt;KeyId&lt;/STRONG&gt; field&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="create the keyid.png" style="width: 888px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113898iAC2ACAD1D60C3F65/image-size/large?v=v2&amp;amp;px=999" role="button" title="create the keyid.png" alt="create the keyid.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;For the Key Policy input field, use the toggle for Raw Input and provide the following JSON document. Modify the values for {account_id} to your AWS account ID and the {tenant_id} to your Qlik Cloud tenant Id. You can use Automations to obtain your tenant ID through the Get Tenant Info block of the Qlik Cloud connector.&lt;BR /&gt;&lt;BR /&gt;&lt;LI-CODE lang="javascript"&gt;{
    "Version": "2012-10-17",
    "Id": "key-consolepolicy-3",
    "Statement": [
        {
            "Sid": "Enable IAM User Permissions",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::{acoount_id}:root"
            },
            "Action": "kms:*",
            "Resource": "*"
        },
        {
            "Sid": "Enable KMS Key policy for proxy account",
            "Effect": "Allow",
            "Principal": {
                "AWS": [
                    "arn:aws:iam::338144066592:role/byok-encryption-proxy-role",
                    "arn:aws:iam::338144066592:role/byok-automations-proxy-role",
                    "arn:aws:iam::634246602378:role/byok-encryption-proxy-role",
                    "arn:aws:iam::634246602378:role/byok-automations-proxy-role"
                ]
            },
            "Action": [
                "kms:Encrypt",
                "kms:Decrypt",
                "kms:GenerateDataKey"
            ],
            "Resource": "*",
            "Condition": {
                "StringEquals": {
                    "kms:EncryptionContext:TenantId": "{tenant_id}"
                }
            }
        }
    ]
}​&lt;/LI-CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Put Key Policy.png" style="width: 342px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113899i835686C5A5AF722F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Put Key Policy.png" alt="Put Key Policy.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Use the blocks panel to open the Qlik Cloud connector and drag the &lt;STRONG&gt;Create Key Provider&lt;/STRONG&gt; block on the canvas. Configure this block with the ARN obtained from the Create Key block, provide a name and set the type to AWS-KMS.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Create Key Provider.png" style="width: 358px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113900i4A149CE7AE706903/image-size/large?v=v2&amp;amp;px=999" role="button" title="Create Key Provider.png" alt="Create Key Provider.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;From the Qlik Cloud connector, drag both the &lt;STRONG&gt;Validate Key Provider&lt;/STRONG&gt; and &lt;STRONG&gt;Trigger Migration to Key Provider&lt;/STRONG&gt; blocks on the canvas. Configure the inputs for Key ID just like for the earlier blocks. You should have the following automation:&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Add validate key provider and trigger migration to key provider.png" style="width: 345px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113901iFB7F8979D6CBE216/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add validate key provider and trigger migration to key provider.png" alt="Add validate key provider and trigger migration to key provider.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Upon running this automation, the tenant will be re-encrypted using a Customer Managed Key.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 May 2025 12:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-get-started-with-the-Amazon-KMS-connector-and-Qlik-s/ta-p/2104061</guid>
      <dc:creator>MarkGeurtsen</dc:creator>
      <dc:date>2025-05-28T12:12:22Z</dc:date>
    </item>
  </channel>
</rss>

