Tags » Amazon Aws

How to Stop and Start Amazon EC2 at scheduled

Hi in my case for save money I diside to stop ec2 not working hours and start working at hours. For Stop and Start EC2 i use Stop AWS data pipeline

Amazon AWS

AWS Api Gateway: Java Client Example

This is a sample of Java Client for AWS Api Gateway.



package com.test.client;
import com.amazonaws.opensdk.config.ConnectionConfiguration;
import com.amazonaws.opensdk.config.ProxyConfiguration;
import com.amazonaws.opensdk.config.TimeoutConfiguration;
import com.test.SampleSDK;
import com.test.model.SampleServiceRequest;
import com.test.model.SampleServiceResult;
public class TestClient {
       
       SampleSDK sdk;
       
       
       public TestClient() {
              initSdk();
              }
       
       
       private void initSdk() {
              
              ProxyConfiguration proxy = new ProxyConfiguration(); //optional
              proxy.setProxyHost("x.x.x.x"); //optional
              proxy.setProxyPort(portno);         //optional
              
              sdk = SampleSDK.builder()
              .connectionConfiguration(
              new ConnectionConfiguration()
              .maxConnections(100)
              .connectionMaxIdleMillis(1000))
              .timeoutConfiguration(
              new TimeoutConfiguration()
              .httpRequestTimeout(3000)
              .totalExecutionTimeout(10000)
              .socketTimeout(2000))
              .proxyConfiguration(proxy)
              .build();
              }
       public static void main(String[] args) {
                     
              TestClient testClient = new TestClient();
              
               SampleServiceResult result =testClient.getResult();
              
              
               System.out.print("result is:"+result.getSampleResponse().getGreetings());
              
       }
       
       public  SampleServiceResult getResult()
       {
              
              SampleServiceRequest rq = new SampleServiceRequest();   
                          
              SampleServiceResult result = sdk.getSampleJavaLambda(rq);
              
              return  result;
              
       }     
       
              
}

 
Amazon AWS

Install ssl certificate on apache server in ubuntu 16.04

Install Apache2
sudo apt-get install apache2
Enable SSL Module
sudo a2enmod ssl
Apply SSL Module to Site
sudo a2ensite default-ssl
sudo /etc/init.d/apache2 restart

Add your certificates in default-ssl.conf in /etc/apache2/sites-available… 57 more words

Apache

Amazon AWS Training & Certification | Online & Classroom Mode | scmGalaxy

Amazon Web Services is a secure cloud services platform, offering compute power, database storage, content delivery and other functionality to help businesses scale. AWS certification training helps you scale your cloud skills and gain expertise in AWS platform. 273 more words

DevOps