Skip to content

Instantly share code, notes, and snippets.

View tejasparikh's full-sized avatar

Tejas Parikh tejasparikh

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tparikh on github.
  • I am tparikh (https://keybase.io/tparikh) on keybase.
  • I have a public key ASD3HeOLOPsHEY9NaSDyAc9RQEomsJ3sJ52S_qaCROerlwo

To claim this, I am signing this object:

provider "aws" {
region = "us-east-1"
}
variable "database_username" {
type = string
default = "csye6225master"
}
variable "database_password" {

Go Project Setup

GitHub Repository

Create a GitHub repository and initialize it with README.md.

Local Setup

Run following commands to setup your workspace. Set github_username to your GitHub username and github_repository_name to the GitHub repository name that you just created.

{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Launch EC2 & RDS Instance - CSYE 6225 Summer 2019",
"Resources": {
"dbSecurityGroup": {
"Type": "AWS::EC2::SecurityGroup",
"Properties": {
"GroupDescription": "db security group",
"VpcId": "vpc-b5719ecd",
"SecurityGroupIngress": [
{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"aws_region": "",
"subnet_id": "",
"source_ami": "ami-0a313d6098716f372",
"ssh_username":"ubuntu"
},
"builders": [
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Launch EC2 - CSYE 6225 Summer 2019",
"Resources": {
"myVPC": {
"Type": "AWS::EC2::VPC",
"Properties": {
"CidrBlock": "10.0.0.0/16",
"EnableDnsSupport": "true",
"EnableDnsHostnames": "true",
@tejasparikh
tejasparikh / cf-ec2-template.json
Created June 8, 2019 12:20
Sample CloudFormation Template - EC2
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Launch EC2 - CSYE 6225 Summer 2019",
"Resources": {
"EC2Instance": {
"Type": "AWS::EC2::Instance",
"Properties": {
"ImageId": "ami-9887c6e7",
"InstanceType": "t2.micro",
"SecurityGroupIds": [
@tejasparikh
tejasparikh / github-add-user
Created January 28, 2019 16:47 — forked from miraculixx/github-add-user
batch adding users to github accounts
#!/bin/bash
# Collaborator list, add, remove from a repository
# (c) 2015 miraculixx
# Author: github.com/miraculixx
# MIT License, see below
function help {
echo "Add collaborators to one or more repositories on github"
echo ""
echo "Syntax: $0 -u user -p password [-l] [-D] -r repo1,repo2 <collaborator id>"