You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2021. It is now read-only.
In order to build clusters within AWS we'll create a dedicated IAM user for
52
-
`kops`. This user requires API credentials in order to use `kops`. Create
53
-
the user, and credentials, using the [AWS console](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSGettingStartedGuide/AWSCredentials.html).
51
+
The officially supported way of installing the tool is with `pip` as in
54
52
55
-
The `kops` user will require the following IAM permissions to function properly
53
+
```bash
54
+
$ pip install awscli
55
+
```
56
+
57
+
You can also grab the tool with homebrew (for macOS users **only**), although this is not officially supported by AWS.
58
+
59
+
```bash
60
+
$ brew update && brew install awscli
61
+
```
62
+
63
+
#### Configure the `awscli` tool
64
+
65
+
The first thing you need to do is get valid AWS credentials out of the console. See [the official documentation](http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html#Using_CreateAccessKey) on how to find your *SecretAccessKey* and *AccessKeyID*.
66
+
67
+
Once you have those you can configure the `awscli` tool with
68
+
69
+
```bash
70
+
$ aws configure # Input your credentials here
71
+
```
72
+
73
+
74
+
#### Setting up IAM permission for kops
75
+
76
+
The recommended practice is to use a dedicated IAM user for kops. At a minimum `kops` will require the following IAM permissions to function properly.
56
77
57
78
- AmazonEC2FullAccess
58
79
- This is used to deploy to instances in EC2
@@ -61,16 +82,18 @@ The `kops` user will require the following IAM permissions to function properly
61
82
- AmazonS3FullAccess
62
83
- This is used to store meta configuration about your cluster. We will need read/write here to use S3 as a virtual filesystem in kops.
63
84
- IAMFullAccess
64
-
- This is used because kops will create new IAM users for some of it's resources. Those resources will have permissions managed securely by kops.
85
+
- This is used because kops will create new IAM users for some of its resources. Those resources will have permissions managed securely by kops.
65
86
- AmazonVPCFullAccess
66
87
- This used to create a VPC which serves as the foundation of all networking components in kops. Without a VPC, kops wouldn't be able to deploy any resources dependent on a network.
67
88
68
-
#### Create the IAM user from the command line
89
+
90
+
#### (Optional) Create a dedicated IAM user from the command line
91
+
92
+
**Note**: This can only be done **AFTER** you already have valid aws credentials in place. We will use the official `kops` provided convenience script to configure a new user with the following syntax: `sh new-iam-user.sh $group $user`
0 commit comments