devops:kubernetes:awsprofile

Розбіжності

Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.

Посилання на цей список змін

Порівняння попередніх версій Попередня ревізія
Наступна ревізія
Попередня ревізія
devops:kubernetes:awsprofile [02/06/2026 12:38] osvexdevops:kubernetes:awsprofile [02/06/2026 17:26] (поточний) osvex
Рядок 3: Рядок 3:
 Є два основних варіанти підключення AWS профілю: Є два основних варіанти підключення AWS профілю:
  
-  - +  - IAM User через **Access Key / Secret Key** 
-IAM User через +  - AWS SSO ( **IAM Identity Center**  )
-**Access Key / Secret Key** +
-  - +
-AWS SSO ( +
-**IAM Identity Center** +
-)+
  
-----+===== AWS Profile через Access Key / Secret Key =====
  
-====+==== Необхідні дані: ====
-**1. AWS Profile через Access Key / Secret Key**  ===== +
- +
-=== +
-**Необхідні дані:**  ===+
  
   * AWS Access Key ID   * AWS Access Key ID
Рядок 31: Рядок 22:
  
 </code> </code>
- +==== Створення профілю ====
----- +
- +
-==== +
-**Створення профілю**  ====+
  
 <code> <code>
-''aws configure --profile PROFILE_NAME''+aws configure --profile PROFILE_NAME
  
 </code> </code>
Рядок 45: Рядок 32:
  
 <code> <code>
-''aws configure --profile prod''+aws configure --profile prod
  
 </code> </code>
Рядок 69: Рядок 56:
 </code> </code>
  
----- +Перевірка:
- +
-==== +
-**Перевірка**  ====+
  
 <code> <code>
-''aws sts get-caller-identity --profile prod''+aws sts get-caller-identity --profile prod
  
 </code> </code>
Рядок 82: Рядок 66:
  
 <code> <code>
-''{+{
     "UserId": "XXXXXXXX",     "UserId": "XXXXXXXX",
     "Account": "123456789",     "Account": "123456789",
     "Arn": "arn:aws:iam::123456789:user/user"     "Arn": "arn:aws:iam::123456789:user/user"
-}''+}
  
 </code> </code>
  
----- +===== AWS Profile через SSO =====
- +
-=====+
-**2. AWS Profile через SSO**  ======+
  
-==== +==== Необхідні дані: ====
-**Необхідні дані:**  ====+
  
   * SSO Start URL   * SSO Start URL
Рядок 114: Рядок 94:
 </code> </code>
  
----- +==== Створення SSO профілю ====
- +
-==== +
-**Створення SSO профілю**  ====+
  
 <code> <code>
-''aws configure sso --profile PROFILE_NAME''+aws configure sso --profile PROFILE_NAME
  
 </code> </code>
Рядок 127: Рядок 104:
  
 <code> <code>
-''aws configure sso --profile prod''+aws configure sso --profile prod
  
 </code> </code>
Рядок 175: Рядок 152:
  
 </code> </code>
- +==== Вхід через SSO ====
----- +
- +
-==== +
-**Вхід через SSO**  ====+
  
 <code> <code>
-''aws sso login --profile prod''+aws sso login --profile prod
  
 </code> </code>
  
----- +Перевірка:
- +
-==== +
-**Перевірка**  ====+
  
 <code> <code>
-''aws sts get-caller-identity --profile prod''+aws sts get-caller-identity --profile prod
  
 </code> </code>
Рядок 206: Рядок 176:
 </file> </file>
  
-----+===== Корисні команди =====
  
-===== +**Показати всі профілі **
-**Корисні команди**  =====+
  
-==== +<code> 
-**Показати всі профілі**  ====+aws configure list-profiles
  
-<code>''aws configure list-profiles''+</code>
  
-</file>+**Подивитись налаштування профілю**
  
-----+<code> 
 +aws configure list --profile prod
  
-==== +</code>
-**Подивитись налаштування профілю**  ====+
  
-<code>''aws configure list --profile prod'' +**Де зберігаються профілі**
- +
-</file> +
- +
----- +
- +
-==== +
-**Де зберігаються профілі**  ====+
  
 Основний конфіг: Основний конфіг:
  
-<code>''~/.aws/config''+<code> 
 +~/.aws/config
  
 </code> </code>
  
-Access keys:+**Access keys:**
  
-<code>''~/.aws/credentials''+<code> 
 +~/.aws/credentials
  
 </code> </code>
  
-SSO токени:+**SSO токени:**
  
-<code>''~/.aws/sso/cache/''+<code> 
 +~/.aws/sso/cache/
  
 </code> </code>
- +==== Використання профілю ====
----- +
- +
-==== +
-**Використання профілю**  ====+
  
 Вказати явно: Вказати явно:
  
-<code>''aws COMMAND --profile prod''+<code> 
 +aws COMMAND --profile prod
  
-</file>+</code>
  
-або зробити профіль за замовчуванням:+**або зробити профіль за замовчуванням:**
  
 Linux/macOS: Linux/macOS:
  
-<code>''export AWS_PROFILE=prod''+<code> 
 +export AWS_PROFILE=prod
  
 </code> </code>
Рядок 271: Рядок 234:
 Windows PowerShell: Windows PowerShell:
  
-<code>''$env:AWS_PROFILE="prod"''+<code> 
 +$env:AWS_PROFILE="prod"
  
 </code> </code>
  
  • devops/kubernetes/awsprofile.1780403923.txt.gz
  • Востаннє змінено: 02/06/2026 12:38
  • повз osvex