Skip to content

Instantly share code, notes, and snippets.

@qafro1
qafro1 / snippet.tf
Created November 28, 2019 13:30 — forked from kainlite/snippet.tf
lambda terraform
# Set the region where the lambda function will be created
variable "aws_region" {
default = "us-east-1"
}
# Assign the region to the provider in this case AWS
provider "aws" {
region = "${var.aws_region}"
}
@qafro1
qafro1 / webappforcontainer.tf
Created November 12, 2019 17:21 — forked from robinmanuelthiel/webappforcontainer.tf
The Terraform documentation is missing dedicated configuration details for containers on App Services. Here is, how it's done. https://pumpingco.de/blog/14472/
# Use the Azure Resource Manager Provider
provider "azurerm" {
version = "~> 1.15"
}
# Create a new Resource Group
resource "azurerm_resource_group" "group" {
name = "pumpingcode-webapp-containers-demo"
location = "northeurope"
}
@qafro1
qafro1 / Vagrantfile
Created July 18, 2018 19:34 — forked from lizrice/Vagrantfile
Vagrant file for setting up a single-node Kubernetes cluster that I can access from my desktop. Read more: https://medium.com/@lizrice/kubernetes-in-vagrant-with-kubeadm-21979ded6c63
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This script to install Kubernetes will get executed after we have provisioned the box
$script = <<-SCRIPT
# Install kubernetes
apt-get update && apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list