Mirtov Alexey 33d0bd4365 add english | 2 jaren geleden | |
---|---|---|
.. | ||
end | 3 jaren geleden | |
images | 3 jaren geleden | |
kubernetes | 3 jaren geleden | |
terraform | 3 jaren geleden | |
README.md | 2 jaren geleden | |
README_RU.md | 2 jaren geleden |
The video from the stand will be available when published on YouTube. The stand lets you to independently set up everything that was demonstrated at the webinar, for example:
The stand will include two folders and two users: devops and developer.
Write down IDs of the folders for our task:
export STAGING_FOLDER_ID=<ID of the staging folder for the demo>
export PROD_FOLDER_ID=<ID of the prod folder for the demo>
Create service accounts that will emulate users:
$ yc iam service-account create --name devops-user1 --folder-id=$STAGING_FOLDER_ID
$ yc iam service-account create --name developer-user1 --folder-id=$STAGING_FOLDER_ID
Create two profiles for the CLI, one profile will emulate a devops user, the other one, a developer:
$ yc iam key create --service-account-name devops-user1 --folder-id=$STAGING_FOLDER_ID --output devops.json
$ yc iam key create --service-account-name developer-user1 --folder-id=$STAGING_FOLDER_ID --output developer.json
$ yc config profile create demo-devops-user1
$ yc config set service-account-key devops.json
$ yc config profile create demo-developer-user1
$ yc config set service-account-key developer.json
Check that no one has any roles in the folders for the task:
$ yc resource-manager folder list-access-bindings --id=$STAGING_FOLDER_ID --profile=default
+---------+--------------+------------+
| ROLE ID | SUBJECT TYPE | SUBJECT ID |
+---------+--------------+------------+
+---------+--------------+------------+
$ yc resource-manager folder list-access-bindings --id=$PROD_FOLDER_ID --profile=default
+---------+--------------+------------+
| ROLE ID | SUBJECT TYPE | SUBJECT ID |
+---------+--------------+------------+
+---------+--------------+------------+
Move on to the lab task.
$ cd ./terraform/iam
Look at the readme file for this section.
(Part 1 is a prerequisite)
$ cd ./kubernetes/
Look at the readme for this section.
$ cd ./end
Look at the readme for this section.