Skip to content

Instantly share code, notes, and snippets.

View anubhavmishra's full-sized avatar
💻

Anubhav Mishra anubhavmishra

💻
View GitHub Profile

GCP Authentication for Terraform Google Provider

  1. Create a secret variable called google_credentials using the Azure Pipelines guide. This will create a secret variable google_credentials in Azure Pipelines. You can then map the secret variable into an environment variable that Terraform can use to connect to GCP.

  2. Map the secret variable google_credentials into an environment variable GOOGLE_CREDENTIALS.

steps:
 env:
@anubhavmishra
anubhavmishra / vault-install.sh
Last active April 22, 2019 07:54
Install Vault on Azure for Demo
#!/bin/bash -e
echo "-> Installing dependencies....."
apt-get update
apt-get upgrade
apt-get install -y \
apt-transport-https \
build-essential \
ca-certificates \
curl \
@anubhavmishra
anubhavmishra / devops-barcelona-demo.md
Created April 11, 2018 09:34
DevOps Barcelona Notes for Demo

devops barcelona demo

Prep Demo:

  • Create tunnels for Consul and Nomad
  • Have terminals ready for monolith, database, nomad servers, and nomad clients
  • Check whether redis-servers are using passwords in both the webserver and the database server.
  • Prepopulate password for both redis-servers
  • Filter for consul servers

Keybase proof

I hereby claim:

  • I am anubhavmishra on github.
  • I am anubhavmishra (https://keybase.io/anubhavmishra) on keybase.
  • I have a public key ASCDjNkgJZYsQQHNAW8J2IwblMNbA__q20n8-62AThQjswo

To claim this, I am signing this object:

@anubhavmishra
anubhavmishra / envoy.json.tpl
Created September 5, 2017 02:51
Envoy Config Template
{
"listeners": [
{
"address": "tcp://0.0.0.0:1010",
"filters": [
{
"type": "read",
"name": "http_connection_manager",
"config": {
"access_log": [
@anubhavmishra
anubhavmishra / envoy.json
Last active October 27, 2021 01:45
Envoy Config
{
"listeners": [
{
"address": "tcp://0.0.0.0:1010",
"filters": [
{
"type": "read",
"name": "http_connection_manager",
"config": {
"access_log": [
@anubhavmishra
anubhavmishra / hashicorp_download_errors.md
Created January 10, 2017 22:26
hashicorp download errors
  • This is using ansible get_url: module. This might be something to do with python but seems to be affecting all Hashicorp releases.
msg: Request failed```
@anubhavmishra
anubhavmishra / gist:7618a77fbabfea855d5f
Created December 7, 2014 08:41
ServerSpec Install and Run Command
#!/bin/bash
# serverspec.sh - RSpec tests for servers
echo "Installing serverspec"
sudo gem install serverspec
cd /tmp/tests
echo "Running integration tests for ami"
/opt/sensu/embedded/bin/rake spec
@anubhavmishra
anubhavmishra / gist:60323383cd4ebd95ba7d
Created December 7, 2014 08:40
ServerSpec Sample Test for Sensu
require 'spec_helper'
# Sensu should be installed
describe package('sensu') do
it { should be_installed }
end
# Sensu client service should be enabled
describe service('sensu-client') do
it { should be_enabled }
@anubhavmishra
anubhavmishra / gist:5365bd6c708a34f6669e
Created December 7, 2014 08:39
Packer Sample Variable File
{
"ami_name": "",
"aws_account_id": "",
"aws_region": "us-east-1",
"ami_instance_type": "",
"ami_description": "",
"playbook_file": "playbook.yml"
}