Community생산성 & 협업github.com

aws/cloudwatch-알림-설정

SNS 주제 및 구독을 사용하여 CloudWatch 알람에 대한 알림 채널을 설정합니다. 알람 알림을 구성할 때 항상 이 스킬을 사용하세요. 암호화된 SNS 주제를 생성하고, CloudWatch 액세스를 위한 주제 정책을 구성하며, 이메일/SMS/웹훅 구독을 설정하고, 적절한 보안 제어로 알람을 알림 작업에 연결합니다.

cloudwatch-알림-설정란 무엇인가요?

이 스킬은 Amazon CloudWatch 알람에 대한 알림 채널을 구성하는 과정을 자동화합니다. 개발자와 DevOps 엔지니어가 CloudWatch 알람이 트리거될 때 SNS(Amazon Simple Notification Service)를 통해 알림을 받을 수 있도록 합니다. 주요 기능으로는 암호화된 SNS 주제 생성, CloudWatch 서비스가 알림을 게시할 수 있도록 하는 주제 정책 구성, 다양한 엔드포인트(이메일, SMS, HTTP/HTTPS 웹훅)에 대한 구독 설정, 알람을 SNS 작업에 연결하는 것 등이 있습니다. 이 스킬은 알림이 안전하게 전달되도록 보장하며, AWS 계정 전반에 걸쳐 일관된 알림 구성을 유지하는 데 도움이 됩니다. AWS CLI, AWS CDK, Terraform 등 다양한 프로비저닝 도구와 호환되도록 설계되었습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/aws/agent-toolkit-for-aws/tree/main/skills/setting-up-cloudwatch-alarm-notifications

Installed? Explore more 생산성 & 협업 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

cloudwatch-알림-설정은(는) 무엇을 하나요?

SNS 주제 및 구독을 사용하여 CloudWatch 알람에 대한 알림 채널을 설정합니다. 알람 알림을 구성할 때 항상 이 스킬을 사용하세요. 암호화된 SNS 주제를 생성하고, CloudWatch 액세스를 위한 주제 정책을 구성하며, 이메일/SMS/웹훅 구독을 설정하고, 적절한 보안 제어로 알람을 알림 작업에 연결합니다.

개요

이 스킬은 다음 단계를 안내합니다:

  1. SNS 주제 생성 – 서버 측 암호화(SSE)가 활성화된 새 SNS 주제를 생성합니다.
  2. 주제 정책 구성 – CloudWatch 서비스가 해당 주제에 알림을 게시할 수 있도록 하는 리소스 기반 정책을 연결합니다.
  3. 구독 설정 – 대상 엔드포인트(이메일 주소, SMS 전화번호, HTTP/HTTPS URL)에 따라 SNS 구독을 생성합니다.
  4. 알람 작업 구성 – CloudWatch 알람의 AlarmActions 또는 OKActions 속성을 SNS 주제 ARN으로 설정합니다.

사용 방법

사전 요구 사항

  • AWS CLI가 설치 및 구성되어 있어야 합니다.
  • 대상 리전의 CloudWatch 알람에 대한 기존 CloudWatch 알람이 있어야 합니다.
  • 이메일 구독을 확인할 수 있는 유효한 이메일 주소 또는 SMS 구독을 위한 전화번호여야 합니다.

예제 (AWS CLI)

  1. SNS 주제 생성:

    aws sns create-topic --name MyAlarmTopic --attributes '{"KmsMasterKeyId":"alias/aws/sns"}'
    
  2. 주제 정책 연결 (CloudWatch 액세스 허용):

    {
      "Version": "2012-10-17",
      "Statement": [{
        "Effect": "Allow",
        "Principal": {
          "Service": "cloudwatch.amazonaws.com"
        },
        "Action": "sns:Publish",
        "Resource": "arn:aws:sns:us-east-1:123456789012:MyAlarmTopic"
      }]
    }
    
    aws sns set-topic-attributes --topic-arn arn:aws:sns:us-east-1:123456789012:MyAlarmTopic --attribute-name Policy --attribute-value file://policy.json
    
  3. 이메일 구독 생성:

    aws sns subscribe --topic-arn arn:aws:sns:us-east-1:123456789012:MyAlarmTopic --protocol email --notification-endpoint [email protected]
    
  4. CloudWatch 알람에 SNS 주제 연결:

    aws cloudwatch put-metric-alarm --alarm-name MyHighCPUAlarm --alarm-actions arn:aws:sns:us-east-1:123456789012:MyAlarmTopic
    

