This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"dynamodb:GetItem", | |
"dynamodb:PutItem", | |
"dynamodb:Query" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
// SPDX-License-Identifier: MIT-0 | |
// default imports | |
const AWSXRay = require('aws-xray-sdk-core') | |
const AWS = AWSXRay.captureAWS(require('aws-sdk')) | |
const { metricScope, Unit } = require("aws-embedded-metrics") | |
const DDB = new AWS.DynamoDB({ apiVersion: "2012-10-08" }) | |
// environment variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Specify the desired volume size in GiB as a command line argument. If not specified, default to 50 GiB. | |
SIZE=${1:-50} | |
# Get the ID of the environment host Amazon EC2 instance. | |
INSTANCEID=$(curl http://169.254.169.254/latest/meta-data/instance-id) | |
# Get the ID of the Amazon EBS volume associated with the instance. | |
VOLUMEID=$(aws ec2 describe-instances \ |
OlderNewer