Skip to content

Instantly share code, notes, and snippets.

@gluehbirnenkopf
gluehbirnenkopf / aws_vpc.tf
Last active March 9, 2024 09:04
This will create a VPC with public and private subnets including a EC2 based jumphost which can be accessed via SSM. It is very useful for building up a quick Lab environment in AWS. It cleanly creates and destroys with a single `terraform apply`
locals {
vpc_cidr = "192.168.0.0/16"
vpc_interface_endpoints = ["ssm", "ec2messages", "ssmmessages"]
region = "eu-central-1"
availability_zones = ["eu-central-1a", "eu-central-1b"]
ec2_bastion_ami = "ami-0b1a8f3698a954358"
ec2_bastion_instance_class = "t3a.micro"
public_subnet_offset = 0
@gluehbirnenkopf
gluehbirnenkopf / README.md
Created November 20, 2020 11:54 — forked from joyrexus/README.md
curl tutorial

An introduction to curl using GitHub's API.

Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin

Includes HTTP-Header information in the output