Stress test on Linux

Download and install the stress test tool

sudo amazon-linux-extras install epel -y
sudo yum install stress -y

Launch the stress test in background (for 800 seconds in that example)

sudo stress --cpu 8 --timeout 800 &

Check the stress test processes with the top command

top

Result for the top command

Manually stop the stress test (if needed)

sudo killall stress

Terraform walk through with AWS creating S3 buckets

Terraform is a IaaC tool developed by Hashicorp. It can be used with multiple platforms like AWS, Microsoft Azure, GCP and provision different environments.

Running Terraform is simple, you simply need to install Terraform first on the host you intend to run, whether it be local, remote or cloud hosts. Move to desired location /usr/local/bin. Then create a Terraform config file – which is written in HCL (Hashicorp Config Language) that ends with .tf extension.
Using simple commands like Terraform init, plan, apply, destroy, you can manage and provision infrastructure safely and efficiently.

See my Video tutorial on setting up Terraform on AWS EC2 instance.

Apply for $300 AWS Credit with AWS Proof of Concept Program

Yes Amazon is giving away $300 credit with Proof of Concept Program.
Read on below from AWS and see if you are eligible for the application.

Amazon Web Services wants to help your business scale and grow with low cost, easy to use cloud products and services.  The AWS Proof of Concept Program provides a $300 credit to small businesses to quickly get started and test AWS against their specific IT and business requirements by subsidizing a proof of concept. More than a million active customers, from Slack to GE, use AWS Cloud solutions to deliver flexibility, scalability, and reliability. Join them and start scaling your business with AWS today.

To qualify, you must have:

  • A valid AWS account, with up-to-date billing information 
    (reseller accounts do not qualify)
  • Not previously received more than $200 of AWS promotional credit
  • A sufficient business case and proof of concept to test using the credits
  • No linked accounts
  • Credits valid for 6 months

Cannot Delete S3 Buckets using Root Access

Lately, I have been doing some testings with AWS Elastic Beanstalk and came across this issue where I could not delete the S3 bucket even with my root account.

It comes up with the message saying

"Insufficient permissions to delete bucketAfter you or your AWS admin have updated your IAM permissions to allow s3:DeleteBucket, choose delete bucket"

The solution is to change the bucket policy.

Continue reading “Cannot Delete S3 Buckets using Root Access”

Launching EC2 Instances on AWS

After reviewing my video, when i was first accessing my DB instance from my local server, I could not access and the reason was because of the internal IP. 😛 what was I thinking, anyways its just a demo video so I hope you can forgive me with that.

Anyways, more video tutorials to come. Please like and subscribe. That will motivate me to create more videos. Cheers

Continue reading “Launching EC2 Instances on AWS”

No Package MYSQL Server Available

If you have come across an issue of installing sql server on AWS Linux AMIs, especially when you are using one of those Free Tier Eligible AMIs, well its very likely that this is the solution for you. I came across this issue and got me stuck for a little while before I found the solution somewhere on the net. The problem is that the AMIs that you are using may not have the default repos in it.

Continue reading “No Package MYSQL Server Available”

Password Default policy for IAM users

F – I – N – A – L – L – Y

Please …….
Why did we even have to set these password policies back in the days.
It should have been there by default.

No brainer, you use cloud, you have to put a strong password.
Without a strong password, you must not be able to proceed.

Eventually AWS made that default now.

Well, better late than never.

https://aws.amazon.com/about-aws/whats-new/2020/11/aws-identity-and-access-management-introduces-new-policy-defaults-for-iam-user-passwords/

No more RTMP support on AWS

AWS discontinuing RTMP by tomorrow.

See below links for more information –

https://forums.aws.amazon.com/ann.jspa?annID=7356

“AWS has a long history where we do not deprecate AWS service functionality unless for security reasons or under unusual circumstances. In 2017, Adobe announced the end-of-life for Flash will be December 31, 2020. In addition to Adobe, many of the most widely used internet browsers are also discontinuing Flash support in 2020. As a result, Amazon CloudFront will no longer support Adobe Flash Media Server and will be deprecating Real-Time Messaging Protocol (RTMP) distributions by December 31, 2020.”

https://www.vdocipher.com/blog/rtmp-streaming-support-cdn/

“RTMP Streaming Protocol is receiving declining support from Content Delivery Networks CDNs). One major demand that RTMP stream places on CDNs is the requirement of an active connection between Flash Media Player and the viewer on port 1935. This is because RTMP requires a persistent connection. On the other hand streaming protocols such as HLS, DASH and HDS require streaming over HTTP, and do not require much customization, and are easily supported by CDNs. Also, with Flash not being supported by Android and iOS, RTMP use is steadily declining.”