| name | aws-infra |
| description | Manage AWS infrastructure (CloudFormation, Cloud Control API, ECS, EKS, Serverless) without MCP. Use when the user asks to create/list/manage AWS resources, deploy stacks, or manage containers. |
AWS Infrastructure Management / AWS 인프라 관리
MCP 없이 boto3/CLI로 직접 인프라를 관리합니다.
When to Use / 사용 시점
- "AWS 리소스 목록" / "List AWS resources"
- "CloudFormation 스택 관리" / "Manage CF stacks"
- "EKS 클러스터 정보" / "EKS cluster info"
- "ECS 서비스 상태" / "ECS service status"
Cloud Control API (Any Resource) / 모든 리소스
List/Get/Create Resources / 리소스 조회/생성
import boto3
cc = boto3.client('cloudcontrol')
cc.list_resources(TypeName='AWS::S3::Bucket')
cc.get_resource(TypeName='AWS::S3::Bucket', Identifier='my-bucket')
import json
cc.create_resource(
TypeName='AWS::S3::Bucket',
DesiredState=json.dumps({"BucketName": "my-new-bucket"})
)
aws cloudcontrol list-resources --type-name AWS::EC2::VPC
aws cloudcontrol list-resources --type-name AWS::Lambda::Function
aws cloudcontrol list-resources --type-name AWS::RDS::DBInstance
CloudFormation / 스택 관리
Stack Operations / 스택 작업
aws cloudformation list-stacks --stack-status-filter CREATE_COMPLETE UPDATE_COMPLETE
aws cloudformation describe-stacks --stack-name my-stack
aws cloudformation describe-stack-events --stack-name my-stack --max-items 20
cf = boto3.client('cloudformation')
cf.list_stacks(StackStatusFilter=['CREATE_COMPLETE', 'UPDATE_COMPLETE'])
cf.describe_stacks(StackName='my-stack')
EKS / Kubernetes 클러스터
Cluster Management / 클러스터 관리
aws eks list-clusters
aws eks describe-cluster --name my-cluster
aws eks list-nodegroups --cluster-name my-cluster
aws eks update-kubeconfig --name my-cluster --region ap-northeast-2
eks = boto3.client('eks')
eks.list_clusters()
eks.describe_cluster(name='my-cluster')
cw = boto3.client('cloudwatch')
cw.get_metric_data(
MetricDataQueries=[{
'Id': 'pods',
'MetricStat': {
'Metric': {'Namespace': 'ContainerInsights', 'MetricName': 'pod_number_of_running_pods',
'Dimensions': [{'Name': 'ClusterName', 'Value': 'my-cluster'}]},
'Period': 300, 'Stat': 'Average'
}
}],
StartTime=datetime.utcnow() - timedelta(hours=1),
EndTime=datetime.utcnow()
)
ECS / 컨테이너 서비스
Service Management / 서비스 관리
aws ecs list-clusters
aws ecs list-services --cluster my-cluster
aws ecs describe-services --cluster my-cluster --services my-service
aws ecs list-tasks --cluster my-cluster --service-name my-service
ecs = boto3.client('ecs')
ecs.list_clusters()
ecs.list_services(cluster='my-cluster')
ecs.describe_services(cluster='my-cluster', services=['my-service'])
Lambda / 서버리스 함수
Function Management / 함수 관리
aws lambda list-functions --query 'Functions[].{Name:FunctionName,Runtime:Runtime,Memory:MemorySize}'
aws lambda invoke --function-name my-func --payload '{"key":"value"}' output.json
aws logs tail /aws/lambda/my-func --since 1h --follow
lam = boto3.client('lambda')
lam.list_functions()
lam.invoke(FunctionName='my-func', Payload=json.dumps({"key": "value"}))
Support Cases / 지원 케이스
support = boto3.client('support', region_name='us-east-1')
support.describe_cases(maxResults=10)
support.create_case(
subject='Issue description',
serviceCode='amazon-elastic-compute-cloud-linux',
categoryCode='using-aws',
severityCode='normal',
communicationBody='Detailed description of the issue'
)