Skip to main content

Posts

Showing posts from April, 2021

My notes on aws

Note while I work with AWS Cross-regions working: This is an interesting topic that I should write a separated one on this. However some brief information including: SQS (queue-owner) subscribes to SNS (topic-owner) in another account : When it is within one account it sounds more simple, but when cross-accounts things get more complicated. And it boils down to SQS and SNS policies . It can be done in two ways: from SQS and from SNS. I experience the later case: Imagine you have an existing SQS queue in one account and want to send information from different services (SNS, lambda...) to that queue. In this case you want to add a subscription from services to SQS. SQS must confirms the subscriptions before SNS can send the message. SQS policy always should allow sqs:SendMessage from the subscription account. In case of lambda service, lambda role needs to allow ... In case of SNS service, SNS needs to create subscription. This subscription message will be sent to SQS queue for confirm...

em cứ hồn nhiên như thế!

Just be a naughty and innocent like that my boy! Yesterday Nam had his left eye operation because of corneal sequestrum . His 3th operation when he's not even 3 years old yet. It's so pity for him, but I'm still glad that I took him from the shelter and can take care of him Thấy tội cho em quá, mới bé tẹo mà mắt e toàn sẹo à. Yesterday I was so anxious, his operation was at 3.30pm but he couldn't eat 12h before that because of anaesthesia. So no breakfast, no lunch. The boy was so hungry, yet after nagging for food by scratching himself to us several time and didn't get it, he just played again by himself, and of course then sleeping, almost the morning. I felt so bad that we could eat but not him, so we decided to leave him at the pet clinic earlier before our lunch so he wouldn't see us eating. Right after J. brought the cage to the living room, the boy understood what's gonna happen. He tried to hide under the chair, and "grr" like defending, bu...