@bifos/nhncloud-cli 0.16.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -38,6 +38,28 @@ nhncloud doctor # 설정이 제대로 됐는지 확인
38
38
  자격증명은 `~/.nhncloud/credentials.json`(mode 0600), 설정은 `~/.nhncloud/config.json` 에 저장한다.
39
39
  profile 우선순위는 `--profile` > `NHNCLOUD_PROFILE` > `config.defaultProfile` > `default` 다.
40
40
 
41
+ 공공기관용 NHN Cloud를 사용한다면 해당 profile의 `credentials.json` 블록에 `"environment": "gov"`를 추가한다.
42
+ 기존 profile은 이 필드를 생략하면 일반망을 사용한다.
43
+ 공공망 endpoint 선택은 OAuth, Deploy, NCR, IaaS 호출에 적용된다.
44
+ 공공망 NCR은 `kr1`, IaaS는 `kr1`과 `kr2`만 지원한다.
45
+
46
+ ```json
47
+ {
48
+ "version": 1,
49
+ "profiles": {
50
+ "public-project": {
51
+ "environment": "gov",
52
+ "userAccessKey": { "id": "<uak-id>", "secret": "<uak-secret>" },
53
+ "deploy": { "appkey": "<appkey>" }
54
+ }
55
+ }
56
+ }
57
+ ```
58
+
59
+ `nhncloud deploy artifacts --profile public-project --json`으로 조회할 수 있다.
60
+ 현재 `configure`의 연결 테스트는 일반망 주소를 사용하므로, 공공망 자격증명을 저장할 때는 `--no-verify`를 지정한다.
61
+ 공공망 표시를 추가한 뒤 조회 명령으로 연결과 권한을 확인한다.
62
+
41
63
  > **iaas 자격증명의 함정 두 가지**
42
64
  >
43
65
  > `--iaas-password` 는 NHN Cloud 콘솔 IAM 의 **API 비밀번호**다. 로그인 비밀번호와 다르다.
@@ -98,12 +120,15 @@ CLI 를 새 버전으로 올린 뒤에는 `nhncloud skills update` 를 실행해
98
120
  nhncloud instance list # 인스턴스 목록
99
121
  nhncloud instance get <instance-id> # 인스턴스 상세
100
122
  nhncloud network list # VPC 목록
123
+ nhncloud network security-group list # 보안그룹 목록
124
+ nhncloud instance security-group add <instance-id> <group> --yes # 인스턴스에 보안그룹 연결
101
125
  nhncloud volume list # 블록 스토리지 볼륨
102
126
  nhncloud floatingip list # Floating IP
103
127
  nhncloud loadbalancer list # 로드밸런서
104
128
  nhncloud ncr list # 컨테이너 레지스트리
105
129
  nhncloud nks cluster list # Kubernetes 클러스터
106
130
  nhncloud deploy artifacts # 배포 아티팩트
131
+ nhncloud deploy scenarios --artifact-id <id> --server-group-id <id> # 서버그룹 시나리오
107
132
  nhncloud logncrash available-token # 남은 조회 토큰과 추정 대기 시간
108
133
  nhncloud logncrash search --query '*' --from 1h --to now # 최근 1시간 로그
109
134
  nhncloud logncrash export --query '<lucene>' --from 1h --to now --output logs.jsonl # 대량 로그 파일 저장