Skip to main content

Posts

Showing posts with the label AWS

AWS CodeDeploy events don't start issue

Issue The code deploy events keep hanging in the pending status without starting.  Possible Reasons 1. CodeDeploy agent not installed? Make sure to install the CodeDeploy agent in the EC2 instance (If you are using EC2 instances to deploy the application) Refer to the documentation for the CodeDeploy agent installation . 2. Is the code deploy service role properly created? Make sure to check the proper permissions for the service role that you have used for the code deploy service role.  https://docs.aws.amazon.com/codedeploy/latest/userguide/getting-started-create-service-role.html 3. Make sure the IAM instance profile is properly created https://docs.aws.amazon.com/codedeploy/latest/userguide/getting-started-create-iam-instance-profile.html 4. Is the code deploy endpoint command endpoint reachable?  For each region, there is a CodeDeploy command endpoint. Make sure that you can reach the command endpoint from your EC2 instance.  eg: for us-east-1 ping codedeploy.us...

AWS add multiple MFA devices

 Adding multiple MFA devices to AWS user account I wanted to use more than one device for MFA. Well, once I was abroad and my phone broke for some time. My phone had  MFA setup for the AWS account. Then I was locked out and couldn't log in to AWS without having the phone. This made me wanted to keep more than one MFA device. However, AWS doesn't really allow you to add more than one device. It is to note that we always use virtual MFA devices and that is also the trick to do this. I haven't tried this with hardware devices though. Just to be clear a virtual MFA allows us to set up an MFA application such as Google Authenticator or Microsoft Authenticator etc.  The Workaround The trick is to use the same QR code to add another device. Also, this can be done using the secret too. When the first device is added, keep the QR code (maybe take a screenshot and then add another MFA device.  Scan the same QR code with the next device or enter the secret key. The same pin num...