Disclaimer: I'm super new to DynamoDB, so if you found I wrote something incorrect or stupid, just kindly send me a comment :)
- database -> tables -> items -> attributes
- db = a collection of tables
import java.security.InvalidKeyException; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.SignatureException; | |
import java.util.Formatter; | |
import javax.crypto.Mac; | |
import javax.crypto.spec.SecretKeySpec; | |
/** |
describe("index page", function() { | |
beforeEach(function() { | |
browser.get("http://localhost:9999/app/index.html"); | |
}); | |
it("should have navigator", function() { | |
expect(element("#navigator")).toBeDefined(); | |
}); | |
it("should have input box", function() { |
function convertSheet2Json(sheet) { | |
// first line(title) | |
var colStartIndex = 1; | |
var rowNum = 1; | |
var firstRange = sheet.getRange(1, 1, 1, sheet.getLastColumn()); | |
var firstRowValues = firstRange.getValues(); | |
var titleColumns = firstRowValues[0]; | |
// after the second line(data) | |
var lastRow = sheet.getLastRow(); |
This documented is a slightly adapted version to this one: https://gist.github.com/jsuwo/9038610 by Jeff Shantz. He has a fantastic video series on setting up Jenkins on AWS EC2 here: https://www.youtube.com/watch?v=1JSOGJQAhtE&feature=youtu.be&ab_channel=JeffShantz
package ca.uwo.csd.cs2212.USERNAME; | |
public class BankAccount { | |
private double balance; | |
public BankAccount(double balance) { | |
this.balance = balance; | |
} |
packages: | |
yum: | |
git: [] | |
gcc: [] | |
make: [] | |
openssl-devel: [] | |
commands: | |
00-add-home-variable: | |
command: sed -i 's/function error_exit/export HOME=\/root\n\nfunction error_exit/' /opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh | |
container_commands: |
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "Test template for creating a beanstalk environment", | |
"Parameters" : { | |
"VPC": { | |
"Description" : "The AWS VPC to use.", | |
"Type": "AWS::EC2::VPC::Id" | |
}, | |
"SubnetA": { | |
"Description" : "The Subnet in AZ A.", |
{ | |
"Outputs":{ | |
"AWSEBLoadBalancerURL":{ | |
"Value":{ | |
"Fn::Join":[ | |
"", | |
[ | |
"http:\/\/", | |
{ | |
"Fn::GetAtt":[ |
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "AWS Quick Start Demo - Elastic Beanstalk App Setup.", | |
"Parameters" : { | |
"VPC": { | |
"Description" : "ID of the VPC to use", | |
"Type": "String", | |
"MinLength": "1", |