Cloudockit Guide
Cloudockit Guide
INSTALLATION &
CONFIGURATION GUIDE
GENERATED BY:
Contents
Introduction .................................................................................................................................................. 4
Pre-Requisites ............................................................................................................................................... 5
Installation .................................................................................................................................................... 6
License Activation ......................................................................................................................................... 7
Start or Schedule a Document Generation ................................................................................................... 9
Step 1 - Create the credentials................................................................................................................. 9
Azure – Create an AAD App .................................................................................................................. 9
AWS ..................................................................................................................................................... 14
GCP – Create JSON Credential files ..................................................................................................... 19
Step 2 – Choose your platform and your parameters........................................................................... 21
Azure ................................................................................................................................................... 21
AWS ..................................................................................................................................................... 24
GCP ...................................................................................................................................................... 27
Select your environments to document ............................................................................................. 28
Parameters selected from Cloudockit Desktop .................................................................................. 29
Documents section ............................................................................................................................. 29
Workloads ........................................................................................................................................... 30
Organize Content ................................................................................................................................ 30
Track Changes ..................................................................................................................................... 31
Drop-Off .............................................................................................................................................. 31
Compliance ......................................................................................................................................... 35
Step 3 – Start or schedule the generation ............................................................................................. 36
Start Document Generation ................................................................................................................ 36
Schedule Document Generation ......................................................................................................... 36
Troubleshooting .......................................................................................................................................... 38
Most Common causes of issues .............................................................................................................. 38
Upgrade Issues ........................................................................................................................................ 38
General Procedure .................................................................................................................................. 38
Cloudockit Desktop code is the same as Cloudockit Website, giving you the exact same output.
First, you need to install the tool. The tool is a simple .msi file.
5. Click on Install
6. Click Finish
7. A shortcut has been generated on your desktop. Double click on it to start Cloudockit.
Please note that Cloudockit Desktop has an auto-update feature: it will automatically detect a new
update and install it for you.
License Activation
Once you have installed Cloudockit tool, enter the product Key to activate the product.
If you do not have one, simply select trial mode and enter your email. Please enter a valid email: we will
send you a validation email with a link for the activation. Then restart Cloudockit Desktop and you will
be in Trial mode.
Please note that in Trial mode you will have **** in the generated documents at random positions.
If you DO NOT Receive the validation email, it is probably due to spam filtering issues, please contact
us at [email protected] and we will fix that for you.
Then click on Certificates and secrets and create a new client secret that never expires:
Note: This value is only visible after its creation. You will have to create a new one if you did not saved it.
Select the appropriate subscription, select Access Control (IAM), click Add and Add role assignment.
Role: Reader
You have two options to connect to your AWS Accounts depending on the scenario:
• Option 1 - If you want to connect to a specific single AWS Account, create Access Key and Secret
Key with read permissions
• Option 2 - If you want to connect to a multiple AWS Accounts, create Access Key and Secret Key
with permissions to list the account and roles in each account you want to scan
Option 1 - Single AWS Account - Create AWS Access Key and Secret Key
Option 2 - Multiple AWS Accounts - Create AWS Access/Secret Key and Cross Account Roles
Important note: to support scanning multiple AWS Accounts, Cloudockit Desktop MUST be installed in
an EC2 instance.
• An IAM User and its keys to list the Account in the OU organization
o Note that you can also manually enter a list of Account IDs if you do not want to retrieve
it automatically with an IAM User
o This user is referred as CloudockitMultiAccountScan in the following sections.
• An AWS Cross-Account Role in each AWS Account that need to be scanned. The name of this
Cross-Account Role needs to be the same in all AWS Account.
o This role is referred as CloudockitScanRole in the following sections.
• An EC2 instance that has the privilege to AssumeRole to allow Cloudockit Desktop to Assume
Roles defined in the AWS Accounts
o This role is referred as CloudockitEC2RoleCrossAccount in the following steps
• The property “Maximum session duration” of this role should be set to 12h, in each of the AWS
accounts to scan
IAM User
This IAM User will be used to list all the accounts in the organization to allow Cloudockit Desktop to loop
trough all these accounts and then Assume Roles in each of them.
Once the role is created, get the Access Key / Secret Key.
Select Users and choose CloudockitMultiAccountScan. Click on Security Credentials and then click on
Create Access Key. Save the Access Key ID and Secret Access Key.
Before creating the EC2 Instance, let’s create the Policies and Role required for the EC2 Instance.
"Version": "2012-10-17",
"Statement": {
"Effect": "Allow",
"Action": "sts:AssumeRole",
"Resource": "*"
• From the EC2 Console, click on Launch Instance. Select Windows Server 2019 Base, take the 64-
bit edition for the Image
• In the step2, Choose an instance type, select t2.large. Click Next for the instance details
• In IAM Role, select the role CloudockitEC2RoleCrossAccount that you have created before
• Then click Review and Launch
• Login to the EC2 Instance and install Cloudockit Desktop
• Sign in to the GCP Console and click on IAM & Admin / Service
Accounts: https://console.cloud.google.com/iam-admin/serviceaccounts
• Select the project where you want to create the Service Account (you will then be able to give
the appropriate permissions to the other projects with the same service account)
• Click on Create Service Account and enter the Service Account Name. (For instance, use
Cloudockit). Then click on create
• Then, click on create and select the role Project / Viewer. Click on Continue
• As Cloudockit is using the Cloud Resource Manager API to list all the projects, you need to
Enable this API
• To do so, click on API & Services and click on Enable APIs and Services
• In the search box, enter Resource Manager
Depending on the Platform you select, you will see different authentication option:
Azure
Enter your information in the list and don’t forget to choose your cloud type depending on your
location. Complete this form by clicking on “Login”.
User
This option uses Code authentication. Firstly, enter your AAD Tenant Name, then Cloudockit will give
you a Code to enter after navigating to https://microsoft.com/devicelogin.
Please note that with this option you cannot schedule a document generation. It is an interactive
process therefore it cannot be used for automation.
This way you won’t have to manually enter or save your credentials in Cloudockit. Once you are
connected to your Virtual Machine, it’s all managed in the background by Azure.
To learn more about Azure Managed Identity, visit the link below:
https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview
1- Create a Virtual Machine in the Azure Directory you wish to scan (or use an existing one)
2- In Azure Portal, select the Virtual Machine and go to the “Identity” Tab under “Settings”
3- Under “System Assigned” Enable the option by clicking on Status -> ON, then Save
Once these steps are completed, you can connect to your Virtual Machine and install Cloudockit (or
continue using it if it’s already installed and has the Managed Identity option displayed).
You can add or revoke the “Reader” Role whenever you want from the Azure portal. This will add or
remove the corresponding subscriptions to be scanned in Cloudockit.
Access Keys
Proceed by clicking “Use Access Key”.
There, you will be asked to enter your access key ID and your secret access key obtained from step 1.
Continue by clicking Login.
You also need to enter the Role To Assume in the accounts while doing the scan (referred as
CloudockitScanRole above):
If you do not want to use an IAM User to dynamically list the account, you can enter the account list
manually.
You also need to enter the Role To Assume in the accounts while doing the scan (referred as
CloudockitScanRole above):
There, you will be asked to select your .json credential file obtained from step 1. Browse through your
folders to find the required file.
Once authenticated, you can select the environment you want to document:
Once you selected your environment, you can choose the settings for the document generation.
Documents section
In this section, you can choose the type of document you want to generate. You have the choice
between Word, PDF, Audit, Excel, Visio, Draw.io, Lucidchart, LeanIX, JSON …
This section allows you to choose between the different applications you would like to see linked to the
rest of your cloud platform. Depending on your platform, you will have different workloads to choose
from.
Note: Some workloads will contain additional settings that you may modify.
Organize Content
This section gives you the ability to filter what you want to scan and to automatically detect Application,
Stage or Name. By doing so, you specify for example, a Tag that represent your Business Application and
Cloudockit will automatically create diagrams per business application.
Track changes allows you to see the differences between two different environments. It will save a
snapshot and compare it to a previous one. This will give you a better understanding of the changes that
happened.
Note that you can choose to use a Cloud Storage or a Local Folder.
Drop-Off
The Drop-Off section allows you to send the generated documents to different sources. You can choose
between:
• Email
• Your storage
• Specify if you want to use Local Folder Storage (where Cloudockit is installed) or a Cloud
Storage (your own Cloud Storage)
Here are the different options and required configuration for the cloud providers
AWS S3 Bucket
For option 1
1. Create the following policy and add it to your IAM User
{
"Version": "2012-10-17",
"Statement": [
"Effect": "Allow",
"Action": [
],
"Resource": [
"arn:aws:s3:::YOURS3Bucket"
From the Storage Account, click on Permissions and then Bucket Policy. Ensure you have the following
statement (replace the IAM User Arn and Resource)
{
"Version": "2008-10-17",
"Id": "Policy1335892530063",
"Statement": [
"Sid": "Stmt1335892526597",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::xxxx:user/xxxxxxx"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::yourS3Bucket/*"
For option 2
1. Create the following policy and add it to your ScanRole that is used for the cross-account
authentication
{
"Version": "2012-10-17",
"Statement": [
"Effect": "Allow",
"Action": [
"s3:*"
],
"arn:aws:s3:::YOURS3Bucket"
From the Storage Account, click on Permissions and then Bucket Policy. Ensure you have the following
statement (replace the IAM User Arn by the ARN of your role and Resource by your bucket)
{
"Version": "2008-10-17",
"Id": "Policy1335892530063",
"Statement": [
"Sid": "Stmt1335892526597",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::xxxx:user/xxxxxxx"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::yourS3Bucket/*"
There are two options for the Azure Storage Account you specify:
GCP Bucket
You can specify your GCP Bucket account for drop off by entering the name of the GCP Bucket (short
name). The Bucket needs to be available to the service account you are using. You also need to ensure
the service account has privileges to write to this bucket.
Compliance
With the built-in set of rules, you can choose your Cloud environment setup. If the given set of rules
aren’t matching your personal needs, you can also a create your personal rules.
To start the document generation, click on Generate and it will start the process:
Next, enter a description for this scheduling. Before saving it, go ahead and choose the parameters you
would want your scheduling to have. The saving will take place automatically as you press on “Save
Schedule”. If you want to modify this after saving, simply click on “Edit”, modify the parameters, and
save the changes.
Note: The parameters will always be coming from the previous schedule parameters you modified. It
will not revert to the previous parameters you selected before applying changes to a schedule.
Most of the time, issues that you may have with Cloudockit are the following:
• The output storage you specify is not accessible. Remember that the account you use MUST
have WRITE permission on this storage
• The Keys you are using to connect to your environment have no permissions on any Azure
Subscription or AWS Account, therefore, you cannot see any of your environment
Upgrade Issues
If you have an issue after an upgrade, please refer to the Upgrade Instructions section below.
General Procedure
If you still have an issue, please contact us at [email protected] and send us the file named
Cloudockit.log located in the folder where you installed Cloudockit.
We try to minimize the breaking changes when we can. Most of the time, the upgrade instructions are
basically empty.
In some circumstances we introduce breaking changes that require some manual changes. Please refer
to the following section.
Upgrade to v3.20
Cloudockit Desktop v3.20 is now 100% 64 bits which introduces a new folder location C:\Program Files
instead of C:\Program Files(x86).
If you created automation profiles with a version prior v3.20 and you migrated to v3.20, follow these
steps:
Cloudockit has been completely rewritten to no longer use the Task Scheduler. We are working on a tool
to migrate existing schedules.
As the old notion of On-Prem Automation Profile is now deprecated and not accessible through the
Cloudockit Website, you can contact us if you need help in the migration of that.