Using list and lookup in terraform HCL

Terraform delivers consistent build and save a lot of time from clicking and scrolling. But when the resources, in this case ec2 resources are slightly different, it may be necessary to create a tf config for every instance. That defeats the purpose of automation. By storing the differences in a list and use the lookup function to extract the values, I’m able to write the following tf config with little…

Read More

aliyun

Switched to aliyun international today. It’s incredibly fast compared to DigitalOcean in the same region. Monthly charge is reduced by almost 50% [1] Blazing fast Compared to what I previous used, network performance exceeds my expectation. My DO vm was in the same region. Very often I had to wait 3-10 seconds for my blog to load. After moving to aliyun, the site loads in under a second. Sorry but…

Read More