This guides a Konvoy user in creating IAM Policies and Instance Profiles used by the control plane and worker nodes by using an AWS CloudFormation Stack.
Prerequisites
Before applying the IAM Policies, verify the following:
- You have a valid AWS account with credentials configured that can manage CloudFormation Stacks, IAM Policies, IAM Roles, and IAM Instance Profiles.
IAM Artifacts
Below is a CloudFormation Stack that creates IAM Policies, IAM Roles, and IAM Instance Profiles.
Policies
AWSIAMManagedPolicyCloudProviderControlPlane
enumerates the Actions required by the workload cluster control plane machines. It is attached to theAWSIAMRoleControlPlane
Role.AWSIAMManagedPolicyCloudProviderNodes
enumerates the Actions required by the workload cluster worker machines. It is attached to theAWSIAMRoleNodes
Role.AWSIAMManagedPolicyControllers
enumerates the Actions required by the workload cluster worker machines. It is attached to theAWSIAMRoleControlPlane
Role.
Roles
AWSIAMRoleControlPlane
is the Role associated with theAWSIAMInstanceProfileControlPlane
Instance Profile.AWSIAMRoleNodes
is the Role associated with theAWSIAMInstanceProfileNodes
Instance Profile.
Instance Profiles
-
AWSIAMInstanceProfileControlPlane
, assigned to workload cluster control plane machines.NOTE: If the name is changed from the default, used below, it must be passed to
dkp create cluster
with the--control-plane-iam-instance-profile
flag. -
AWSIAMInstanceProfileNodes
, assigned to workload cluster worker machines.NOTE: If the name is changed from the default, used below, it must be passed to
dkp create cluster
with the--worker-iam-instance-profile
flag.
To apply these you can use clusterawsadm or paste the stack above into the AWS CloudFormation Templates, or use the AWS console.