In the bad old days [before 2008], we used to spend time in cold, noisy rooms, plugging boxes into metal cages. Today we can build infrastructure from the comfort of our desks. I'll explore how we got to this point, and introduce some modern tools for infrastructure as code.
From CodeMill digital skills meetup https://www.meetup.com/CodeMill-Digital-Skills/events/243110683/
51. resource "aws_instance" "web" {
instance_type = "t2.micro"
# Lookup the correct AMI based on the region
# we specified
ami = "${lookup(var.aws_amis, var.aws_region)}"
# The name of our SSH keypair we created above.
key_name = "${aws_key_pair.auth.id}"
# Our Security group to allow HTTP and SSH access
vpc_security_group_ids = ["${aws_security_group.default.id}"]
subnet_id = "${aws_subnet.default.id}"
provisioner "remote-exec" {
inline = [
"sudo apt-get -y update",
"sudo apt-get -y install nginx",
"sudo service nginx start",
]
}
}
66. TODAY_
On-premise VMWare basically dead
Traditional config management losing
favour
Packer / Terraform in heavy use
The cool kids are using Kubernetes
(But, really, don't run it yourself)
Consider Lambda for async workloads
Serverless likely to increase in popularity