Skip to content

Instantly share code, notes, and snippets.

View AndrzejKomarnicki's full-sized avatar

Andrzej Komarnicki AndrzejKomarnicki

View GitHub Profile
@AndrzejKomarnicki
AndrzejKomarnicki / vpclocalzone.tf
Last active March 27, 2023 02:31
AWS Local Zones AZ and subnet with Terraform VPC module
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "3.14.4"
name = var.name
cidr = "10.0.0.0/16"
azs = data.aws_availability_zones.available.names
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
public_subnets = ["10.0.4.0/24", "10.0.5.0/24", "10.0.6.0/24"]
enable_nat_gateway = true
@AndrzejKomarnicki
AndrzejKomarnicki / aws-ebs-csi-storageclass.yml
Last active March 26, 2020 20:15
AWS EBS CSI StorageClass for K8s with encryption, dynamic provisioning, and volume resizing support
# Recommended to be running at least K8s 1.15 or higher
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: ebs-csi-encrypted
provisioner: ebs.csi.aws.com
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
reclaimPolicy: Delete # set to Retain if you don't wante the volume to be deleted after the PVC is deleted
@AndrzejKomarnicki
AndrzejKomarnicki / template.yaml
Last active December 5, 2019 21:40
AWS SAM template.yaml with the new API Gateway V2 HTTP API support
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
sam-appapigw2
Sample SAM Template for sam-appapigw2
# API Gateway V2 with HTTP API
Globals:
Function:
@AndrzejKomarnicki
AndrzejKomarnicki / awsamplifyexpo.js
Last active February 19, 2023 08:51
AWS Amplify and AppSync with Expo (React Native) cheat sheet
AWS Amplify and AppSync with Expo (React Native) cheat sheet and reference guide
[AWS Amplify] https://aws-amplify.github.io
[Expo] https://expo.io
// In order to run the Android emulator with Expo you will need Android Studio with Android Virtual Device Manager
// In order to run the iOS simulator with Expo you'll need Xcode
INITIALIZE PROJECT

Keybase proof

I hereby claim:

  • I am andrzejkomarnicki on github.
  • I am andrzejk (https://keybase.io/andrzejk) on keybase.
  • I have a public key ASCKoV0cnvDSpYbl338bAL4G09Q1PVHchA_1XISHiOKrkQo

To claim this, I am signing this object: