

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

# Terraform을 사용하여 AWS Wavelength 영역에 리소스 배포
<a name="deploy-resources-wavelength-zone-using-terraform"></a>

*Zahoor Chaudhrey 및 Luca Iannario, Amazon Web Services*

## 요약
<a name="deploy-resources-wavelength-zone-using-terraform-summary"></a>

[AWS Wavelength](https://docs.aws.amazon.com/wavelength/latest/developerguide/what-is-wavelength.html)를 사용하면 다중 액세스 엣지 컴퓨팅(MEC) 애플리케이션에 최적화된 인프라를 구축할 수 있습니다. *Wavelength Zone은* 통신 서비스 공급자(CSP)의 5G 네트워크 내에 AWS 컴퓨팅 및 스토리지 서비스를 포함하는 AWS 인프라 배포입니다. 5G 디바이스의 애플리케이션 트래픽은 통신 네트워크를 벗어나지 않고 Wavelength Zones에서 실행되는 애플리케이션 서버에 도달합니다. 다음은 Wavelength를 통한 네트워크 연결을 용이하게 합니다.
+ **Virtual Private Cloud(VPCs)** -의 VPCs Wavelength Zone을 포함한 여러 가용 영역에 걸쳐 확장될 AWS 계정 수 있습니다. Amazon Elastic Compute Cloud(Amazon EC2) 인스턴스 및 관련 서비스는 리전 VPC의 일부로 표시됩니다. VPCs [Amazon Virtual Private Cloud(Amazon VPC)](https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html)에서 생성 및 관리됩니다.
+ **통신 사업자 게이트웨이** - 통신 사업자 게이트웨이를 사용하면 Wavelength Zone의 서브넷에서 CSP 네트워크, 인터넷 또는 CSP 네트워크를 AWS 리전 통해 로 연결할 수 있습니다. 통신 사업자 게이트웨이는 두 가지 용도로 사용됩니다. 즉, 특정 위치에 있는 통신 사업자 네트워크에서의 인바운드 트래픽을 허용하고, 통신 사업자 네트워크 및 인터넷으로의 아웃바운드 트래픽을 허용합니다.

이 패턴 및 관련 Terraform 코드는 Wavelength Zone에서 Amazon EC2 인스턴스, Amazon Elastic Block Store(Amazon EBS) 볼륨, VPCs, 서브넷 및 통신 사업자 게이트웨이와 같은 리소스를 시작하는 데 도움이 됩니다.

## 사전 조건 및 제한 사항
<a name="deploy-resources-wavelength-zone-using-terraform-prereqs"></a>

**사전 조건 **
+ 활성 AWS 계정
+  통합 개발 환경(IDE)
+ 대상 Wavelength Zone에 [옵트인](https://docs.aws.amazon.com/wavelength/latest/developerguide/get-started-wavelength.html#enable-zone-group) 
+ AWS Command Line Interface (AWS CLI), [설치](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) 및 [구성](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html)됨
+ Terraform 버전 1.8.4 이상, [설치](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli)됨(Terraform 설명서)
+ Terraform AWS Provider 버전 5.32.1 이상, [구성](https://hashicorp.github.io/terraform-provider-aws/)됨(Terraform 설명서)
+ Git, [설치](https://github.com/git-guides/install-git)됨(GitHub)
+ Amazon VPC, Wavelength 및 Amazon EC2 리소스를 생성할 [수 있는 권한](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html) 

**제한 사항 **

모든가 Wavelength Zone을 AWS 리전 지원하는 것은 아닙니다. 자세한 내용은 [Wavelength 설명서의 사용 가능한 Wavelength Zones](https://docs.aws.amazon.com/wavelength/latest/developerguide/available-wavelength-zones.html)를 참조하세요.

## 아키텍처
<a name="deploy-resources-wavelength-zone-using-terraform-architecture"></a>

다음 다이어그램은 Wavelength Zone에서 서브넷과 AWS 리소스를 생성하는 방법을 보여줍니다. Wavelength Zone에 서브넷이 포함된 VPCs는 통신 사업자 게이트웨이에 연결할 수 있습니다. 통신 사업자 게이트웨이를 사용하면 다음 리소스에 연결할 수 있습니다.
+ 통신 사업자의 네트워크에 있는 4G/LTE 및 5G 디바이스.
+ 일부 Wavelength Zone 파트너의 무선 액세스가 수정되었습니다. 자세한 내용은 [다중 액세스를 참조하세요 AWS Wavelength](https://docs.aws.amazon.com/wavelength/latest/developerguide/multi-access.html).
+ 퍼블릭 인터넷 리소스로의 아웃바운드 트래픽.

![\[통신 사업자 게이트웨이는 Wavelength Zone의 AWS 리소스를 CSP 네트워크에 연결합니다.\]](http://docs.aws.amazon.com/ko_kr/prescriptive-guidance/latest/patterns/images/pattern-img/8c507de1-208c-4563-bb58-52388ab2fa6d/images/a4cc0699-0cbc-4f15-ab14-3ae569ced7f4.png)


## 도구
<a name="deploy-resources-wavelength-zone-using-terraform-tools"></a>

**AWS 서비스**
+ [Amazon Virtual Private Cloud(Amazon VPC)](https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html)를 사용하면 정의한 가상 네트워크에서 AWS 리소스를 시작할 수 있습니다. 이 가상 네트워크는 AWS의 확장 가능한 인프라를 사용한다는 이점과 함께 고객의 자체 데이터 센터에서 운영하는 기존 네트워크와 유사합니다.
+ [AWS Wavelength](https://docs.aws.amazon.com/wavelength/latest/developerguide/what-is-wavelength.html)는 AWS 클라우드 인프라를 통신 공급자의 5G 네트워크로 확장합니다. 를 사용하면 개발자는 모바일 디바이스 및 최종 사용자에게 매우 짧은 지연 시간을 제공하는 애플리케이션을 빌드할 수 있습니다.

**기타 도구**
+ [Terraform](https://www.terraform.io/)은 HashiCorp의 코드형 인프라(IaC) 도구로, 클라우드 및 온프레미스 리소스를 생성하고 관리하는 데 도움이 됩니다.

**코드 리포지토리**

이 패턴의 코드는 GitHub [Creating AWS Wavelength Infrastructure using Terraform](https://github.com/aws-samples/terraform-wavelength-infrastructure) 리포지토리에서 사용할 수 있습니다. Terraform 코드는 다음 인프라와 리소스를 배포합니다.
+ VPC
+ Wavelength Zone
+ Wavelength Zone에서 서브넷을 생성합니다.
+ A Wavelength Zone 통신 사업자 게이트웨이로 라우팅
+ Wavelength Zone의 Amazon EC2 인스턴스

## 모범 사례
<a name="deploy-resources-wavelength-zone-using-terraform-best-practices"></a>
+ 배포하기 전에 최신 버전의 Terraform 및를 사용하고 있는지 확인합니다 AWS CLI.
+ 지속적 통합 및 지속적 전달(CI/CD) 파이프라인을 사용하여 IaC를 배포합니다. 자세한 내용은 AWS 블로그[의 AWS CI/CD 파이프라인에서 Terraform 상태 파일을 관리하는 모범 사례를](https://aws.amazon.com/blogs/devops/best-practices-for-managing-terraform-state-files-in-aws-ci-cd-pipeline/) 참조하세요.

## 에픽
<a name="deploy-resources-wavelength-zone-using-terraform-epics"></a>

### 인프라 프로비저닝
<a name="provision-the-infrastructure"></a>


| 작업 | 설명 | 필요한 기술 | 
| --- | --- | --- | 
| 리포지토리를 복제합니다. | 다음 명령을 입력하여 [Terraform을 사용하여 AWS Wavelength 인프라 생성](https://github.com/aws-samples/terraform-wavelength-infrastructure) 리포지토리를 환경에 복제합니다.`git clone git@github.com:aws-samples/terraform-wavelength-infrastructure.git` | DevOps 엔지니어 | 
| 변수를 업데이트합니다. | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ko_kr/prescriptive-guidance/latest/patterns/deploy-resources-wavelength-zone-using-terraform.html) | DevOps 엔지니어, Terraform | 
| 구성을 초기화합니다. | 다음 명령을 입력하여 작업 디렉터리를 초기화합니다.<pre>terraform init</pre> | DevOps 엔지니어, Terraform | 
| Terraform 계획을 미리 보기합니다. | 다음 명령을 입력하여 대상 상태를 AWS 환경의 현재 상태와 비교합니다. 이 명령은 구성할 리소스의 미리 보기를 생성합니다.<pre>terraform plan</pre> | DevOps 엔지니어, Terraform | 
| 배포하고 확인합니다. | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ko_kr/prescriptive-guidance/latest/patterns/deploy-resources-wavelength-zone-using-terraform.html) | DevOps 엔지니어, Terraform | 

### 확인 및 정리
<a name="validate-and-clean-up"></a>


| 작업 | 설명 | 필요한 기술 | 
| --- | --- | --- | 
| 인프라 배포를 확인합니다. | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ko_kr/prescriptive-guidance/latest/patterns/deploy-resources-wavelength-zone-using-terraform.html) | AWS DevOps, DevOps 엔지니어 | 
| (선택 사항) 인프라를 정리합니다. | Terraform에서 프로비저닝한 리소스를 모두 삭제해야 하는 경우 다음을 수행합니다.[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ko_kr/prescriptive-guidance/latest/patterns/deploy-resources-wavelength-zone-using-terraform.html) | DevOps 엔지니어, Terraform | 

## 문제 해결
<a name="deploy-resources-wavelength-zone-using-terraform-troubleshooting"></a>


| 문제 | Solution | 
| --- | --- | 
| 의 Amazon EC2 인스턴스에 대한 연결 AWS 리전. | [Linux 인스턴스 연결 문제 해결](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html) 또는 [Windows 인스턴스 연결 문제를 참조하세요](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/troubleshooting-windows-instances.html). | 
| Wavelength Zone의 Amazon EC2 인스턴스에 대한 연결. | [Wavelength Zone에서 시작된 내 EC2 인스턴스에 대한 SSH 또는 RDP 연결 문제 해결을 참조하세요](https://repost.aws/knowledge-center/ec2-wavelength-zone-connection-errors). | 
| Wavelength Zone의 용량입니다. | [Wavelength Zone에 대한 할당량 및 고려 사항을 참조하세요](https://docs.aws.amazon.com/wavelength/latest/developerguide/wavelength-quotas.html). | 
| 통신 사업자 네트워크에서 로의 모바일 또는 통신 사업자 연결 AWS 리전. | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ko_kr/prescriptive-guidance/latest/patterns/deploy-resources-wavelength-zone-using-terraform.html) | 

## 관련 리소스
<a name="deploy-resources-wavelength-zone-using-terraform-resources"></a>
+ [란 무엇입니까 AWS Wavelength?](https://docs.aws.amazon.com/wavelength/latest/developerguide/what-is-wavelength.html)
+ [AWS Wavelength 작동 방식](https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html)
+ [의 복원력 AWS Wavelength](https://docs.aws.amazon.com/wavelength/latest/developerguide/disaster-recovery-resiliency.html)