Granting Full Access on your KMS to Starton
info
Granting full access to Starton enables you to dynamically create new wallets with the Starton API.
Creating a new policy before the IAM creation
Before granting access to your KMS, you need to create a Policy to define permissions associated to the IAM we will create.
- On AWS, go to the Identity and Access Management (IAM) dashboard.
 - In Access Management, go to Policies. (img)
 - Click Create Policy.
 - Go to JSON.
 - Copy the following .json and paste it in the tab.
 
{
	"Version": "2012-10-17",
	"Statement": [
		{
			"Effect": "Allow",
			"Action": "iam:CreateServiceLinkedRole",
			"Resource": "arn:aws:iam::*:role/aws-service-role/*"
		},
		{
			"Effect": "Allow",
			"Action": "kms:*",
			"Resource": "*"
		}
	]
}
- Click on Next:Tags.
 - Click Review.
 - Enter a Name for the policy.
 - Click Create policy.
 
Create a new IAM user for Starton
- Access AWS Users.
 - Click Add users.
 - Set username to 
kms. 
caution
Setting username to kms is mandatory. Do not enter another username.
- In Select AWS access type, check Access key - Programmatic access.
 
- Select Attach existing policies directly.
 - Select the kms policy name.
 - Click Next:Tags.
 
info
Adding tags is optional.
- Click Next:Review.
 - Review the kms user:
 
info
AWS access type must be set to Programmatic access - with an access key.
- Click Create user to get the Access Key Id and Secret Access Key for your KMS.
 
Importing a Key Management System on Starton
- From the Dashboard, click Settings.
 - In KMS, click + KMS.
 - Enter your KMS information:
 
| Parameter | Description | 
|---|---|
| KMS name | The name of your Key Management System on the Dashboard. | 
| Account id | The 12 digit number you can find it in the top-right corner of your AWS Dashboard. | 
| Access key id | The Access Key ID of the new IAM user available after completing this step. | 
| Secret access key | The Secret access key of the new IAM user available after completing this step. | 
| Region | The Region on which you want to create the wallet. For example eu-west-3. | 
- Click Create.
 
You can now dynamically create new wallets from your code or from the interface.
CREATING A WALLET FROM A KMS
- To create a wallet from your KMS, go to Wallet.
 - Click +Wallet and click CONNECT YOUR KMS AND GRAND FULL ACCESS TO STARTON.
 - From there, you can select the KMS imported.
 - Click Next.