지원 플랫폼

  • AWS CLI – 위의 예제 참조.
  • AWS CDK (TypeScript) – Topic 및 Alarm 구성을 사용합니다.
  • Terraform – aws_sns_topic, aws_sns_topic_policy, aws_sns_topic_subscription, aws_cloudwatch_metric_alarm 리소스를 사용합니다.

중요 참고 사항

  • 암호화: 항상 KmsMasterKeyId를 지정하여 SNS 주제 암호화를 활성화하세요. 기본 AWS 관리형 키(alias/aws/sns)를 사용하거나 사용자 지정 KMS 키를 지정할 수 있습니다.
  • 구독 확인: 이메일 구독은 확인이 필요합니다. 구독자는 확인 이메일의 링크를 클릭해야 알림을 받을 수 있습니다.
  • 비용: SNS 주제, 구독 및 게시 작업에는 AWS 표준 요금이 부과됩니다.
  • IAM 권한: CloudWatch가 SNS 주제에 게시할 수 있도록 하려면 cloudwatch:PutMetricAlarm 및 sns:Publish 권한이 필요합니다.

문제 해결

  • 이메일 알림이 수신되지 않으면 SNS 주제 정책이 CloudWatch 서비스에 sns:Publish 권한을 부여하는지 확인하세요.
  • 구독이 "PendingConfirmation" 상태인 경우 구독자가 확인 링크를 클릭했는지 확인하세요.
  • CloudWatch 알람이 InsufficientData 상태로 유지되면 지표 네임스페이스와 차원이 올바른지 확인하세요.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

aws/amazon-bedrock

Builds generative AI applications on Amazon Bedrock. Covers model invocation (Converse API, InvokeModel), RAG with Knowledge Bases, Bedrock Agents, Guardrails, and AgentCore. Use when invoking models, setting up Knowledge Bases, creating agents, applying guardrails, deploying to AgentCore, troubleshooting Bedrock errors (ThrottlingException, AccessDeniedException), or choosing models (Claude, Llama, Nova, Titan). ALSO USE for prompt caching setup and debugging, quota health checks and throttling diagnosis, cost attribution and tracking, migrating between Claude model generations (4.5 to 4.6 to 4.7), chunking strategies, API selection (Converse vs InvokeModel), guardrail capabilities, and model selection. Also covers AgentCore Payments setup (x402, microtransactions, Payment Manager, Connector, Instrument, Coinbase CDP, Stripe Privy, 402 Payment Required, pay for content, paid endpoint, agent payments). NOT for custom model training, Rekognition, or Comprehend.

aws/aws-amplify

Build and deploy full-stack web and mobile apps with AWS Amplify Gen2 (TypeScript code-first). Covers auth (Cognito), data (AppSync/DynamoDB), storage (S3), functions, APIs, and AI (Amplify AI Kit with Bedrock). Supports React, Next.js, Vue, Angular, React Native, Flutter, Swift, and Android. Always use this skill for Amplify Gen2 topics — even for questions you think you know — it contains validated, version-specific patterns that prevent common mistakes. TRIGGER when: user mentions Amplify Gen2; project has amplify/ directory or amplify_outputs; code imports @aws-amplify packages; user asks about defineBackend, defineAuth, defineData, defineStorage, defineFunction, or npx ampx. SKIP: Amplify Gen1 (amplify CLI v6), standalone SAM/CDK without Amplify (use aws-serverless), direct Bedrock without Amplify AI Kit (use bedrock).

aws/aws-billing-and-cost-management

