Connections

AWS Connection

Connect Ennote to Amazon Web Services with an IAM role that trusts Ennote's principal and requires your External ID. The connection is required to use AWS KMS keys for your secrets.
Available on the Business plan.

Ennote connects to AWS by assuming an IAM role in your account. You create the role and its trust policy, and the trust policy lets only Ennote's principal assume it, and only with the External ID that Ennote generates for your organization. No AWS access keys are shared with Ennote.

Getting the trust details from Ennote

Open Connections in Ennote

Navigate within Ennote application to the following path: Organization Settings -> Integrations -> Connections and select Amazon Web Services (AWS).

Copy the Principal ARN and External ID

The dialog shows the two values your IAM role must trust:

  • Principal ARN: the Ennote role that will assume your role.
  • External ID: a unique value for your organization. AWS checks it on every role assumption, which prevents the confused deputy problem. Never share it outside your organization.

Keep this dialog open, you will come back to it to finish the connection.

Copy the IAM trust policy

Expand View IAM Trust Policy JSON. Ennote generates the full trust policy with your Principal ARN and External ID already filled in. Copy it.

The policy has this shape:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "<PRINCIPAL_ARN_FROM_ENNOTE>"
      },
      "Action": "sts:AssumeRole",
      "Condition": {
        "StringEquals": {
          "sts:ExternalId": "<EXTERNAL_ID_FROM_ENNOTE>"
        }
      }
    }
  ]
}

Creating the IAM role in AWS

Create a role

In the AWS Console, navigate to IAM -> Roles and click Create role.

Paste the custom trust policy

Under Trusted entity type, select Custom trust policy and replace the editor contents with the trust policy you copied from Ennote. Check that the Principal ARN and External ID match the values in the Ennote dialog, then click Next.

Skip permissions for now

On the Add permissions step, click Next without selecting any policy. The role gets access to your KMS key later, in the AWS KMS setup, once the key exists.

Name and create the role

Enter a Role name (for example ennote-aws-kms) and an optional description. Review the trust policy and click Create role.

Copy the role ARN

Open the new role. Copy its ARN from the Summary section, it has the format arn:aws:iam::<account-id>:role/<role-name>.

Finishing the connection in Ennote

Enter the connection details

Return to the Ennote dialog and fill in Finalize Connection Details:

  • IAM Role ARN: the ARN of the role you just created.
  • Connection Name: a unique and descriptive name for this connection.
  • Description (Optional): additional context, such as the AWS account or environment it links to.

Click Establish Connection.

It can take up to five minutes for AWS to apply new IAM changes. If the connection fails, wait a few minutes and try again.

Connection created

The AWS connection now appears in the Cloud Connections list.

Next, create a KMS key and switch your organization's encryption to it: AWS KMS setup.

Need Help?

If you encounter any issues or have questions, don't hesitate to contact support. Our team is here to assist you with any challenges you might face.