AWS
Setting up a self-hosted DevZero Control Plane and Data Plane in AWS.
Before setting up the Control Plane and Data Plane, please ensure that you have these AWS permissions. Otherwise, you will not be able to complete your setup without errors. These are the IAM permissions that need to be attached to your AWS role/user:
Required Permissions on AWS
Prop | Type | Default |
---|---|---|
autoscaling:{..} | AWS Service | - |
cloudformation:{..} | AWS Service | - |
ec2:{..} | AWS Service | - |
eks:{..} | AWS Service | - |
elasticfilesystem:{..} | AWS Service | - |
events:{..} | AWS Service | - |
iam:{..} | AWS Service | - |
kms:{..} | AWS Service | - |
logs:{..} | AWS Service | - |
sqs:{..} | AWS Service | - |
Validating AWS Permissions (and updating Policies)
If you want to skip the first 3 steps, copy this policy.json and continue from step 4.
The validation script requires your IAM user/role to have permissions for the following actions:
Note: You can also copy this policy.json to skip the first four steps.
Validating Permissions
Clone this repository to get the script:
Configure your AWS CLI with your IAM User:
For example,
To use your IAM Role to configure the AWS CLI, check out Using an IAM role in the AWS CLI.
Run the script and choose the DevZero component that you're trying to deploy (Control or Data Plane):
You should see something like:
Set VERBOSE
mode to see more output:
The script will:
policy.json
iff you are missing some permissions.If the script has generated a policy.json for you, you don't have enough permissions to proceed with the deployment.
Follow the steps outlined in the next section to attach this policy.json
to your IAM role/user before rerunning the script to validate.
Create Policy
Go to the IAM Policies in AWS and click on 'Create Policy'. Select the JSON tab in Policy editor and paste
the custom policy.json
or the complete policy.json
from here.
In the next section, give the policy a name and a description and then click Create policy
.
Attach Policies to your Role/User
Go to your IAM Role or IAM User and click Add permissions > Attach Policies
.
Now that all the required permissions are attached, you can check out the guides to self-host the DevZero Control Plane and Data Plane.