IaC on Azure – An introduction of Infrastructure as Code (IaC)

What is Infrastructure as Code (IaC)?
Infrastructure as Code is a process of managing and provisioning computing infrastructure with some declarative approach while setting their configuration using definition files instead of traditional interactive configuration tools.

What are the benefits of IaC?

  • Consistency
    • Consistently achieve standardised provisioning or deployment
  • Accelerating
    • Accelerating provisioning or deployment rapidly
  • Reusability
    • Reusable JSON code for repeatable or similar provisioning or deployment
  • Extensibility
    • Extensible JSON code for incorporating with additional items

Have any developer ever waited for weeks or months to get a development environment delivered by their internal IT operations? This demand has driven IT industry to deliver new tool set to ensure that one can deliver on time and meet the standard requirement constantly. Reference: Ryen Kia Zhi Tang

AWS Backup


Setting Up Chef Automate on AWS

Navigate to the URL https://console.aws.amazon.com/opsworks/cm/home#/chef/ 
and select Create Chef Automate Server

Step 1: Now select the region and enter the Chef Server Automate Instance (server) name and
– Select the Instance type too.

Step 2: Select an SSH Key
No room to create a new key (either you select you don’t want to connect using SSH or you select an existing SSH key).

Step 3: Select the right VPC, Subnet, associate the right EIP, security group.
– Create a service role if non-exists at the moment

“AWS OpsWorks for Chef Automate needs your permission to create an IAM service role that allows us to perform actions in AWS CloudFormation, Amazon EC2, Amazon EC2 Simple Systems Manager, and Amazon S3. By continuing, you are allowing us to create a new role to work with these services.” Create an Instance Profile

“AWS OpsWorks for Chef Automate needs your permission to create an instance profile that allows us to perform actions in Amazon S3, and communicate with a Chef server by using Amazon EC2 Simple Systems Manager (SSM). By continuing, you are allowing us to create a new role to work with these services”

Select your maintenance Windows to allow AWS OpsWork to install Updates for Chef Automate minor versions or security packages.

Note: Weekends are always better to have this performed. (select whatsoever time suits you).

For AWS OpsWorks Backup: AWS OpsWorks supports two ways to back up your Chef Automate server: manual or automated. Backups are uploaded to your Amazon S3 bucket. If you ever need to restore your Chef Automate server, you can restore it by applying a backup that you choose.

When you choose yes to Enable automated backup, these options below are available

Number of generations to keep: 30 is usually okay but this depends on your organization policy.

Step 4: Review and Launch: open its Properties page in the AWS OpsWorks for Chef Automate console. The page below will be prompted to show the progress bar of the AWS OpsWork for Chef Automate creation.

Note: Make sure you download the following before your server is online. The download buttons are not available after a new server is online.

Finally, this message will appear on the dashboard stating your Chef Automate Server is successfully launched

Note: The created role will appear in the IAM section under roles as shown below

Now Access the URL (dashboard) of Chef Automate and perform all necessary configurations etc. as shown below

Note: Ensure you have the ChefDK downloaded and Installed on your local PC from  https://downloads.chef.io/chefdk

Otherwise, you cannot work with Chef Automate with Windows 10. See how to install ChefDk on Windows in the next page

Amazon acquires a new Disaster Recovery Solution from CloudEndure.

Amazon has recently purchased anew disaster recovery solution and this service is now available in the Amazon Marketplace.

It was gathered that AWS purchased CloudEndure for an approximate sum of $250 million.

CloudEndure focuses on uptime and capable of making application replication across different cloud providers or data centres in case of a disaster (outage) at the primary Data Center or Cloud Provider.

This is currently supported already on some cloud solution. With can move their IT infrastructure into different cloud providers through its Migration tools.


Error When importing an OVA file to AWS “client error: saved empty is empty”

This is one of the problems i ran into while importing an Ova File to AWS.


1. Use AWS license type AWS instead of BYOD

Yeah, if you import an image with “–license-type AWS”, AWS will activate windows by using their KMS every time server boots up. This is completed by ec2config service or ec2launch(2016). See check logs to find how Ec2WindowsActivate plugin works. To change this behaviour, please modify config.xml of ec2config.

If you import an image with “–license-type BYOL”, AWS ec2config or ec2launch will ignore windows activation which makes you need to have your own licenses.

Note: Also, you can imagine AWS hourly rate gonna be higher than BYOL because AWS is paying licenses.

2. The grub system may not be supported 


3. The OS version is not supported.