Skip to content

Instantly share code, notes, and snippets.

View iamtankist's full-sized avatar

Armen Mkrtchyan iamtankist

  • Software Architect / IT-Consultant
  • Cologne, Germany
  • X @iamtankist
View GitHub Profile

Keybase proof

I hereby claim:

  • I am iamtankist on github.
  • I am iamtankist (https://keybase.io/iamtankist) on keybase.
  • I have a public key whose fingerprint is FA1B 8D92 D31A 646B 6929 D3B2 6AFF 735C 8E23 1F30

To claim this, I am signing this object:

@iamtankist
iamtankist / baro.json
Last active September 23, 2016 11:32
{
"title": "Performance Zone",
"deliveredBy": "delivered by",
"rank": "Rank",
"fieldPosition": "OVERALL",
"firstPlayer": {
"id": 63706,
"name": "Cristiano Ronaldo",
"rank": "1st",
"playerImage": "http://img.uefa.com/imgml/TP/players/1/2017/324x324/63706.jpg",

Option 1: Distinguishing with URIs/separate endpoints

POST /users/:userId/vaults # create vault with user ownership
{
  ...vaultpayload
}

POST /teams/:userId/vaults # create vault with team ownership
{
@iamtankist
iamtankist / roles.tf
Created February 28, 2019 12:15
provisioning own roles
resource "aws_iam_role" "autoscale_role" {
name = "fargate-autoscale-role"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "application-autoscaling.amazonaws.com"
@iamtankist
iamtankist / Vagrantfile
Last active April 3, 2019 09:59
vagrant box with pre-installed aws cli
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.provision :shell, :inline => <<SCRIPT
apt-get update
curl -s -O https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py && rm get-pip.py
pip3 install awscli --upgrade
aws --version
SCRIPT
end