Check the blog authored by me on design patterns . Design pattern for any application is not a after thought, it is critical to think through before design is finalized.
Monday, September 29, 2025
Friday, September 15, 2023
Gray Failures: What is it and how to detect one?
If you are reading this article , i guess you are curious to know about gray failures and different methods to detect gray failures.
Hopefully this article will give you insight on question in your mind.
Thursday, August 24, 2023
How to select the best machine learning service in AWS
If you looking for directional information on how to select an Machine learning algorithm, check the below blog. The blog i wrote though is specific for manufacturing but it can provide direction on different use cases
Testing AWS Cloudformation Template
Very interesting tool to test the cloud formation templates. Check it out
TaskCat
https://github.com/aws-ia/taskcat
Wednesday, April 26, 2023
Architecting Resilient application on AWS
Great whitepaper on improving resiliency of distributed systems:
Thursday, March 30, 2023
AWS CDK Samples
Want to learn AWS CDK with samples :
Check these out:
https://github.com/aws-samples/aws-cdk-examples#Examples
https://cdkpatterns.com/patterns/all/
Wednesday, November 30, 2022
Tranformation in Manufacturing
Do you want to know how CPG industry is undergoing transformation using IoT technology, read the blogs on how AWS partners are using AWS technologies to build solutions for CPG industry
Friday, October 21, 2022
Developing Custom web portal for the AWS SiteWise Service
Are you looking to develop a custom application to show the data from AWS SiteWise?
Check out the AWS IoT Application Kit
Wednesday, September 07, 2022
AWSIoTPythonSDK.exception.AWSIoTExceptions.connectTimeoutException
Are you getting the below error when sening data to IoT Core using the "AWSIoTPythonSDK." ?
Here is my error :
File "/usr/local/lib/python3.6/site-packages/AWSIoTPythonSDK/MQTTLib.py", line 520, in connect
return self._mqtt_core.connect(keepAliveIntervalSecond)
File "/usr/local/lib/python3.6/site-packages/AWSIoTPythonSDK/core/protocol/mqtt_core.py", line 199, in connect
raise connectTimeoutException()
AWSIoTPythonSDK.exception.AWSIoTExceptions.connectTimeoutException
The below can be reason for this issue
1- You have not defined policy to allow the sending message to the IoT Core topic. If that is the case create a policy for the "Thing"
You need to define
If the policies are defined than check the active version of policy, In my case old policy was active
2- Make the latest one active
Check this under your "Thing" policy settings:
Hopefully one of it works. Leave comment if it does help
Thanks
Monday, July 11, 2022
Temporary IAM credential for non AWS deployed application/ service - IAM Roles Anywhere
Tired of managing long term IAM credential for connecting to AWS service from external application? Challenged with managing client ID and secret? Your security team not comfortable you managing an credential for critical features?
Wait no more.
Check out the new feature IAM roles anywhere which i have been missing all these years as managing long term IAM credential has always been an hassle and not secure.
Tuesday, February 22, 2022
AWS Amplify : Failed to pull sandbox app, reason: unable to get local issuer certificate
Here is the scenario:
You are trying to pull Sandbox app from Amplify and complete data model using the command:
amplify pull --sandboxId "AppGUID."
and you get the error message :
"Failed to pull sandbox app: request to https://production.us-east-1.appstate.amplifyapp.com/AppState/"AppGUID" failed, reason: unable to get local issuer certificate"
The solution which generally works:
Log off company VPN if you are connecting to your organization's VPN. You will find this solution when you google the error. Well, problem solved, RIGHT?
It worked for me, and I was able to pull the application to local with the complete data model.
Curious and Open Question :But the question is why it even happened ????? Please read if you are curious and not just looking for an easy solution without knowing the actual cause.
Rationale:
I performed a few tests using OpenSSL to understand the complete communication between client and server. One of the simpler commands you can use is the -connect command:
openssl s_client -connect production.us-east-1.appstate.amplifyapp.com:443
After reading the article below, I learned that the proxy servers don't perform automatic checks for certificate chaining like browsers do by using the AIA (Authority Information Access) field in the certificate.
refer to this article for intermediate certificate :https://blogs.cisco.com/security/where-is-my-intermediate-tls-certificate
The leading cause seems to missing intermediate certificates in the proxy server, hence the error "unable to get local issuer certificate." In the case of proxy servers, one solution is to import the missing certificates to the device certificate store to get it working.
Hope this explains the root cause of the issue, which is generic and not specific to only this scenario.
Thursday, December 30, 2021
Mechanical Sympathy - Closing post 2021
One of my techno-geek followers sent a note a few weeks back asking for updates on my last post for this year and asked about my favorite post. Unfortunately, I have not been actively blogging in 2021, said that I have been working offline with the engineering community actively on exploring new technologies. One of my favorites has been learning the machine learning area. I would like to thank all my fellow engineers for their collaboration and engagement over the years.
As we move on to 2022, I thought of looking back for my favorite post over the years and this post beats all others and is still my favorite.
Quote posted around four years back from Jackie Stewart "https://www.metahat.net/2018/03/mechanical-sympathy-learning-from-racing.html"
“You don’t have to be an engineer to be a racing driver, but you do have to have Mechanical Sympathy.”
– Jackie Stewart, racing driver
I wish all of you, Happy and Healthy New Year!!!
Tuesday, June 08, 2021
Why do we use np.random.seed()
This is a simple function but to my surprise lot of ML engineers had asked me about the actual usage of this function and why do I use it when i am working on an algorithm which will be shared with other engineers.
The simple answer is :
the function generates a random deterministic number. It generated the same random number each time for a specified seed
"It's a random function with deterministic output for a specified seed. This helps to share the code and get the same output each time. "
Try this :
np.random.seed(1)
np.random.randint(low = 1, high = 10, size = 20)
The output will be, each time till seed is specified as "1"
array([6, 9, 6, 1, 1, 2, 8, 7, 3, 5, 6, 3, 5, 3, 5, 8, 8, 2, 8, 1])
Thursday, February 11, 2021
Installing Octave in Ubuntu running on Docker
Monday, August 24, 2020
Integration Design Best Practice
Over the past few years of working on multiple critical systems solution design initiatives, there is one important thing I have learnt.
" There is a reason we call it solution design and not system design". With the influx of cloud offerings and services, the organization no more rely on one system to automate the business process. Rather business process now relies on multiple systems performing a very specific step of the business process. All these systems are integrated to provide business process automation. This makes integration, not one of the factors but a very critical backbone of the business process."
Nothing that I said is new and no one will disagree but unfortunately, integrations are still given less priority and design thought.
I keep getting one question all the time " What are integration design best practices and how can I design a good reliable integration". I have a long list of to-dos for designing good integration but sometimes being too prescriptive is not useful as it hinders a thinking ability of an architect.
So if you are still reading and curious to know how to design a good integration than there is only one fact you need to be aware of, this will influence your design decision and push you to design better integrations.
AND THAT IS
Design with the above fact in mind and try to make your integration overcome failure and you will have a good design in place. Please don't spend time on developing integrations that will not fail. Such a design is purely a myth.
Now let's go one more level down, I have put down design pillars which will help to design the integration. These design pillars apply to any software development initiatives
if this is helpful, do leave our comment. I would love to hear your design learnings.
Monday, March 23, 2020
No supported authentication methods available (server sent: publickey)
PuTTY Fatal Error
---------------------------
PuTTY Fatal Error Disconnected: No supported authentication methods available (server sent: publickey)
---------------------------
Scenario :
Error while connecting to AWS AMI Instance using PuTTy.
Solution:
in my case "admin" user worked.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html#TroubleshootingInstancesConnectingPuTTY
Saturday, March 21, 2020
Docker Error :In the default daemon configuration on Windows, the docker client must be run elevated to connect
error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/auth: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
Monday, February 17, 2020
Guide for AWS Cloud Security, Governance, and Compliance
A really good collection to learn and understand basic of AWS Cloud Security, Governance, and Compliance
Could not switch roles using the provided information. Please check your settings and try again. If you continue to have problems, contact your administrator.
Could not switch roles using the provided information. Please check your settings and try again. If you continue to have problems, contact your administrator.
Sunday, February 16, 2020
ECS Fargate ERROR : CannotPullContainerError: Error response from daemon
ERROR
CannotPullContainerError: Error response from daemon: Get https://xxxxxxxxxxxx.dkr.ecr.us-east-x.amazonaws.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Details:
The container service was failing to provision and stopping with the above error.
Possible Reasons:
The error indicated that the container is failing during "Pull" event and in this case, the only pull request which is configured is for the docker image maintained in ECS registry.
Most of the times such issue occurs due to lack of access and this case was no different.. There are two possible ares to look at for enabling Fargate resource deployed in private subnet to pull image from ECS registry
- If task is launched without an public IP, its it required to configure route table on the subnet with has "0.0.0.0/0" going to a NAT Gateway or NAT instance . This is to ensure it can connect to internet. If task is launched with an public IP, configure route table on the subnet to have "0.0.0.0/0" going to an internet gateway to ensure traffic can flow in.
- Ensure the security groups for the Task allows for outbound access.
Reference Architecture for AI-integrated Genomic Analytics on Oracle Cloud Infrastructure ( Published in Oracle Blog)
I have been thinking about writing this blog for some time. Genomics is a fascinating field and has potential to unlock so many hidden scie...
-
Ever wanted to have a people picker kind of control in Infopath form and that too in browser mode. Did i heard yes :) , well there is a Acti...
-
Am sure lot's of people would be wondering how to hide menu items of a list eg document libraries "Send to " menu item . In o...
-
I got this error for quite some time and i had no clue what was wrong in my page . Page consisted of only 2 panel controls . That's all ...
