Skip to content

Commit a2551d1

Browse files
committed
add makefile for AWS and terraform stuff
1 parent 09f637a commit a2551d1

File tree

5 files changed

+32
-1
lines changed

5 files changed

+32
-1
lines changed

Makefile.aws

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.PHONY: install-cli
2+
install-cli:
3+
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
4+
unzip awscliv2.zip
5+
sudo ./aws/install
6+
rm -rf aws awscliv2.zip
7+
8+
.PHONY: install-vault
9+
install-vault:
10+
curl -L -O "https://github.com/99designs/aws-vault/releases/latest/download/aws-vault-linux-amd64"
11+
sudo install -o root -g root -m 0755 aws-vault-linux-amd64 /usr/local/bin/aws-vault
12+
rm -f aws-vault-linux-amd64

Makefile.fish

-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,5 @@ omf-install:
2323
curl -L "https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf" -o "${HOME}/.local/share/fonts/PowerlineSymbols.otf"
2424
curl -L "https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf" -o "${HOME}/.config/fontconfig/conf.d/10-powerline-symbols.conf"
2525
fc-cache -vf ${HOME}/.local/share/fonts/
26-
2726
curl -L "https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install" | fish
2827
fish -c 'omf install bobthefish'

Makefile.go

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ GOURL=https://dl.google.com/go/${GOARCHIVE}
66

77
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
88

9+
all: install fish
10+
911
.PHONY: install
1012
install: go-clean
1113
curl -O ${GOURL}

Makefile.terraform

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# vim:filetype=make
2+
3+
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
4+
5+
all: install fish
6+
7+
# https://github.com/warrensbox/terraform-switcher
8+
.PHONY: install
9+
install:
10+
curl -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh | sudo bash
11+
12+
.PHONY: fish
13+
fish:
14+
rm -f ${HOME}/.config/fish/functions/mql-terraform.fish
15+
ln -s ${ROOT_DIR}/fish/functions/mql-terraform.fish ${HOME}/.config/fish/functions/mql-terraform.fish

fish/functions/mql-terraform.fish

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if not contains $HOME/bin $PATH
2+
set PATH $PATH $HOME/bin
3+
end

0 commit comments

Comments
 (0)