Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Diego Magalhães dgomesbr

🏠
Working from home
View GitHub Profile
@dgomesbr
dgomesbr / deploy2AWS.sh
Last active Feb 24, 2019
WP2Static S3 + Cloudfront invalidation
View deploy2AWS.sh
#!/bin/bash
#######################################################################################
#
# On WP2Static, targetdir = /opt/bitnami/wordpress/wp-content/static-version/deploy
# the script is executed outside the deploy dir in case you need to do any transfomations
# before the actual sync.
#
# Earlier version contained for example, hash of the deploy dir and its files for
# comparison, but since we're using s3 sync, no need to keep that.
@dgomesbr
dgomesbr / sample-policy.json
Created Jul 6, 2020
Sample DynamoDB policy
View sample-policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"dynamodb:GetItem",
"dynamodb:PutItem",
"dynamodb:Query"
],
You can’t perform that action at this time.