Analyze AWS costs, find savings, manage budgets, evaluate Savings Plans and Reserved Instances, right-size EC2/Lambda/RDS/EBS with Compute Optimizer, look up service pricing, query CUR with Athena, detect cost anomalies, scope costs to billing views, and monitor Free Tier usage. Triggers on: AWS bill, cost analysis, reduce spend, savings plan, reserved instance, right-size, budget alert, cost optimization, pricing, free tier, cost anomaly, CUR, cost audit, billing view, billing view ARN.

aws/aws-cdk

Authors, deploys, and troubleshoots AWS infrastructure using CDK with TypeScript or Python. Covers best practices, stack architecture, and construct patterns. Always use when writing CDK constructs, bootstrapping environments, running cdk deploy/synth/diff, fixing CDK or CloudFormation errors, planning stack structure, importing existing resources, resolving drift, or refactoring stacks without resource replacement.

aws/aws-cloudformation

Author, validate, and troubleshoot AWS CloudFormation templates. Covers template authoring with secure defaults, pre-deployment validation (cfn-lint, cfn-guard, change sets), and root-cause diagnosis of failed stacks using CloudFormation events and CloudTrail correlation.

aws/aws-containers

Deploys and operates containerized workloads on ECS, Fargate, and ECR. Covers task definitions, Fargate services, ECR repository setup and lifecycle policies, ECS Exec debugging, service scaling, deployment strategies, load balancer integration, and logging configuration. Use when deploying, debugging, or optimizing containers on AWS. ALSO USE for container deployment options (ECS vs ECS Express Mode), networking modes, health check troubleshooting, OOM errors, secrets injection, blue/green deployments, ECR image management, and App Runner sunset guidance and migration. NOT for Kubernetes, EKS, or CI/CD pipelines.

aws/aws-iam

Verified corrections for IAM behaviors that AI agents frequently get wrong — policy evaluation edge cases, trust policy gotchas, STS session limits, Organizations quirks, and SAML/MFA specifics. Use alongside documentation when working with IAM roles, policies, STS, or Organizations. Do NOT use for non-IAM authorization like Cognito user-pool policies or app-level RBAC.

aws/aws-messaging-and-streaming

Guides use of AWS messaging and streaming services. Covers Amazon SQS, Amazon SNS, Amazon EventBridge, Amazon MQ, Amazon Kinesis Data Streams, Amazon Data Firehose, Amazon Managed Service for Apache Flink, and Amazon Managed Streaming for Apache Kafka (MSK). Use when implementing messaging and streaming patterns.

aws/aws-observability

Builds, configures, debugs, and optimizes AWS observability using CloudWatch (Logs Insights, Metrics, Alarms, Dashboards, EMF), X-Ray, CloudTrail, and ADOT. Covers Log Insights query syntax (fields, filter, stats, parse, pattern, join, subqueries), alarm configuration (metric, composite, anomaly detection, missing data treatment), dashboard design, custom metrics (PutMetricData, EMF, metric filters), X-Ray tracing (ADOT, sampling rules, annotations vs metadata), ADOT collector config, and CloudTrail auditing. Use when the user mentions CloudWatch, Log Insights, alarms, INSUFFICIENT_DATA, dashboards, custom metrics, EMF, X-Ray, traces, sampling, CloudTrail, who deleted, ADOT, OpenTelemetry, observability, monitoring, synthetics, canaries, or troubleshooting alarm behavior. Do NOT use for application logging setup, container log drivers, or security threat detection.

aws/aws-sdk-js-v3-usage

