aws workshop

AWS Workshop Details

Amazon Web Services (AWS) is a subsidiary of Amazon.com that provides on-demand cloud computing platforms to individuals, companies and governments, on a paid subscription basis with a free-tier option available for 12 months. The technology allows subscribers to have at their disposal a full-fledged virtual cluster of computers, available all the time, through the internet.

database cofiguration

 sudo apt-get install software-properties-common
 sudo apt-get install postgresql-client
 sudo apt-get update


 username: apssdc
 host:awscloud.cgsmzwe95pul.us-west-2.rds.amazonaws.com 
 password:apssdc123
 dbname:test

  
 to connect to remoto database

 sudo psql -U apssdc -h awsakash.cgsmzwe95pul.us-west-2.rds.amazonaws.com -p 5432 postgres


 CREATE SCHEMA apssdc;

 CREATE TABLE apssdc.student
(
  myname character varying,
  fathername character varying,
  mobileno character varying,
  email character varying,
  gender character varying,
  address character varying
);


INSERT INTO apssdc.student( myname , email ) values('akash','test@gmail.com');

application configuration

installing java in ubuntu

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
java -version


installing tomcat in ubuntu

sudo wget http://www-eu.apache.org/dist/tomcat/tomcat-7/v7.0.82/bin/apache-tomcat-7.0.81.tar.gz
sudo tar xvzf apache-tomcat-7.0.82.tar.gz
sudo mv apache-tomcat-7.0.82 /opt/tomcat
sudo chmod -R 777 /opt/tomcat/ 

configuring jndi in tomcat server

in the context.xml add the below line in the <context> tag

<ResourceLink name="jdbc/amdds" global="jdbc/amdds" type="javax.sql.DataSource" />

in server.xml add the below lines inside <GlobalNamingResources>  before ending tag

<Resource name="jdbc/amdds" 
  auth="Container" 
  description="Workshop Database Connection" 
  driverClass="org.postgresql.Driver" 
  maxPoolSize="3" 
  minPoolSize="1"
  user="apssdc"
  password="apssdc123" 
  acquireIncrement="1"
  factory="org.apache.naming.factory.BeanFactory" 
  type="com.mchange.v2.c3p0.ComboPooledDataSource" 
  jdbcUrl="jdbc:postgresql://awscloud.cgsmzwe95pul.us-west-2.rds.amazonaws.com/postgres" />


s3 configuration

{ "Version": "2008-10-17", "Statement": [ { "Sid": "AllowPublicRead", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "*", "Resource": "arn:aws:s3:::bucket-name/music/*" } ] }

download url's


https://drive.google.com/open?id=0Bzj3vvEZFiOXUlBWR0xUQlZoZ2s
https://drive.google.com/open?id=0Bzj3vvEZFiOXZWMwNW45VzRsLVk
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

This Is The Newest Post