投稿時間:2023-03-25 05:14:12 RSSフィード2023-03-25 05:00 分まとめ(21件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Management Tools Blog Visualizing Resources with Workload Discovery on AWS https://aws.amazon.com/blogs/mt/visualizing-resources-with-workload-discovery-on-aws/ Visualizing Resources with Workload Discovery on AWSOperations Teams Ops Teams across enterprises typically rely on documented architecture diagrams to understand the dependencies of various workloads deployed on AWS As enterprises continue to deploy large scale multi tiered workloads it can become challenging for Ops Teams to track the ever changing relationships between the deployed resources often meaning that documentation can t keep up with … 2023-03-24 19:50:14
AWS AWS Management Tools Blog Simplified multi-account governance with AWS Organizations all features https://aws.amazon.com/blogs/mt/simplified-multi-account-governance-with-aws-organizations-all-features/ Simplified multi account governance with AWS Organizations all featuresAWS Organizations simplifies multi account governance for customers with tools to centrally manage their AWS accounts and offers two feature modes all features and consolidated billing With all features enabled the default and preferred approach customers can centrally manage other AWS services that are integrated with AWS Organizations and apply organization wide controls with the management policies … 2023-03-24 19:45:04
AWS AWS IAM Policy Evaluation Series: policy evaluation chains | Amazon Web Services https://www.youtube.com/watch?v=71-Gjo6a5Cs IAM Policy Evaluation Series policy evaluation chains Amazon Web ServicesLearn how IAM policy evaluation works compare different ways to write resource based policies and gather practical guidance for writing resource based policies Learn more at Subscribe More AWS videos More AWS events videos ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster AWSIAM CloudSecurity AWS AmazonWebServices CloudComputing 2023-03-24 19:01:30
AWS AWS IAM Policy Evaluation Series: AWS IAM policy language explained | Amazon Web Services https://www.youtube.com/watch?v=qsF6Kauh2J4 IAM Policy Evaluation Series AWS IAM policy language explained Amazon Web ServicesLearn how to use the AWS IAM policy language policy elements dos and donts and how AWS IAM performs IAM policy statement matching Learn more at Subscribe More AWS videos More AWS events videos ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster AWS AmazonWebServices CloudComputing 2023-03-24 19:00:53
技術ブログ Developers.IO [アップデート]AWS SAM CLIのsam syncコマンドが一定条件下でドリフトの生成をスキップするようになりました https://dev.classmethod.jp/articles/aws-sam-cli-add-skip-sync-deploy-option/ awssamcli 2023-03-24 19:06:59
海外TECH DEV Community Creating Cognito User with Auto-Incrementing ID https://dev.to/aws-builders/creating-cognito-user-with-auto-incrementing-id-2bom Creating Cognito User with Auto Incrementing IDSo there are a couple of interesting topics here I ve been leaning into code less workflows with AWS Step Functions and this State Machine has nothing but native SDK integrations which include DynamoDB Put Delete Get Cognito User Pools AdminCreateUser I ve run into some legacy code that requires a Username to be a bigint and I don t want to use an RDBMS so I m using DynamoDB to generate one for me while also being “race condition proofAs always if you want to jump straight to the code here is the Github repository The Output Final State Machine What I d like to do is walk through the State Machine touching upon the parts of each step and stitch this together into the diagram above Find Last IdFirst off the basis for the DynamoDB elements came from an article I read at Bite Sized Serverless But in my scenario I wanted to add a full user creation flow in addition to needing to be able to create a user with a BigInt as the username Sounds strange and I d love to be able to use a UUID KSUID or ULID but in the system that I m building this for we have some legacy parts that force the BigInt value To not have to rely on an RDBMS and leverage DynamoDB instead I m working off of using a row in the table to hold the “LastId that cant be updated and used to build these users We could fail into a race condition where two processes are trying to update the record at the same time but by using Optimistic locking I m going to avoid that issue and just force a retry of the process DynamoDB does a really good job of this and I ve used this pattern in a lot of other places at scale with great success The table itself uses the patterns that I learned about from Alex DeBrie on Single Table DesignUsing a simple PK and SK structure I m overloading the table by putting multiple Entities in it One such entity is the USERMETADATA entity that holds the LastId that was used in the user profileSince I m sticking to Native Integrations I m using the DynamoDB API to execute a getItem on the table of my choosing That API call looks like this TableName Users ConsistentRead true Key PK S USERMETADATA SK S USERMETADATA The sole purpose of this getItem is to fetch the LastId from the table so it can be used when building the Username and profile The code below is the function that builds this transitionbuildFindLastId t ITable CallAwsService gt return new CallAwsService this FindLastId action getItem iamResources t tableArn parameters TableName t tableName ConsistentRead true Key PK S USERMETADATA SK S USERMETADATA service dynamodb resultSelector previousUserId Item LastId N userId States Format States MathAdd States StringToJson Item LastId N resultPath context Creating the DynamoDB UserOnce the ID is fetched and it has been incremented by note the intrinsic functions usage States MathAdd States StringToJson and States Format I can begin to put together the Transaction that will write the record into DynamoDB A couple of things to noteattribute not exists on the PK field If that attribute value is already in place the transaction will failThe update of the USERMETADATA and the creation of the new user happen in a transaction so it s an all or nothing If something fails for either of the conditions I m catching it goes back to the LastId step to try againbuildCreateDynamoDBUser t ITable CallAwsService gt return new CallAwsService this CreateDynamoDBUser action transactWriteItems iamResources t tableArn parameters TransactItems Put Item PK S States Format USERPROFILE context userId SK S States Format USERPROFILE context userId FirstName S firstName LastName S lastName EmailAddress S emailAddress PhoneNumber S phoneNumber ConditionExpression attribute not exists PK TableName t tableName Update ConditionExpression LastId previousUserId UpdateExpression SET LastId newUserId ExpressionAttributeValues previousUserId N context previousUserId newUserId N context userId Key PK S USERMETADATA SK S USERMETADATA TableName t tableName service dynamodb resultPath JsonPath DISCARD So I think I might guess what you are thinking That s a lot of code and Javascript Typescript to make that API call happen And I d argue it s far less code than trying to do this with a Lambda And it s cheaper as well because I m not wasting the step of starting up a Lambda and incurring the execution cost to only run an API call Not to mention I m not paying for nor waiting for a Cold Start to happen Sure they aren t much these days but they aren t anything either As you can see those I m updating the USERMETADATA and also creating a USERPROFILE for the new Username that was built and passed inAdditionally in the case of failure it rolls right back to FindLastId to trigger the workflow all over again As I said above this pattern works great for dealing with Optimistic locking and doesn t incur the overhead that happens in other scenarios Additionally the volume that this will experience the retry will be totally fine in terms of the likelihood of happening in addition to the lt sec delay if the workflow does have to start over Creating the Cognito UserThe moment of truth has come I ve got the latest ID created a new user in a table that will be used to support a User Profile in addition to storing claims that will be customized from the User Pool that article will come soon and now it s time to create the user in CognitobuildCreateCognitoUser u IUserPool CallAwsService gt return new CallAwsService this CreateCognitoUser action adminCreateUser iamResources u userPoolArn parameters UserPoolId u userPoolId Username context userId UserAttributes Name email Value emailAddress Name email verified Value true service cognitoidentityprovider This part is really simple Take the input from above and call the Cognito adminCreateUser API call and you will magically get a new user that is email verified that requires a force password change Additionally as I mentioned you ll be able to customize those JWT Claims from the data in the table What I like about this too is that if the User Already exists I m going to roll back the user creation and act like this never happened buildStateMachine scope Construct t ITable u IUserPool stepfunctions IChainable gt const pass new stepfunctions Pass scope Pass const fail new stepfunctions Fail scope Fail let rollbackUser this buildRollbackUser t let createCognitoUser this buildCreateCognitoUser u let createDbUser this buildCreateDynamoDBUser t let findLastId this buildFindLastId t createCognitoUser addCatch rollbackUser errors CognitoIdentityProvider UsernameExistsException resultPath error createDbUser addCatch findLastId errors DynamoDB ConditionalCheckFailedException DynamoDb TransactionCanceledException resultPath error correctLastId next findLastId rollbackUser next fail return findLastId next createDbUser next createCognitoUser next pass The above is the actual State Machine workflow code using the fluent CDK API Notice that on the createCognitoUserIChainable I m handling the CognitoIdentityProvider UsernameExistsException which then rolls into the “rollback You could of course check for whatever errors you want here And in the rollback I m simply cleaning up buildRollbackUser t ITable CallAwsService gt return new CallAwsService this RollbackUser action deleteItem iamResources t tableArn parameters TableName t tableName Key PK S States Format USERPROFILE context userId SK S States Format USERPROFILE context userId resultPath results service dynamodb Wrapping UpI love these State Machines that have zero code outside of the orchestration Having been in tech for a long time I ve seen these types of things come and go but what I love about AWS Step Functions is thisIt scales …seriously it doesThe code to build it is done through a language I m comfortable with Not some DSLI find that these types of solutions are easy to debug and reason aboutThe less code I write the fewer errors I make Simple as thatSo the next time you need to piece some AWS Serverless things together have a look at the zerocode approach I think you might like it 2023-03-24 19:11:03
Apple AppleInsider - Frontpage News Mission to find missing AirPods leads to airport worker https://appleinsider.com/articles/23/03/24/mission-to-find-missing-airpods-leads-to-airport-worker?utm_medium=rss Mission to find missing AirPods leads to airport workerOne woman was able to locate her missing AirPods in an airport employee s home thanks to the Find My network Here s what to do if it happens to you AirPods ProAlisabeth Hayden from Washington state lost her AirPods earlier this month while leaving an airplane in San Francisco She realized that they were stolen according to CNN Read more 2023-03-24 19:47:09
ニュース BBC News - Home France protests: Macron takes off luxury watch during TV interview https://www.bbc.co.uk/news/world-europe-65069823?at_medium=RSS&at_campaign=KARANGA france 2023-03-24 19:35:06
ニュース BBC News - Home World Match Play Championship: Jordan Spieth out after defeat by Shane Lowry https://www.bbc.co.uk/sport/golf/65069873?at_medium=RSS&at_campaign=KARANGA World Match Play Championship Jordan Spieth out after defeat by Shane LowryJordan Spieth is out of the WGC Dell Technologies Match Play Championship following a defeat by Shane Lowry in Austin Texas 2023-03-24 19:05:27
ビジネス ダイヤモンド・オンライン - 新着記事 肺がんで処方患者数の多い「人気薬」ランキング!3位タグリッソ、2位は“新世代薬” - 選ばれるクスリ https://diamond.jp/articles/-/317918 個別化医療 2023-03-25 04:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 クレーム対応、商談…「頭のいい人」が話を切り出す“最初の一言”とは【見逃し配信・交渉術】 - 見逃し配信 https://diamond.jp/articles/-/320098 配信 2023-03-25 04:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 韓国人が、King&Prince平野紫耀の発言に「右翼嫌韓だ」と激怒した理由 - News&Analysis https://diamond.jp/articles/-/319976 韓国人が、KingampampPrince平野紫耀の発言に「右翼嫌韓だ」と激怒した理由NewsampampAnalysisジャニーズ事務所のアイドル、KingampPrinceの平野紫耀氏が日本のバラエティー番組でソウルに行き、番組内で発言した内容が韓国で問題になっている。 2023-03-25 04:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 WBCで“村神様”を「クソミソ批判から手のひら返し」した人たちの末路 - 井の中の宴 武藤弘樹 https://diamond.jp/articles/-/320097 手のひら返し 2023-03-25 04:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 「歌舞伎町の駆け込み寺」の弁護士から探偵に尾行依頼、“甘い罠”の怖い話 - オオカミ少年片岡の「あなたの隣に詐欺師がいます。」 https://diamond.jp/articles/-/319987 「歌舞伎町の駆け込み寺」の弁護士から探偵に尾行依頼、“甘い罠の怖い話オオカミ少年片岡の「あなたの隣に詐欺師がいます。 2023-03-25 04:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 「カブトムシ」VS.「クワガタ」対決――昆虫界の真の王者はどっちだ? - 勝つのはどっち? ライバル対決 おもしろ雑学 https://diamond.jp/articles/-/319125 雑学 2023-03-25 04:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 採用面接で応募者に嫌われず「仕事の能力・積極性・協調性」を見抜く方法【質問集付き】 - ニュースな本 https://diamond.jp/articles/-/319931 中小企業 2023-03-25 04:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 上司ほど「絵文字」を使おう!リモートワークで人間関係を壊さないコツ - ニュースな本 https://diamond.jp/articles/-/319930 人間関係 2023-03-25 04:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 イカ、タコをかめなくなるとメタボに? 歯科医が指摘 かむ力が弱いとメタボになりやすいメカニズム - from AERAdot. https://diamond.jp/articles/-/319912 イカ、タコをかめなくなるとメタボに歯科医が指摘かむ力が弱いとメタボになりやすいメカニズムfromAERAdotおなかぽっこりの人に多く見られるメタボリックシンドローム。 2023-03-25 04:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 スーツの「後ろ姿」で好印象を与える3つの流儀、外出前に要チェック! - 男のオフビジネス https://diamond.jp/articles/-/320030 男の美学 2023-03-25 04:05:00
ビジネス 東洋経済オンライン 珈琲館「790円モーニング」がくれる優雅極まる朝 調理や盛り付けも丁寧な、完成度の高い朝食だ | チェーン店最強のモーニングを探して | 東洋経済オンライン https://toyokeizai.net/articles/-/661587?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2023-03-25 05:00:00
ビジネス 東洋経済オンライン アドビの生成AI「企業が安心して使える」納得感 生成AIにアドビが参入した真の目的とは? | IT・電機・半導体・部品 | 東洋経済オンライン https://toyokeizai.net/articles/-/661615?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2023-03-25 04:30:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

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

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