AWS SDK for JavaScript v3 development patterns. Use when writing JavaScript or TypeScript code that uses AWS services via @aws-sdk/* packages (aws-sdk-js-v3), or when asked about schemas, runtime validation, serialization, or code generation in the context of the JS/TS AWS SDK.

aws/aws-sdk-python-usage

AWS SDK for Python (boto3/botocore) development patterns. You MUST use this skill when writing Python code that uses AWS services via boto3 or botocore. This includes creating service clients or resources, configuring sessions and credentials, handling errors with ClientError, using paginators and waiters, S3 file transfers and presigned URLs, DynamoDB table operations, and any boto3/botocore client configuration. Use this skill whenever Python code imports boto3 or botocore, or when the user asks about AWS operations in Python.

aws/aws-sdk-swift-usage

AWS SDK for Swift development patterns. Use when writing Swift code that uses AWS services via aws-sdk-swift package.

aws/aws-serverless

Builds, deploys, manages, debugs, configures, and optimizes serverless applications on AWS using Lambda, API Gateway, Step Functions, EventBridge, and SAM/CDK. Covers cold starts, CORS debugging, event source mappings, troubleshooting, concurrency, SnapStart, Powertools, function URLs, EventBridge Scheduler, Lambda layers, and production readiness. Triggers on mentions of Lambda, API Gateway, Step Functions, SAM templates, CDK serverless stacks, DynamoDB stream triggers, SQS event sources, cold starts, timeouts, 502/504 errors, throttling, concurrency, CORS, Powertools, or any event-driven architecture on AWS, even without the word "serverless." Does not apply to EC2, ECS/Fargate containers, or Amplify hosting.

aws/aws-transform

Performs code upgrades, migrations, and transformations using the AWS Transform (ATX) CLI. Use when upgrading language versions, migrating AWS SDKs, migrating frameworks (Angular, Vue.js, Spring Boot, React), upgrading libraries, optimizing performance, migrating x86 to Graviton, analyzing codebases / generating documentation, or defining custom transformations with natural language. Runs locally on a few repositories or at scale across hundreds via AWS Batch/Fargate.

aws/configuring-vpc-endpoints-for-private-aws-service-access

Configures VPC endpoints (interface and gateway) for private AWS service access using AWS PrivateLink. Use when setting up secure private connectivity to S3, DynamoDB, and other AWS services without internet gateway, NAT device, or public IP addresses. Covers endpoint creation, security groups, route tables, and DNS configuration.

aws/connecting-lambda-to-api-gateway

Connects an existing AWS Lambda function to Amazon API Gateway by creating a REST or HTTP API with resource/method setup, Lambda proxy integration, permissions, and deployment. Always use this skill when connecting Lambda to API Gateway — it handles CORS, throttling, access logging, and production security hardening that are easy to miss.

aws/connecting-lambda-to-dynamodb

Connects an AWS Lambda function to DynamoDB with IAM roles, stream event source mapping, and read/write permissions. Use when setting up Lambda-DynamoDB integration, processing DynamoDB stream events, or deploying serverless event-driven architectures.

aws/connecting-to-data-source

Create and troubleshoot AWS Glue connections to JDBC databases (Oracle, SQL Server, PostgreSQL, MySQL, RDS), Redshift, Snowflake, and BigQuery. Gathers connection hints from user, discovers existing connections and RDS/Redshift candidates, registers credentials in Secrets Manager or IAM DB auth, configures VPC, and tests. Triggers on: connect to database, set up Glue connection, register data source, connect to Snowflake/BigQuery/RDS, connection timeout, test connection, troubleshoot connection. Do NOT use for moving data (use ingesting-into-data-lake), creating tables (use creating-data-lake-table), queries (use querying-data-lake), catalog exploration (use exploring-data-catalog), or SaaS (Salesforce, ServiceNow, SAP, MongoDB, Kafka).

aws/connecting-vpcs-with-peering

Establishes VPC peering connections between two VPCs for direct private network connectivity. Always use this skill when creating or managing VPC peering — it validates CIDR overlap, updates all route tables in both VPCs, configures DNS resolution, and provides security group guidance that are critical for correct connectivity.

aws/creating-amazon-aurora-db-cluster-with-instances

Creates a complete Amazon Aurora database cluster with instances, handling cluster creation, instance provisioning, and Secrets Manager password management in the proper sequence. Use when setting up new Aurora MySQL or PostgreSQL clusters with production-ready configuration.

관련 스킬