投稿時間:2022-09-05 05:17:56 RSSフィード2022-09-05 05:00 分まとめ(19件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
海外TECH DEV Community 🍉 AWS CDK 101 -🥒 Cross region putEvents across accounts using Eventbridge for Event-Forwarder project https://dev.to/aws-builders/aws-cdk-101-cross-region-putevents-across-accounts-using-eventbridge-for-event-forwarder-project-1de2 AWS CDK Cross region putEvents across accounts using Eventbridge for Event Forwarder projectBeginners new to AWS CDK please do look at my previous articles one by one in this series If in case missed my previous article do find it with the below links Original previous post at Dev PostReposted the previous post at dev to aravindvcyberAlso we have started to develop an open source project which we would be using to play around with refracting the architecture as well as learn cdk stuff at the same time we will provide something useful for our community Find more about this discussed in the article below Original project post at Dev PostReposted project post at dev to aravindvcyberevent forwarder Github repo Cross Account PutEvents Earlier in our article we have seen how to use custom Eventbridge and SQS by configuring an event rule and target which shifts the messages to sqs queue Original post at Dev PostReposted at dev to aravindvcyberBut in this article we will be using the default event bus only since we are trying to source the cloud formation events for the above mentioned project To start with we will be first discussing how to make the event bridge events be routed to an sqs queue in our main processor stack First let us get the reference to the default target bus in the processor regionexport const getDefaultBus scope Construct region string account string IEventBus gt return EventBus fromEventBusArn scope DefaultBus region account arn aws events region account event bus default Then we will create a target queue a processor queue for lambda trigger and processor dlq Since we have to use the queue and dlq construct multiple times let us refract them to some utils below export const dlqQueueProps retentionPeriod Duration days removalPolicy RemovalPolicy DESTROY export const normalQueueProps retentionPeriod Duration days removalPolicy RemovalPolicy DESTROY deliveryDelay Duration seconds visibilityTimeout Duration minutes export const generateDLQ scope Construct queueName string Queue gt return new Queue scope queueName dlqQueueProps queueName export const generateQueue scope Construct queueName string deadLetterQueue DeadLetterQueue Queue gt return new Queue scope queueName normalQueueProps queueName deadLetterQueue Let provision these necessary queues nowconst stackEventProcessorQueue generateQueue this stackEventProcessorQueue stackEventProcessorQueueDLQ const stackEventTargetDlq DeadLetterQueue queue generateDLQ this stackEventTargetDlq maxReceiveCount const stackEventProcessorQueueDLQ DeadLetterQueue queue generateDLQ this stackEventProcessorQueueDLQ maxReceiveCount Event Rule Let us now source these cloud formation events from the current regionconst stackEventsRule new Rule this stack events rule eventPattern detail stack id exists true source aws cloudformation eventBus And please remember this event pattern can be very extended to filter the relevant stack events only or source from all stacks like me and filter in the upcoming steps Event Rule target Now let us use the target dlq and processor queue to build our event rule target to wire up to the event rule which is defined above const stackEventTarget new aws events targets SqsQueue stackEventProcessorQueue retryAttempts deadLetterQueue stackEventTargetDlq queue stackEventsRule addTarget stackEventTarget From then on the processor queue will take over the events as per the projects we discussed above and we are not interested in that in this article Multi region or multi account cloud formation events processing What we have just seen is that we can source the events from the current region But what if we may need to pull the events from another region or even another account That is when we use the other stack part of the project which we will put into every account region pair and source the cloud formation events necessary for our project TargetBus cross account policy const remoteAccounts config get remoteAccounts split const remoteRegions config get remoteRegions split remoteAccounts map account string gt remoteRegions map region string gt new CfnEventBusPolicy this CrossAccountPolicy region account action events PutEvents eventBusName eventBus eventBusName principal account statementId Accept PutEvents From region account condition Here I have used an array of remote accounts or remote regions to be used allowed to forward events to the processor stack besides that you can be a little more restrictive by adding some conditions as per your requirement for security regions or to reduce unnecessary or unwanted resources accessing our target default bus Single region used for processing and storage ️And why we do why this is because of multiple reasons Need not deploy the complex processing setup in every region or accountsAlso this also means we are also not starving our environment much our solution scales up reaching the limits of the respective servicesEasily to inspect the processing stack in a particular region with xray cloudwatch and we could have a single dashboard with cloudwatch metrics and it will be easier for maintainableLightweight remote stacks are portable and we could very easily provision them in multiple regions or accounts with less footprint Remote stack configuration ️ Remote Eventbus RuleWith the similar approach used earlier we could extend this further in this remote stack by building an event bus rule and event bus target with a failed event queueconst targetAccount config get account const targetRegion config get region const targetBus getDefaultBus this targetRegion targetAccount const remoteBus getDefaultBus this props region props account const remoteStackEventsRule new Rule this remote stack events rule eventPattern detail stack id exists true source aws cloudformation eventBus remoteBus Remote Eventbus TargetAdding a dlq to the target like the processor stack once again but now we use an eventbus as the target which is the processor region default bus that we have referenced This should be able to connect and push messages even across regions into even different accounts Since we have already granted this using the policy above Also the event bus fails it puts into a regional dlq const remoteStackEventTargetDlq DeadLetterQueue queue generateDLQ this remoteStackEventTargetDlq maxReceiveCount const remoteStackEventTarget new aws events targets EventBus targetBus deadLetterQueue remoteStackEventTargetDlq queue remoteStackEventsRule addTarget remoteStackEventTarget Thus we can demonstrate how we would be able to pool cloud formation events across the region and even from different accounts This will be extremely useful when you build similar event driven solutions We will be talking about more similar engineering concepts as we refactor and refine the event forwarder project Keep following for similar posts on engineering with IaC primarily using AWS CDK and Serverless Also feel free to contribute to the progress of the below solution with your comments issues maybe you can also do a pr if you feel if can help our community event forwarder Github repoOriginal project post at Dev PostReposted project post at dev to aravindvcyberWe have our next article in serverless and IaC do check outThanks for supporting Would be great if you like to Buy Me a Coffee to help boost my efforts Original post at Dev PostReposted at dev to aravindvcyber 2022-09-04 19:41:43
医療系 医療介護 CBnews 化学療法の入外比率から考える病院経営の品格-先が見えない時代の戦略的病院経営(178) https://www.cbnews.jp/news/entry/20220902185020 化学療法 2022-09-05 05:00:00
ニュース BBC News - Home Mystery as private plane crashes into Baltic Sea https://www.bbc.co.uk/news/world-europe-62789877?at_medium=RSS&at_campaign=KARANGA latvia 2022-09-04 19:15:20
ニュース BBC News - Home Germany announces €65bn package to curb soaring energy costs https://www.bbc.co.uk/news/world-europe-62788447?at_medium=RSS&at_campaign=KARANGA russian 2022-09-04 19:27:57
ビジネス ダイヤモンド・オンライン - 新着記事 IRジャパンの開示不正疑惑を暴く!「お手盛り」調査報告書に隠された真実 - インサイダー IRジャパンの凋落 https://diamond.jp/articles/-/309029 2022-09-05 04:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 リーダー経験「ほぼゼロ」の編集長が頼った、無敵のリーダーになるための厳選5冊 - 編集長厳選!無敵のリーダーになるための5冊 https://diamond.jp/articles/-/309074 リーダー経験「ほぼゼロ」の編集長が頼った、無敵のリーダーになるための厳選冊編集長厳選無敵のリーダーになるための冊リーダー経験がほとんどゼロでダイヤモンド編集部を率いることになった編集長が、わらにもすがる思いで手にしたリーダー本を紹介していきます。 2022-09-05 04:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 脱サラして「専門誌で連載」を持つ方法、人気ライターになる秘訣とは - 会社員が「コンサル」になる方法 https://diamond.jp/articles/-/309021 脱サラして「専門誌で連載」を持つ方法、人気ライターになる秘訣とは会社員が「コンサル」になる方法雑誌に連載を持つことは、コンテンツ起業家コンサルタント、コーチ、士業など専門家としてビジネスを展開する上で不可欠です。 2022-09-05 04:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 2023年は価格変動リスクに備えよ!ウクライナ危機で「一物二価」の時代到来へ - 政策・マーケットラボ https://diamond.jp/articles/-/309115 世界経済 2022-09-05 04:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 年収が高い商社ランキング2021最新版【トップ5】伊藤忠より高い専門商社は? - ニッポンなんでもランキング! https://diamond.jp/articles/-/309130 上場企業 2022-09-05 04:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 年収が高い商社ランキング2021最新版【246社完全版】7大商社の序列は? - ニッポンなんでもランキング! https://diamond.jp/articles/-/309121 上場企業 2022-09-05 04:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 堅調そうなロシア経済、疑わしい公式データ - WSJ発 https://diamond.jp/articles/-/309176 堅調 2022-09-05 04:26:00
ビジネス ダイヤモンド・オンライン - 新着記事 中国経済の「米国超え」 懐疑論が浮上 - WSJ発 https://diamond.jp/articles/-/309177 中国経済 2022-09-05 04:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 「中国の水問題」が危機的状況、世界的な食糧不足や移民増加の可能性も - DOL特別レポート https://diamond.jp/articles/-/309122 危機的状況 2022-09-05 04:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 主要40社「一般社員と役員の年収格差」ランキング!4位伊藤忠、3位ソニー、1位は? - 今週の週刊ダイヤモンド ここが見どころ https://diamond.jp/articles/-/309093 主要社「一般社員と役員の年収格差」ランキング位伊藤忠、位ソニー、位は今週の週刊ダイヤモンドここが見どころ『週刊ダイヤモンド』月日号の第一特集は『出世・給料・人事の新ルール』です。 2022-09-05 04:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 JR四国が「27年ぶりの運賃値上げ」を申請、JR各社に波及し得る事情 - News&Analysis https://diamond.jp/articles/-/309124 見え隠れ 2022-09-05 04:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 月収60万円・借金返済40万円の共働き家計、高級車が自慢の夫の金銭感覚は直る? - “残念サラリーマン”のお金相談所 https://diamond.jp/articles/-/309125 住宅ローン 2022-09-05 04:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 「駅そば日本一」と呼ばれた音威子府の蕎麦がもう食べられない理由 - News&Analysis https://diamond.jp/articles/-/308970 newsampampanalysis 2022-09-05 04:07:00
ビジネス ダイヤモンド・オンライン - 新着記事 輪廻転生の存在をゲーム理論で解説すると?思考の刷新で視座をアップデート - 要約の達人 from flier https://diamond.jp/articles/-/309094 fromflier 2022-09-05 04:05:00
ビジネス 東洋経済オンライン 不通の鉄路が工事用道路に、肥薩線被災地の現状 豪雨災害2年、列車の代わりにトラックが走る | ローカル線・公共交通 | 東洋経済オンライン https://toyokeizai.net/articles/-/615695?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2022-09-05 04:30:00

コメント

このブログの人気の投稿

投稿時間: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件)