This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to push docker images to jfrog artifactory | |
# Developers can build local docker images and they can run this script with single argument as ./push_images.sh java/test_app:1.0 | |
# If no tag passed version it will push as latest tag like java/test_app:latest | |
pushto_jfrog() | |
{ | |
if [ -z ${tag_name} ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o pipefail | |
usage() { | |
echo 'Usage: | |
source ./script.sh <IAM_USERNAME> <MFA_CODE> <ACCOUNT_ID> <PROFILE_NAME> | |
Requires: | |
* jq | |
* aws cli | |
* PROFILE_NAME is default when you do 'aws configure' at first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "aws" { | |
region = var.aws_region | |
profile = var.aws_profile | |
} | |
terraform { | |
backend "s3" { | |
bucket = "bharaths-terraform-up-and-running" | |
key = "development/data-stores/mysql/terraform.tfstate" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
aws ecr describe-repositories | jq -r '.repositories[].repositoryName' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dump build stage | |
FROM postgres:11-alpine as dumper | |
COPY test_dump.sql /docker-entrypoint-initdb.d/ | |
RUN ["sed", "-i", "s/exec \"$@\"/echo \"skipping...\"/", "/usr/local/bin/docker-entrypoint.sh"] | |
ENV PG_USER=postgres | |
ENV PGDATA=/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module "networking" { | |
source = "../modules/networking" | |
environment = "${var.environment}" | |
vpc_cidr = "${var.vpc_cidr}" | |
public_subnet_cidr = "${var.public_subnet_cidr}" | |
private_subnet_cidr = "${var.private_subnet_cidr}" | |
region = "${var.region}" | |
availability_zone = "${var.availability_zone}" | |
key_name = "${var.key_name}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
should_run: | |
name: should run the next job | |
runs-on: ubuntu-latest | |
steps: | |
- name: check if vb is the commiter | |
if: github.event.pusher.name != 'vibou' | |
run: exit 1 # the job fails if not vibou | |
perform_action: | |
name: should run the next job |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
ALL_RESOURCES=$(kubectl api-resources | awk 'NR>1' | awk '{print $1}' | xargs echo) | |
for i in $ALL_RESOURCES | |
do | |
echo -e "$i\n------------------------------------------------------------------" | |
kubectl get $i --all-namespaces | |
echo -e "\n" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Statement": [ | |
{ | |
"Sid": "PackerSecurityGroupAccess", | |
"Action": [ | |
"ec2:CreateSecurityGroup", | |
"ec2:DeleteSecurityGroup", | |
"ec2:DescribeSecurityGroups", | |
"ec2:AuthorizeSecurityGroupIngress", | |
"ec2:RevokeSecurityGroupIngress" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG ALPINE_VERSION=3.11 | |
FROM alpine:${ALPINE_VERSION} | |
# packages version | |
ARG PACKER_VERSION=1.6.0 | |
# PARAMETERS | |
ARG PACKER_URL="https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip" |
OlderNewer