If you use S3 endpoint not NAT/Proxy to access the Amazon yum repository, then this post should be helpful to you. We use S3 endpoint to access Amazon repositories, and we noticed that any yum operations failed with the 'HTTPS Error 403 - Forbidden' error in the EC2 instances that are launched from the latest … Continue reading Yum gets ‘HTTPS Error 403 – Forbidden’ error in Amazon Linux 2
I recently wrote a simple Slack FAQ bot that can answer users' questions automatically. User is able to find the knowledge base articles and relevant shortcut in the ticketing system with just one click. This is how it looks like in Slack. And it is also super easy to customize the Bot to fit different … Continue reading Create a Slack FAQ Bot in AWS Lambda
I assume you already knew what the EC2 instance profile is. Basically, the instance profile defines the permissions that a EC instance has. As it is associated with an IAM role which has a bunch of IAM policies attached. And the AWS credential in the EC2 metadata is automatically rotated by the instance profile. In … Continue reading Setup AWS “Instance Profile” for on-prem servers
I was working on a new Lambda function a couple days ago. It took me a while to deploy it successfully via CloudFormation. It was all due to some required IAM policies were missed in the deployment role. So I had to delete the stack then create again for a couple of times. When I … Continue reading When KMS key grant is created for Lambda execution role?
Simply speaking ACM (AWS Certificate Manager) uses KMS (Key Management Service) to protects the private key. What drew my attention into this topic is that a user get denied (no permission to describe kms key) when trying to request a ACM certificate in a region where KMS is explicitly denied. This diagrams explains how ACM … Continue reading How ACM protects the private key?