albert's blog

2024/02/13

如何在 EC2 安裝 AWS SDK for Python (Boto3)

›
步驟 1: 安裝 Python [ ec2-user@ip-172-31-28-226 ~ ] $ sudo yum install python3 python3-pip -y 步驟 2: 驗證安裝 ec2-user@ip-172-31-28-226 ~ ] $ pyth...

如何安裝與驗證 AWS CLI

›
安裝 AWS CLI 1. 下載 AWS CLI [ ec2-user@ip-172-31-28-226 ~ ] $ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o ...
2024/02/12

Send Fanout Event Notifications with Amazon Simple Queue Service (SQS) and Amazon Simple Notification Service (SNS)

›
步驟 1: 建立 SNS Topic [ cloudshell-user@ip-10-138-176-84 ~ ] $ aws sns create-topic --name MyFanoutTopic { "TopicArn" : "a...
2024/02/11

透過 AWS API Gateway (Rest API) 呼叫 Lambda

›
設定步驟如下 1.  在 Lambda 撰寫簡單的 Python 程式 def lambda_handler (event, context): return { 'statusCode' : 200 , 'b...
2024/02/10

使用 AWS API Gateway 整合 Lambda

›
以下是我的 Lambda code,他會取得網址的 name 參數值,並組成 "Hello World~"+name參數值的字串 def lambda_handler (event, context): # 從事件對象的 queryStringP...
2024/02/09

執行 AWS PutMetricData operation 出現錯誤:The parameter MetricData.member.1.Timestamp must specify a time no more than two hours in the future

›
Problem AWS PutMetricData operation 內容如下 #!/bin/bash aws cloudwatch put-metric-data --metric-name CriticalError --namespace MyService --va...

AWS CloudWatch log group 未如預期出現所設定的 log group name

›
Problem 安裝 CloudWatch Agent 至 EC2,並將設定的 metrics 資料傳送至AWS CloudWatch log group,但在畫面未能找到所指定的 log group name。 config.json 的內容如下 { ...
2024/02/07

如何透過 AWS Lambda 呼叫 SES (Simple Email Service) 發信

›
實作步驟如下 1. 建立 Verified Identities來做為測試用途的 Sender 與 Receiver email address 2. 建立 Lambda Function 後,進入 Configuration => Permission,確認該 Role ...

透過 AWS EC2 Connect 連入編輯檔案,出現 "index.html" E212: Can't open file for writing 錯誤

›
Problem 透過 AWS EC2 Connect 連入編輯檔案,出現 "index.html" E212: Can't open file for writing 錯誤 Root Cause 會出現上述問題是因為權限不足所導致 How-To [...
‹
›
Home
View web version
Powered by Blogger.