

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 명령 데이터 백(aws\$1opsworks\$1command)
<a name="data-bag-json-command"></a>

**중요**  
이 AWS OpsWorks Stacks 서비스는 2024년 5월 26일에 수명이 종료되었으며 신규 및 기존 고객 모두에서 비활성화되었습니다. 가능한 한 빨리 워크로드를 다른 솔루션으로 마이그레이션하는 것이 좋습니다. 마이그레이션에 대한 질문이 있는 경우 [AWS re:Post](https://repost.aws/) 또는 [AWS Premium Support](https://aws.amazon.com/support)를 통해 AWS Support 팀에 문의하세요.

 OpsWorks Stacks가 하나 이상의 인스턴스에서 실행하는 명령의 설정을 나타냅니다.

다음 예제는 Chef 검색을 사용하여 단일 데이터 백 항목, 그런 다음 다중 데이터 백 항목을 검색하여 명령의 유형과 전송 시점을 포함하는 메시지를 Chef 로그에 기록하는 방법을 보여줍니다.

```
command = search("aws_opsworks_command").first
Chef::Log.info("********** The command's type is '#{command['type']}' **********")
Chef::Log.info("********** The command was sent at '#{command['sent_at']}' **********")

search("aws_opsworks_command").each do |command|
  Chef::Log.info("********** The command's type is '#{command['type']}' **********")
  Chef::Log.info("********** The command was sent at '#{command['sent_at']}' **********")
end
```


****  

|  |  |  | 
| --- |--- |--- |
| [args](#data-bag-json-command-args) | [command\$1id](#data-bag-json-command-command-id) | [iam\$1user\$1arn](#data-bag-json-command-iam-user-arn) | 
| [instance-id](#data-bag-json-command-instance-id) | [sent\$1at](#data-bag-json-command-sent-at) | [type](#data-bag-json-command-type) | 

**args**  <a name="data-bag-json-command-args"></a>
명령의 인수(문자열).

**command\$1id**  <a name="data-bag-json-command-command-id"></a>
 OpsWorks Stacks에서 할당한 명령의 무작위 고유 식별자(문자열).

**iam\$1user\$1arn**  <a name="data-bag-json-command-iam-user-arn"></a>
명령이 고객에 의해 생성되는 경우, 명령을 생성한 사용자의 Amazon 리소스 이름(ARN)(문자열).

**instance-id**  <a name="data-bag-json-command-instance-id"></a>
명령이 실행되는 인스턴스의 식별자(문자열).

**sent\$1at**  <a name="data-bag-json-command-sent-at"></a>
 OpsWorks Stacks가 명령을 실행한 시점의 타임스탬프(문자열).

**type**  <a name="data-bag-json-command-type"></a>
명령 유형(문자열). 유효한 값으로는 다음이 포함됩니다.  
+ `"configure"`
+ `"deploy"`
+ `"deregister"`
+ `"execute_recipes"`
+ `"grant_remote_access"`
+ `"install_dependencies"`
+ `"restart"`
+ `"revoke_remote_access"`
+ `"rollback"`
+ `"setup"`
+ `"shutdown"`
+ `"start"`
+ `"stop"`
+ `"sync_remote_users"`
+ `"undeploy"`
+ `"update_agent"`
+ `"update_custom_cookbooks"`
+ `"update_dependencies"`