Skip to content

Instantly share code, notes, and snippets.

View ivanji's full-sized avatar
🎯
Focusing

Ivan J ivanji

🎯
Focusing
View GitHub Profile
  1. Install @module-federation/nextjs-mf.
yarn add @module-federation/nextjs-mf
  1. Add resolutions to package.json:
  "resolutions": {
@ivanji
ivanji / cloudformation-dynamoDB.yml
Created January 4, 2019 04:44 — forked from DavidWells/cloudformation-dynamoDB.yml
Example of dynamo cloudformation with GSI and LSI
---
AWSTemplateFormatVersion: '2010-09-09'
Resources:
myDynamoDBTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: Album
AttributeType: S
- AttributeName: Artist
@ivanji
ivanji / AWS Instance Bootstrap
Last active August 4, 2016 05:08 — forked from mikepfeiffer/gist:4d9386afdcceaf29493a
EC2 UserData script to install CodeDeploy agent
#!/bin/bash
yum update -y
yum install -y httpd24 php56
cd /home/ec2-user/
aws s3 cp 's3://aws-codedeploy-us-west-2/latest/codedeploy-agent.noarch.rpm' . --region us-west-2
yum -y install codedeploy-agent.noarch.rpm
chown -R root:www /var/www
chmod 2775 /var/www