메인 콘텐츠로 건너뛰기AWS Startups
  1. 프롬프트 라이브러리
  2. 컨테이너 오케스트레이션

컨테이너 오케스트레이션

오토 스케일링이 가능하고 트래픽 스파이크를 비용 효과적으로 처리할 수 있는 PostgreSQL 데이터베이스로 Node.js 앱의 AWS EKS 기반 컨테이너화된 애플리케이션 배포를 생성하는 데 도움을 받으세요.

  • Auto-Scaling
  • 컨테이너 오케스트레이션

프롬프트

# Cloud Infrastructure and Deployment Solution Request
## Context
<context>
I have an existing containerized application that I want to deploy to AWS using Kubernetes with proper orchestration and auto-scaling. Here's what I need:

Current State:

Docker container running a Node.js web application
Application connects to PostgreSQL database
Currently running locally with docker-compose
Application serves REST API and static frontend

Target Architecture Requirements:

Amazon EKS cluster for Kubernetes orchestration
Horizontal Pod Autoscaler based on CPU/memory usage
Cluster Autoscaler for node scaling
Application Load Balancer for traffic distribution
Managed PostgreSQL database (RDS)
Container registry (ECR) for image storage

Performance & Scaling:

Handle traffic spikes from 10 to 1000 concurrent users
Auto-scale pods between 2-20 replicas
Multi-AZ deployment for high availability
Rolling updates with zero downtime
Health checks and automatic recovery

Cost Optimization:

Use Spot instances for worker nodes where possible
Right-size instances based on actual usage
Implement resource requests and limits
Target monthly cost under $300
Cost monitoring and alerting

Security & Operations:

Network policies for pod-to-pod communication
Secrets management for database credentials
RBAC for cluster access control
Container image vulnerability scanning
Centralized logging with CloudWatch
Monitoring with Prometheus/Grafana or CloudWatch
Deployment & CI/CD:
GitOps workflow preferred
Automated container builds and pushes
Staging and production environments
Rollback capabilities
</context>

## Task
Create a comprehensive cloud infrastructure and deployment solution based on the context provided above. Your solution should follow AWS Well-Architected Framework principles (reliability, security, performance efficiency, cost optimization, and operational excellence).
## Required Components
Please provide a complete solution that includes ALL of the following:
1. **Infrastructure as Code**
   - Terraform configuration files for provisioning AWS resources
   - Helm charts for Kubernetes application deployment
   - Detailed explanation of resource configurations and their purposes
2. **Kubernetes Implementation**
   - Complete Kubernetes manifest files (deployments, services, ingress, etc.)
   - Resource requests/limits and scaling configurations
   - Security contexts and network policies
3. **CI/CD Pipeline**
   - Pipeline configuration files (GitHub Actions, Jenkins, AWS CodePipeline, or similar)
   - Build, test, and deployment stages
   - Security scanning and quality gates
4. **Deployment Guide**
   - Prerequisites and environment setup instructions
   - Step-by-step deployment process
   - Validation and testing procedures
   - Rollback procedures
## Requirements
- Ensure all components work together seamlessly
- Implement proper security controls (least privilege, encryption, etc.)
- Include monitoring and logging solutions
- Design for high availability and disaster recovery
- Optimize for cost efficiency
- Readme with full documentation
Please provide the complete solution with all code snippets, configurations, and instructions formatted properly with appropriate markdown. Include comments in code to explain key decisions and configurations.
Provide your complete solution immediately without any preamble or additional explanations beyond the requested components.

어떻게 사용하나요?

베타

  1. AWS 환경 및 비용 관리 설정
  2. AWS CLI 설치
    • 운영 체제에 맞는 AWS CLI을(를) 다운로드하여 설치합니다.
  3. 프롬프트 복사
    • ‘프롬프트 복사’를 클릭하여 프롬프트를 클립보드에 복사합니다.
  4. 프롬프트 테스트
    • 프롬프트를 AI 도구(예: Q Developer CLI)에 붙여넣고 실행하여 결과를 생성합니다.
  5. 검토, 배포 및 모니터링
    • 생성된 리소스와 예상 비용을 검토합니다.
    • 우선 개발 환경에 배포합니다.
    • 프로덕션으로 전환하기 전에 성과와 지출을 모니터링하세요.

이러한 프롬프트를 사용하면 고지 사항에 동의하는 것으로 간주됩니다.