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
AWS SAM CLI의`validate`명령어는 템플릿 검증을 위해 [cfn-lint](https://github.com/aws-cloudformation/cfn-lint)를 사용합니다.
4
-
이제 SAM CLI는 `--extra-lint-rules`옵션을 통해 추가 lint 규칙을 지원합니다.
3
+
The AWS SAM CLI's`validate`command uses [cfn-lint](https://github.com/aws-cloudformation/cfn-lint) for template validation.
4
+
SAM CLI now supports additional lint rules through the `--extra-lint-rules`option.
5
5
6
-
## 사용 방법
6
+
## Usage
7
7
8
8
```bash
9
9
sam validate --lint --extra-lint-rules="cfn_lint_serverless.rules"
10
10
```
11
11
12
-
## 인스톨러로 SAM CLI 설치 시 고려사항
12
+
## Considerations when Installing SAM CLI with the Installer
13
13
14
-
SAM CLI를 인스톨러(설치 프로그램)로 설치한 경우, SAM CLI는 자체 Python 환경을 사용합니다. 이 경우 추가 규칙 모듈이 해당 환경에 설치되어 있어야 합니다. 이 때 두 가지 접근 방식이 있습니다:
14
+
When SAM CLI is installed using the installer, it uses its own Python environment. In this case, additional rule modules must be installed in that environment. There are two approaches:
15
15
16
-
1.**인스톨러 Python 환경에 패키지 설치**: 인스톨러의 Python 환경에 필요한 패키지를 설치합니다.
17
-
2.**모듈 경로를 전체 경로로 지정**: 사용자 환경에 설치된 패키지의 전체 경로를 지정합니다.
16
+
1.**Install packages in the installer's Python environment**: Install the required packages in the installer's Python environment.
17
+
2.**Specify the full path to the module**: Specify the full path to the package installed in the user's environment.
18
18
19
-
## 사용 예제
19
+
## Usage Examples
20
20
21
-
### 서버리스 규칙 사용 (cfn-lint-serverless)
21
+
### Using Serverless Rules (cfn-lint-serverless)
22
22
23
23
```bash
24
-
#먼저 패키지 설치
24
+
#First, install the package
25
25
pip install cfn-lint-serverless
26
26
27
-
# SAM 템플릿 검증 실행
27
+
#Run SAM template validation
28
28
sam validate --lint --extra-lint-rules="cfn_lint_serverless.rules"
29
29
```
30
30
31
-
### 여러 규칙 모듈 사용
31
+
### Using Multiple Rule Modules
32
32
33
-
#### 방법 1: 콤마(,)로 구분하여 지정
33
+
#### Method 1: Specify Multiple Modules Separated by Commas
34
34
35
-
여러 규칙 모듈을 콤마(,)로 구분하여 한 번의 옵션으로 지정할 수 있습니다:
35
+
You can specify multiple rule modules separated by commas in a single option:
36
36
37
37
```bash
38
38
sam validate --lint --extra-lint-rules="module1.rules,module2.rules,module3.rules"
39
39
```
40
40
41
-
각 모듈은 자동으로 분리되어 cfn-lint에 전달됩니다.
41
+
Each module is automatically separated and passed to cfn-lint.
42
42
43
-
#### 방법 2: 옵션을 여러 번 사용
43
+
#### Method 2: Use the Option Multiple Times
44
44
45
-
`--extra-lint-rules`옵션을 여러 번 사용하여 여러 규칙 모듈을 지정할 수도 있습니다:
45
+
You can also specify multiple rule modules by using the `--extra-lint-rules`option multiple times:
46
46
47
47
```bash
48
48
sam validate --lint --extra-lint-rules="module1.rules" --extra-lint-rules="module2.rules"
49
49
```
50
50
51
-
## 참고사항
51
+
## Notes
52
52
53
-
*과거에 사용하던 `--serverless-rules`옵션은 deprecated 되었습니다.
54
-
*새로운 `--extra-lint-rules`옵션을 사용하는 것이 좋습니다.
55
-
*인스톨러로 SAM CLI를 설치한 경우 추가 규칙이 작동하지 않으면 인스톨러의 Python 환경에 패키지가 설치되어 있는지 확인하세요.
53
+
*The previously used `--serverless-rules`option is deprecated.
54
+
*It is recommended to use the new `--extra-lint-rules`option.
55
+
*If you installed SAM CLI using the installer and additional rules are not working, check if the package is installed in the installer's Python environment.
0 commit comments