投稿時間:2022-12-28 09:29:03 RSSフィード2022-12-28 09:00 分まとめ(33件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
技術ブログ Developers.IO CloudFormation の CommaDelimitedList でも AllowedValues と AllowedPattern が使えるようになりました https://dev.classmethod.jp/articles/cfn-commadelimitedlist-allowdvalues-pattern/ allowedpattern 2022-12-27 23:08:39
海外TECH DEV Community AWS Budgets: Update alert thresholds unlimitedly with Lambda https://dev.to/aws-builders/aws-budgets-update-alert-thresholds-unlimitedly-with-lambda-5e7h AWS Budgets Update alert thresholds unlimitedly with Lambda MotivationWhen I use AWS Budgets I can receive notifications when the billing is above a threshold The facts are that We can set only alert thresholds for one budget Two budgets are free but we are charged for using more budgets For personal use usually I m not charged so much around USD per month I want to be notified every USD but there is a limitation of alerts like above fact I this post I share how to update the alert threshold incremently when AWS Budgets triggers ArchitectureEventBridge triggers Lambda setBudget at the st of months This Lambda delete and re create the budget to initialize for a month and create alert thresholds USD thresholds for example When the billing is above the threshold the user is notified via SNS email At the same time the second Lambda function is triggered and updates the threshold If the triggered threshold is USD the Lambda function update the threshold to USD CloudFormation templateDeploy from the Console Create stack gt Upload a template gt Choose this file Enter Stack name and parameters budget name email increment Leave the rest default Choose Next Next check IAM acknowledge and Submit When starting in the middle of the month manually run the SetBudgetHandler Lambda function Note that you ll get notified of all alerts of the current used cost AWSTemplateFormatVersion Description Increment alert threshold of AWS Budgets Parameters budgetname Type String Default increment notification increment Type String Default email Type String AllowedPattern a zA Z a zA Z a zA Z ConstraintDescription Must be a valid email address Resources MyTopic Type AWS SNS Topic MyTopicTokenSubscription Type AWS SNS Subscription Properties Protocol email TopicArn Ref MyTopic Endpoint Ref email MyTopicPolicy Type AWS SNS TopicPolicy Properties PolicyDocument Statement Action sns Publish Effect Allow Principal Service budgets amazonaws com Resource Ref MyTopic Sid Version Topics Ref MyTopic UpdateBudgetHandlerServiceRole Type AWS IAM Role Properties AssumeRolePolicyDocument Statement Action sts AssumeRole Effect Allow Principal Service lambda amazonaws com Version ManagedPolicyArns arn aws iam aws policy service role AWSLambdaBasicExecutionRole UpdateBudgetHandlerServiceRoleDefaultPolicy Type AWS IAM Policy Properties PolicyDocument Statement Action budgets Effect Allow Resource Version PolicyName UpdateBudgetHandlerServiceRoleDefaultPolicy Roles Ref UpdateBudgetHandlerServiceRole UpdateBudgetHandler Type AWS Lambda Function Properties Code ZipFile import os import re import boto budget name os environ BUDGET NAME increment os environ INCREMENT def handler event context print event client boto client budgets account id context invoked function arn split print account id account id message event Records Sns Message print message message catch from Alert Threshold gt match re search r Alert Threshold gt d message if not match print No Budget Notification Exit return current value str match groups print current value current value str current value int current value str next value current value int increment response client update notification AccountId account id BudgetName budget name OldNotification NotificationType ACTUAL ComparisonOperator GREATER THAN Threshold current value ThresholdType ABSOLUTE VALUE NewNotification NotificationType ACTUAL ComparisonOperator GREATER THAN Threshold next value ThresholdType ABSOLUTE VALUE Role GetAtt UpdateBudgetHandlerServiceRole Arn Environment Variables BUDGET NAME Ref budgetname INCREMENT Ref increment Handler index handler Runtime python Timeout DependsOn UpdateBudgetHandlerServiceRoleDefaultPolicy UpdateBudgetHandlerServiceRole UpdateBudgetHandlerEventInvokeConfig Type AWS Lambda EventInvokeConfig Properties FunctionName Ref UpdateBudgetHandler Qualifier LATEST MaximumRetryAttempts UpdateBudgetHandlerAllowInvokeStackMyTopic Type AWS Lambda Permission Properties Action lambda InvokeFunction FunctionName GetAtt UpdateBudgetHandler Arn Principal sns amazonaws com SourceArn Ref MyTopic UpdateBudgetHandlerMyTopic Type AWS SNS Subscription Properties Protocol lambda TopicArn Ref MyTopic Endpoint GetAtt UpdateBudgetHandler Arn SetBudgetHandlerServiceRole Type AWS IAM Role Properties AssumeRolePolicyDocument Statement Action sts AssumeRole Effect Allow Principal Service lambda amazonaws com Version ManagedPolicyArns arn aws iam aws policy service role AWSLambdaBasicExecutionRole SetBudgetHandlerServiceRoleDefaultPolicy Type AWS IAM Policy Properties PolicyDocument Statement Action budgets Effect Allow Resource Version PolicyName SetBudgetHandlerServiceRoleDefaultPolicy Roles Ref SetBudgetHandlerServiceRole SetBudgetHandler Type AWS Lambda Function Properties Code ZipFile import os import boto budget name os environ BUDGET NAME sns arn os environ SNS ARN increment os environ INCREMENT client boto client budgets def handler event context account id context invoked function arn split Delete if the budget exists try client delete budget AccountId account id BudgetName budget name print Deleted the old budget except client exceptions NotFoundException pass Create new budget client create budget AccountId account id Budget BudgetName budget name BudgetLimit Amount Unit USD CostTypes IncludeTax True IncludeSubscription True UseBlended False IncludeRefund False IncludeCredit False IncludeUpfront True IncludeRecurring True IncludeOtherSubscription True IncludeSupport True IncludeDiscount True UseAmortized False TimeUnit MONTHLY BudgetType COST NotificationsWithSubscribers Notification NotificationType ACTUAL ComparisonOperator GREATER THAN Threshold threshold ThresholdType ABSOLUTE VALUE NotificationState OK Subscribers SubscriptionType SNS Address sns arn for threshold in range int increment int increment print Created a new budget Role GetAtt SetBudgetHandlerServiceRole Arn Environment Variables BUDGET NAME Ref budgetname SNS ARN Ref MyTopic INCREMENT Ref increment Handler index handler Runtime python Timeout DependsOn SetBudgetHandlerServiceRoleDefaultPolicy SetBudgetHandlerServiceRole SetBudgetHandlerEventInvokeConfig Type AWS Lambda EventInvokeConfig Properties FunctionName Ref SetBudgetHandler Qualifier LATEST MaximumRetryAttempts ScheduleRule Type AWS Events Rule Properties ScheduleExpression cron State ENABLED Targets Arn GetAtt SetBudgetHandler Arn Id Target ScheduleRuleAllowEventRuleStackSetBudgetHandler Type AWS Lambda Permission Properties Action lambda InvokeFunction FunctionName GetAtt SetBudgetHandler Arn Principal events amazonaws com SourceArn GetAtt ScheduleRule Arn SummaryI ve shared how to update AWS Budgets threshold incrementally 2022-12-27 23:21:29
金融 金融総合:経済レポート一覧 FX Daily(12月26日)~海外勢不在で方向感出ず http://www3.keizaireport.com/report.php/RID/521730/?rss fxdaily 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 SPAC(特別買収目的会社)ガバナンス:その利益相反の構造 http://www3.keizaireport.com/report.php/RID/521768/?rss 利益相反 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 わが国の自社株公開買付価格形成に関する理論的なフレームワークとその検証 http://www3.keizaireport.com/report.php/RID/521769/?rss 日本証券経済研究所 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 米国株式オプション市場の現状 http://www3.keizaireport.com/report.php/RID/521771/?rss 日本証券経済研究所 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 企業の社会的責任(CSR)活動と社債の負債コスト http://www3.keizaireport.com/report.php/RID/521772/?rss 企業の社会的責任 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 書評:飯田和人著『現代貨幣論と金融経済 現代資本主義における価値・価格および利潤』 http://www3.keizaireport.com/report.php/RID/521773/?rss 日本証券経済研究所 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 2023年の日本株見通し:市川レポート http://www3.keizaireport.com/report.php/RID/521793/?rss 三井住友 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 グローバルREITウィークリー 2022年12月第4週号~先週のグローバルREIT市場は、前週末比で▲0.7%。 http://www3.keizaireport.com/report.php/RID/521794/?rss 日興アセットマネジメント 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 投資のヒント「感染症対策を通じた日本の国際貢献と課題~ESGニュース 気になるトピック(12月号)~」 http://www3.keizaireport.com/report.php/RID/521795/?rss 三井住友トラスト 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 2023年の米国株式市場見通し~利下げ開始への期待により年後半の展望は明るい:マーケットレター http://www3.keizaireport.com/report.php/RID/521796/?rss 株式市場 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 2023年の国内株式市場動向と注目テーマ~インバウンド回復、人手不足対応、円高圧力、安全保障強化:マーケットレター http://www3.keizaireport.com/report.php/RID/521797/?rss 人手不足 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 ダイワ通信(東証スタンダード)~防犯・監視カメラの全国での販売・施工と北陸2県でソフトバンクショップを展開。営業拠点の拡充とAIカメラ活用のシステム販売でセキュリティ事業の成長を目指す:アナリストレポート http://www3.keizaireport.com/report.php/RID/521798/?rss 営業拠点 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 アルファパーチェス(東証スタンダード)~間接材物販事業と施設・設備管理事業を展開。資本効率が高い、独自のビジネスモデル:アナリストレポート http://www3.keizaireport.com/report.php/RID/521799/?rss 設備管理 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 jig.jp(東証グロース)~特定分野のプロではない一般のユーザー主体のライブ配信サービスを提供。ライブ配信を盛り上げるエフェクト付画像等を販売するビジネスモデル:アナリストレポート http://www3.keizaireport.com/report.php/RID/521800/?rss jigjp 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 アップコン(名証ネクスト)~独自のアップコン工法でコンクリート床の沈下、傾き、段差、空隙を修正。施主は操業を止めることなく、短工期で施工可能:アナリストレポート http://www3.keizaireport.com/report.php/RID/521801/?rss 証券 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 “へっつい幽霊”にみる おひとりさまの終活:相続コラム http://www3.keizaireport.com/report.php/RID/521804/?rss 終活 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 バイオリニスト千住真理子さんとの対談から学んだ相続における心響について:相続コラム http://www3.keizaireport.com/report.php/RID/521805/?rss 千住真理子 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 国債市場の流動性指標(2022年11月) http://www3.keizaireport.com/report.php/RID/521818/?rss 国債市場 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 金融庁の1年(2021事務年度版) http://www3.keizaireport.com/report.php/RID/521825/?rss 金融庁 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 広島県 メーンバンク実態調査(2022年)~トップの広島銀行、シェア37.46%。上位20位中、6つの金融機関がシェアを拡大 http://www3.keizaireport.com/report.php/RID/521835/?rss 実態調査 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 【注目検索キーワード】食料安全保障 http://search.keizaireport.com/search.php/-/keyword=食料安全保障/?rss 食料安全保障 2022-12-28 00:00:00
金融 金融総合:経済レポート一覧 【お薦め書籍】世界2.0 メタバースの歩き方と創り方 https://www.amazon.co.jp/exec/obidos/ASIN/4344039548/keizaireport-22/ 宇宙開発 2022-12-28 00:00:00
金融 日本銀行:RSS 金融政策決定会合における主な意見(12月19、20日開催分) http://www.boj.or.jp/mopo/mpmsche_minu/opinion_2022/opi221220.pdf 主な意見 2022-12-28 08:50:00
ニュース BBC News - Home Fresh appeal for Lyla Lake, 13, missing over Christmas https://www.bbc.co.uk/news/uk-england-hampshire-64106030?at_medium=RSS&at_campaign=KARANGA station 2022-12-27 23:25:02
ニュース BBC News - Home Manchester United 3-0 Nottingham Forest: Erik Ten Hag wants more goals https://www.bbc.co.uk/sport/av/football/64075513?at_medium=RSS&at_campaign=KARANGA Manchester United Nottingham Forest Erik Ten Hag wants more goalsManchester United manager Erik Ten Hag believes his team are capable of increasing the number of goals they score in games having seen them beat Nottingham Forest 2022-12-27 23:19:37
ビジネス ダイヤモンド・オンライン - 新着記事 米FDA、大麻成分CBD入り食品・サプリの規制検討 - WSJ発 https://diamond.jp/articles/-/315500 食品 2022-12-28 08:27:00
ビジネス ダイヤモンド・オンライン - 新着記事 米ハイテク労働者、失業でも短期間で再就職=調査 - WSJ発 https://diamond.jp/articles/-/315501 調査 2022-12-28 08:12:00
ビジネス ダイヤモンド・オンライン - 新着記事 ネトフリのパスワード共有近く終了 課題は - WSJ発 https://diamond.jp/articles/-/315502 近く 2022-12-28 08:06:00
北海道 北海道新聞 NY円、133円台半ば https://www.hokkaido-np.co.jp/article/781556/ 外国為替市場 2022-12-28 08:01:00
マーケティング MarkeZine 既存の動画コンテンツにARを追加 ProVision、新サービス「動画 in AR」を提供開始 http://markezine.jp/article/detail/40934 提供開始 2022-12-28 08:15:00
デザイン Webクリエイターボックス Webクリエイターボックスの2022年を振り返る https://www.webcreatorbox.com/news/wcb-2022 firstappearedonweb 2022-12-28 00:00:06

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)