메인 콘텐츠로 건너뛰기AWS Startups
콘텐츠 언어
현재 모든 콘텐츠가 번역되지는 않습니다.
  1. 프롬프트 라이브러리
  2. AWS ECS Express Deployment Assistant

AWS ECS Express Deployment Assistant

Accelerates containerized app deployment to AWS ECS Express by automating Docker builds, ECR setup, and IAM configuration so startups deploy applications in minutes while maintaining best practices.

  • 초보자
  • Application Load Balancer

프롬프트

AWS ECS Express Deployment Assistant
Task
Deploy your containerized application to AWS ECS Express with automated setup of ECR, IAM roles, and service configuration. You will assist and guide me through building my Docker image, pushing to ECR, and deploying to ECS Express with proper IAM permissions.

Prerequisites:
Before starting, ensure you have:
AWS CLI installed and configured with appropriate credentials
Docker, Finch, or another container build tool installed
A Dockerfile in your project directory
aws-cli with permissions to create ECR repositories, IAM roles, and ECS services

Required Information
Please provide the following details about your deployment:

Project Configuration
Project Folder Path: [Full path to your project directory containing Dockerfile]
AWS Region: [e.g., us-east-1, us-west-2, eu-west-1, ap-southeast-1]
Container Port: [Port your application listens on - default: 80]
ECR Repository Configuration
ECR Repository Name: Use folder name as repository name (default) or specify custom name
IAM Role Configuration
3.1 Please ask the user if they want to create a task execution role or give an existing iam role arn instead. In case the user ask to create it please create the iam role according to the details in this aws documentation web page https://docs.aws.amazon.com/AmazonECS/latest/developerguide/express-service-getting-started.html
3.2 Please ask the user if they want to create a task infrastructure role or give an existing iam role arn instead. In case the user ask to create it please create the iam role according to the details in this aws documentation web page https://docs.aws.amazon.com/AmazonECS/latest/developerguide/express-service-getting-started.html
3.3 Please ask the user for task role arn. The user can provide iam role arn or you can scan the folder with all files and generate the required iam permissions that are required. Make sure not to miss any required permission and find all api calls that required permissions. Then, generate an iam role with the require permission.
Make the ECS allow inbound connection from the load balancer on port 443 to the ECS container port
Additional Configuration (Optional)
Environment Variables: [KEY=VALUE pairs, comma-separated]Memory Allocation: [e.g., 512, 1024, 2048 MB - default: 2048]
CPU Allocation: [e.g., 256, 512, 1024 - default: 1024]
Health Check Path: [e.g., /health, /api/health - default: /]
Instructions:
Once you provide the information above, I will:
Analyze Your Setup
Ask for the folder with your docker file, and validate Dockerfile exists in specified folder
Build the docker image with Intel architecture and push it to ECR
Create the IAM roles
Deploy to ECS Express using this command:
aws ecs create-express-gateway-service --execution-role-arn arn:aws:iam::[ACCOUNT_ID]:role/[IAM_ROLE] --infrastructure-role-arn arn:aws:iam::[ACCOUNT_ID]:role/[IAM_ROLE] --task-role-arn arn:aws:iam::[ACCOUNT_ID]:role/[IAM_ROLE] --primary-container image=<ecr image>,containerPort=<port>
Pay attention for other parameters if there were requested and use them as well
After running this command please get and print the application URL to the screen and let the user know they need to wait 5-10 minutes until the service is fully deployed.

어떻게 사용하나요?

베타
  1. AWS 환경 및 비용 관리 설정

    AWS for Startups 시작하기 가이드에 따라 계정을 생성하고 액세스를 구성하세요. 초기 스타트업을 위한 빠른 클라우드 비용 최적화 가이드을(를) 검토하여 예산을 설정하고, 지출을 모니터링하고, 사용하지 않는 리소스를 차단하세요.

  2. AWS CLI 설치

    운영 체제에 맞는 AWS CLI을(를) 다운로드하여 설치합니다.

  3. 프롬프트 복사

    ‘프롬프트 복사’를 클릭하여 프롬프트를 클립보드에 복사합니다.

  4. 프롬프트 테스트

    프롬프트를 AI 도구(예: Kiro CLI)에 붙여넣고 실행하여 결과를 생성합니다.

  5. 검토, 배포 및 모니터링

    생성된 리소스와 예상 비용을 검토합니다. 우선 개발 환경에 배포합니다. 프로덕션으로 전환하기 전에 성과와 지출을 모니터링하세요.

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