Skip to content

Instantly share code, notes, and snippets.

View ankyit's full-sized avatar
🎯
Focusing

Ankit Mehta ankyit

🎯
Focusing
View GitHub Profile
@ankyit
ankyit / velero-prereq.yaml
Created September 14, 2022 11:01
velero-prereq
AWSTemplateFormatVersion: "2010-09-09"
Description: Velero Prerequisites
Parameters:
paramBucketName:
Type: String
Description: Provide Bucket Name
Resources:
VeleroBucket:
Type: 'AWS::S3::Bucket'
Properties:
@ankyit
ankyit / provider.tf
Last active March 10, 2022 07:08
Terraform-CloudFlare-Workers
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "3.9.0"
}
}
}
@ankyit
ankyit / List of OSS buckets
Last active October 15, 2021 11:38
Steampipe Alibaba Cloud
select
name,
arn,
region,
account_id,
versioning
from
alicloud_oss_bucket
@ankyit
ankyit / __main__.py
Last active October 13, 2021 15:23
alicloud-pulumi-python
from pulumi import export
import pulumi_alicloud as alicloud
vpc = alicloud.vpc.Network( "web_dev_vpc",
vpc_name="alicloud_webdev_vpc",
description="Webdev VPC created with Pulumi",
cidr_block="192.168.0.0/16",
tags={
"created-with":"pulumi",
"created-by":"ankit",
@ankyit
ankyit / ecr-login.sh
Created January 25, 2021 08:05
ecr-login.sh
#! /bin/bash
eval $(aws ecr get-login --no-include-email --region ap-southeast-1 --registry-ids $1)
@ankyit
ankyit / install-java-amazonlinux-2
Created August 24, 2020 03:42
install-java-amazon-linux-2
sudo amazon-linux-extras install java-openjdk11
@ankyit
ankyit / ignore-host-key-verification
Created August 24, 2020 03:40
ignore-host-key-verification
Host *
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
@ankyit
ankyit / namespace-nginx.ts
Created March 11, 2020 08:56
Pulumi - Kubernetes
import * as k8s from "@pulumi/kubernetes";
import * as kx from "@pulumi/kubernetesx";
const clusterSvcsNamespace = new k8s.core.v1.Namespace("pulumi",undefined, undefined)
export const clusterSvcsNamespaceName = clusterSvcsNamespace.metadata.name;
const appLabels = { app: "nginx" };
const deployment = new k8s.apps.v1.Deployment("nginx", {
metadata: {namespace: clusterSvcsNamespaceName},
spec: {
@ankyit
ankyit / get-list-of-network-interfaces-in-VPC
Last active March 10, 2020 23:58
AWS - CLI references
aws ec2 describe-network-interfaces --filters Name=vpc-id,Values=vpc-12345 --query "NetworkInterfaces[*].[NetworkInterfaceId,Description,VpcId,PrivateIpAddress]" --output table
Ref: https://aws.amazon.com/premiumsupport/knowledge-center/vpc-detach-or-delete-eni/
@ankyit
ankyit / main.tf
Last active November 3, 2021 21:21
Terraform-AWS-EC2-Creation-V0.12 : This gist can help you create an EC2 instance on AWS with Terraform version 0.12.16
// Variable Definition
variable "aws_region" {}
variable "aws_vpc_cidr_block" {}
variable "aws_subnet_cidr_block" {}
variable "aws_private_ip_fe" {}
variable "aws_Name" {}
variable "aws_Application" {}
variable "aws_ami" {}
variable "aws_instance_type" {}