Skip to main content

Posts

Showing posts from July, 2023

AWS Secrets Manager vs Parameter Store

AWS Secrets Manager vs Systems Manager Parameter Store What is AWS Secrets Manager? ✓ it's an AWS service offerings to store secrets. ✓ it gives benefits of cross account sharing. ✓ it's also has cross region replication feature. ✓ it's supports resources based policy, using which we can restrict access to this resource. ✓ it's supports password or key creation or rotation as an inbuilt feature. ✓ encryption is enabled for the every secrets manager variable created. ✓ it can help you store upto 4096 charcters. ✓ yes, using intrinsic function we can refer this resource from cloud formation templates. ✓ it's comes with cost of $0.40 per secrets stored. ✓ additionally it's cost $0.05 per every 10,000 API calls. Good to store: Database creds, API keys, any secrets strings that must be encrypted along with periodic rotation. What is AWS Systems Manager Parameter Store? ✓ it's an AWS service offerings to store any secrets, strings, urls, common values

How to write good code?

How To Write Good Code? At some point of time we all hate reading other people code. Am I Right? Because we think it's is not human readable, not debugging friendly, not clear comments, no clean log statements, clumsy code, not proper naming patterns followed, irregular function calls, repetitive lines of code, no OOPS concepts is utilized, etc... ✓ But if we ask the questions ourselves, are we writing really a good code? ✓ What if other developer think our code is bad? Ever thought about this? If not, let's start from today to see if we are really writing good code. So what is good code?  📑 1. Proper naming patterns should be followed. 2. Proper comments section can be added inline . 3. Avoid repetitive lines of code. 4. Make modular in nature. 5. Avoid writing big lines of code to just show, you know that programming language better than others. 6. Avoid using complex patterns, if simple 'if-else' can solve the problem then why to go for complex '