typescript에서 aws-cdk v2로 SQS + DLQ 생성
2147 단어 typescriptawscdk
Queues can be great in scenarios where your application needs
something done but doesn’t need it done now, or doesn’t even care
about the result. Instead of calling a web service and waiting for it
to complete, you can write the message to a queue and let the same
business logic happen later.
쇼 시간이야
스택은 다음과 같습니다.
### 설치
npm i -D @aws-cdk/assert ts-node ts-node-dev typescript aws-cdk
npm i aws-cdk-lib constructs
먼저 다음 명령을 사용하여 프로젝트를 부트스트랩해야 합니다.
npx cdk bootstrap aws://ACCOUNT-NUMBER/REGION
Bootstrapping is the deployment of a AWS CloudFormation template to a specific AWS environment (account and region). The bootstrapping template accepts parameters that customize some aspects of the bootstrapped resources (see Customizing bootstrapping).
이제 다음 예제에 따라 대기열 및 DLQ를 생성할 수 있습니다.
Create SQS는 식은 죽 먹기입니다 xD
실제 프로젝트 구조 예제를 보고 싶다면 이 게시물의 하단을 살펴보십시오. 몇 가지 예제가 있는 내 cdk 저장소에 대한 링크입니다.
일어나 / cdk
모든 cdk 연구소는 여기에 갑니다 친구 xD
cdk
모든 cdk 연구소는 여기에 갑니다 친구 xD
View on GitHub
Reference
이 문제에 관하여(typescript에서 aws-cdk v2로 SQS + DLQ 생성), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://dev.to/wakeupmh/create-sqs-dlq-with-aws-cdk-v2-on-typescript-4djh
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Reference
이 문제에 관하여(typescript에서 aws-cdk v2로 SQS + DLQ 생성), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/wakeupmh/create-sqs-dlq-with-aws-cdk-v2-on-typescript-4djh텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)