AWS Elastic Beanstalk 開発者ガイド API Version 2010-12-01 AWS Elastic Beanstalk 開発者ガイド

Total Page:16

File Type:pdf, Size:1020Kb

AWS Elastic Beanstalk 開発者ガイド API Version 2010-12-01 AWS Elastic Beanstalk 開発者ガイド AWS Elastic Beanstalk 開発者ガイド API Version 2010-12-01 AWS Elastic Beanstalk 開発者ガイド アマゾン ウェブ サービス AWS Elastic Beanstalk 開発者ガイド AWS Elastic Beanstalk: 開発者ガイド アマゾン ウェブ サービス Copyright © 2013 Amazon Web Services, Inc. and/or its affiliates. All rights reserved. The following are trademarks of Amazon Web Services, Inc.: Amazon, Amazon Web Services Design, AWS, Amazon CloudFront, Cloudfront, Amazon DevPay, DynamoDB, ElastiCache, Amazon EC2, Amazon Elastic Compute Cloud, Amazon Glacier, Kindle, Kindle Fire, AWS Marketplace Design, Mechanical Turk, Amazon Redshift, Amazon Route 53, Amazon S3, Amazon VPC. In addition, Amazon.com graphics, logos, page headers, button icons, scripts, and service names are trademarks, or trade dress of Amazon in the U.S. and/or other countries. Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon. AWS Elastic Beanstalk 開発者ガイド AWS Elastic Beanstalk の概要と AWS Elastic Beanstalk が必要な理由 ................................................ 1 入門 ......................................................................................................................................................... 5 手順 ......................................................................................................................................................... 5 AWS Elastic Beanstalk へのアクセス ................................................................................................... 13 次の手順 ................................................................................................................................................ 17 How Does AWS Elastic Beanstalk Work? ............................................................................................. 18 Components .......................................................................................................................................... 18 Architectural Overview .......................................................................................................................... 19 Design Considerations .......................................................................................................................... 20 Where to Go Next ................................................................................................................................. 22 Java ....................................................................................................................................................... 24 Develop, Test, and Deploy .................................................................................................................... 24 Importing Existing Environments into Eclipse ....................................................................................... 32 Using Custom Environment Properties ................................................................................................. 32 Using Amazon RDS and MySQL Connector/J ...................................................................................... 35 Managing Multiple AWS Accounts ........................................................................................................ 38 Viewing Events ..................................................................................................................................... 39 Managing Environments ....................................................................................................................... 40 EC2 Server Instances .................................................................................................................. 41 Elastic Load Balancing ................................................................................................................ 43 Auto Scaling ................................................................................................................................. 46 Notifications ................................................................................................................................. 48 Containers ................................................................................................................................... 49 Listing and Connecting to Server Instances .......................................................................................... 51 Terminating an Environment ................................................................................................................. 52 Tools ..................................................................................................................................................... 52 Resources ............................................................................................................................................. 53 .NET ...................................................................................................................................................... 54 Get Started ............................................................................................................................................ 55 Develop, Test, and Deploy .................................................................................................................... 63 Customizing and Configuring a .NET Environment ............................................................................... 79 Using Amazon RDS ............................................................................................................................. 80 Managing Multiple Accounts ................................................................................................................. 83 Monitoring Application Health ............................................................................................................... 84 Viewing Events ...................................................................................................................................... 86 Managing Environments ....................................................................................................................... 87 EC2 Server Instances .................................................................................................................. 88 Elastic Load Balancing ................................................................................................................ 90 Auto Scaling ................................................................................................................................. 93 Notifications ................................................................................................................................. 95 Containers ................................................................................................................................... 96 Listing and Connecting to Server Instances .......................................................................................... 97 Terminating an Environment ................................................................................................................. 98 Tools ..................................................................................................................................................... 99 AWS SDK for .NET ...................................................................................................................... 99 AWS Toolkit for Visual Studio ...................................................................................................... 99 Deployment Tool ........................................................................................................................ 100 Resources ........................................................................................................................................... 102 Node.js ................................................................................................................................................ 103 Develop, Test, and Deploy .................................................................................................................. 103 Deploying an Express Application ....................................................................................................... 110 Deploying an Express Application with Clustering .............................................................................. 123 Deploying a Geddy Application with Clustering .................................................................................. 135 Customizing and Configuring a Node.js Environment ........................................................................ 148 Using the Console ............................................................................................................................... 149 Using Amazon RDS ............................................................................................................................ 150 Tools ................................................................................................................................................... 153 Resources ........................................................................................................................................... 153 API Version
Recommended publications
  • Getting Started with AWS Deploying a Web Application Getting Started with AWS Deploying a Web Application
    Getting Started with AWS Deploying a Web Application Getting Started with AWS Deploying a Web Application Getting Started with AWS: Deploying a Web Application Copyright © 2014 Amazon Web Services, Inc. and/or its affiliates. All rights reserved. The following are trademarks of Amazon Web Services, Inc.: Amazon, Amazon Web Services Design, AWS, Amazon CloudFront, Cloudfront, Amazon DevPay, DynamoDB, ElastiCache, Amazon EC2, Amazon Elastic Compute Cloud, Amazon Glacier, Kindle, Kindle Fire, AWS Marketplace Design, Mechanical Turk, Amazon Redshift, Amazon Route 53, Amazon S3, Amazon VPC. In addition, Amazon.com graphics, logos, page headers, button icons, scripts, and service names are trademarks, or trade dress of Amazon in the U.S. and/or other countries. Amazon©s trademarks and trade dress may not be used in connection with any product or service that is not Amazon©s, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon. Getting Started with AWS Deploying a Web Application Table of Contents Welcome ..................................................................................................................................... 1 Overview of the Project .................................................................................................................. 2 AWS Elastic Beanstalk ..........................................................................................................
    [Show full text]
  • Web Application Hosting in the AWS Cloud AWS Whitepaper Web Application Hosting in the AWS Cloud AWS Whitepaper
    Web Application Hosting in the AWS Cloud AWS Whitepaper Web Application Hosting in the AWS Cloud AWS Whitepaper Web Application Hosting in the AWS Cloud: AWS Whitepaper Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved. Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon. Web Application Hosting in the AWS Cloud AWS Whitepaper Table of Contents Abstract ............................................................................................................................................ 1 Abstract .................................................................................................................................... 1 An overview of traditional web hosting ................................................................................................ 2 Web application hosting in the cloud using AWS .................................................................................... 3 How AWS can solve common web application hosting issues ........................................................... 3 A cost-effective alternative to oversized fleets needed to handle peaks ..................................... 3 A scalable solution to handling unexpected traffic
    [Show full text]
  • Building Devops on Amazon Web Services (AWS) 2 Building Devops on Amazon Web Services (AWS)
    IBM Global Business Services January 2018 White paper Building DevOps on Amazon Web Services (AWS) 2 Building DevOps on Amazon Web Services (AWS) Abstract IBM defines DevOps as an enterprise capability that enables organizations to seize market opportunities and reduce time to At its core, DevOps makes delivery of applications more customer feedback, and has three main business objectives: efficient. Amazon Web Services (AWS) has the platform and services to recognize a code change and automate delivery of 1. Speeding continuous innovation of ideas by enabling that change from development, through the support collaborative development and testing across the value environments, to production. However, delivery of code is just chain one aspect of DevOps. 2. Enabling continuous delivery of these innovations by automating software delivery processes and eliminating IBM extends the DevOps definition, making it an enterprise waste, while also helping to meet regulatory concerns capability that enables organizations to seize market 3. Providing a feedback loop for continuous learning from opportunities and reduce time to customer feedback. IBM’s customers by monitoring and optimizing software-driven main objectives are speeding continuous innovation of ideas, innovation enabling continuous delivery of those innovations, and providing meaningful feedback for continuous learning, thereby putting all the emphasis on deciding what code to change. IBM extends DevOps to include all stakeholders in an organization who develop, operate or benefit from businesses systems. DevOps enables design thinking, which focuses on user outcomes, restless reinvention, and empowering teams to act. In addition, DevOps enables lean and agile methodologies, which guide teams to deliver in smaller increments and get early feedback.
    [Show full text]
  • Deploying Wordpress with AWS Elastic Beanstalk Implementation Overview for Scalable Wordpress-Powered Websites
    Deploying WordPress with AWS Elastic Beanstalk Implementation Overview for Scalable WordPress-powered Websites Andreas Chatzakis January 2015 (Please consult http://aws.amazon.com/whitepapers for the latest version of this paper.) Contents Contents 2 Abstract 2 Introduction 2 Implementation Walkthrough 3 Preparation 3 Environment Creation 11 Software Installation 21 WordPress Plugin Installation 23 Application Versioning 29 Auto Scaling Configuration 30 Additional considerations 31 Abstract WordPress is an open-source blogging tool and content management system (CMS) based on PHP and MySQL that is used to power anything from personal blogs to high- traffic websites. Amazon Web Services (AWS) provides a reliable, scalable, secure, and highly performing infrastructure for the most demanding applications. A reference architecture that addresses common scalability and high availability requirements has been outlined in the whitepaper, “WordPress: Best Practices on AWS”. To implement that architecture, you can leverage AWS Elastic Beanstalk—a service that reduces complexity by automatically handling the details of capacity provisioning, load balancing, scaling, and application health monitoring. This whitepaper provides system administrators with an overview of the steps involved. Introduction The first version of WordPress was released in 2003, and as such it was not built with modern elastic and scalable cloud-based infrastructures in mind. Through the work of the WordPress community and the release of various WordPress modules, the capabilities of this CMS solution are constantly expanding. Today it is possible to build a WordPress architecture that takes advantage of many of the benefits of the AWS platform. Amazon Web Services provides a number of application management services for developers and administrators.
    [Show full text]
  • Using Amazon Web Services for Disaster Recovery October 2014
    Amazon Web Services – Using AWS for Disaster Recovery October 2014 Using Amazon Web Services for Disaster Recovery October 2014 Glen Robinson, Attila Narin, and Chris Elleman Page 1 of 22 Amazon Web Services – Using AWS for Disaster Recovery October 2014 Contents Introduction ...............................................................................................................................................................3 Recovery Time Objective and Recovery Point Objective ................................................................................................4 Traditional DR Investment Practices ............................................................................................................................4 AWS Services and Features Essential for Disaster Recovery ...........................................................................................5 Example Disaster Recovery Scenarios with AWS ...........................................................................................................9 Backup and Restore ................................................................................................................................................9 Pilot Light for Quick Recovery into AWS ................................................................................................................. 11 Warm Standby Solution in AWS ............................................................................................................................. 14 Multi-Site Solution Deployed
    [Show full text]
  • Getting Started on for Airasia Airvolution
    Getting Started on for AirAsia Airvolution This document has links to Tutorials, Videos and Hands-on Labs that would serve as a good starting point for Hackathon preparation. Feel free to explore online resources beyond this document, as the website is updated regularly. Topics: 1. Getting Started – Creating AWS Account and Navigating the Console 2. Building IoT Solutions with AWS IoT 3. Building a Web Application on AWS Elastic Beanstalk 4. Analyze, Process and Visualize large datasets using AWS Analytics toolsets 5. Artificial Intelligence with Amazon AI services 6. Appendix © 2016, Amazon Web Services, Inc. or its affiliates. All rights reserved. 1 1. Getting Started – Creating AWS Account and Navigating the Console • Creating a free tier account: https://aws.amazon.com/free/ o The AWS Free Tier enables you to gain free, hands-on experience with the AWS platform, products, and services for 12 months. For more details, refer to https://aws.amazon.com/s/dm/optimization/server-side-test/free-tier/free_np/ • Using the AWS Management Console: http://docs.aws.amazon.com/awsconsolehelpdocs/latest/gsg/getting-started.html © 2016, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2 2. Building IoT Solutions with AWS IoT AWS IoT provides secure, bi-directional communication between Internet-connected things (such as sensors, actuators, embedded devices, or smart appliances) and the AWS cloud. This enables you to collect telemetry data from multiple devices and store and analyze the data. You can also create applications that enable your users to control these devices from their phones or tablets. Getting Started with AWS IoT Tutorial: This tutorial shows you how to create resources required to send, receive, and process MQTT messages from devices using AWS IoT.
    [Show full text]
  • Discovering the Hidden Users of Scratch Samarth Mohan
    Discovering the Hidden Users of Scratch by Samarth Mohan Submitted to the Department of Electrical Engineering and Computer Science in partial fulfillment of the requirements for the degree of Master of Engineering in Computer Science and Engineering at the MASSACHUSETTS INSTITUTE OF TECHNOLOGY June 2018 © Massachusetts Institute of Technology 2018. All rights reserved. Author................................................................ Department of Electrical Engineering and Computer Science May 22, 2018 Certified by. Andrew Sliwinski Research Scientist Thesis Supervisor Certified by. Mitchel Resnick LEGO Papert Professor of Learning Research Thesis Supervisor Accepted by . Katrina LaCurts Chair, Master of Engineering Thesis Committee Discovering the Hidden Users of Scratch by Samarth Mohan Submitted to the Department of Electrical Engineering and Computer Science on May 22, 2018, in partial fulfillment of the requirements for the degree of Master of Engineering in Computer Science and Engineering Abstract Usage statistics (“telemetry data”) have become an essential tool for understanding how complex systems are used and how to improve them. However, many of these systems are deployed in areas with limited internet connectivity which hampers the ability to collect telemetry data. In this thesis, we describe a telemetry data collection system built for the Scratch programming language to collect usage data regarding how Scratch is being used in areas with poor internet connections. We develop the system to allow users to opt-in to sharing their usage and project data with the Scratch research team at the MIT Media Lab. The data is stored locally on the user's machine until it is ready to be transmitted. Once network conditions are appropriate, the packets are transmitted to a server which verifies the contents of the packet and stores it in a data storage cluster.
    [Show full text]
  • San Mateo County Community College District
    SAN MATEO COUNTY COMMUNITY COLLEGE DISTRICT AGENDA FOR THE REGULAR MEETING OF THE BOARD OF TRUSTEES December 12, 2018 Closed Session at 5:00 p.m.; Open Meeting at 6:00 p.m. District Office Board Room, 3401 CSM Drive San Mateo, CA 94402 NOTICE ABOUT PUBLIC PARTICIPATION AT BOARD MEETINGS The Board welcomes public discussion. • The public’s comments on agenda items will be taken at the time the item is discussed by the Board. • To comment on items not on the agenda, a member of the public may address the Board under “Statements from the Public on Non-Agenda Items;” at this time, there can be discussion on any matter related to the Colleges or the District, except for personnel items. No more than 20 minutes will be allocated for this section of the agenda. No Board response will be made nor is Board action permitted on matters presented under this agenda topic. • If a member of the public wishes to present a proposal to be included on a future Board agenda, arrangements should be made through the Chancellor’s Office at least seven days in advance of the meeting. These matters will be heard under the agenda item “Presentations to the Board by Persons or Delegations.” A member of the public may also write to the Board regarding District business; letters can be addressed to 3401 CSM Drive, San Mateo, CA 94402. • Persons with disabilities who require auxiliary aids or services will be provided such aids with a three day notice. For further information, contact the Executive Assistant to the Board at (650) 358-6753.
    [Show full text]
  • Cloud Native Patterns Design Change-Tolerant Software Chapters Chosen by Cornelia Davis
    Cloud Native Patterns Design change-tolerant software Chapters chosen by Cornelia Davis Manning Author Picks Copyright 2020 Manning Publications To pre-order or learn more about these books go to www.manning.com For online information and ordering of these and other Manning books, please visit www.manning.com. The publisher offers discounts on these books when ordered in quantity. For more information, please contact Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 761 Shelter Island, NY 11964 Email: Erin Twohey, [email protected] ©2020 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine. Manning Publications Co. 20 Baldwin Road Technical
    [Show full text]
  • Next Stop, the Cloud: Understanding Modern Web Service Deployment in EC2 and Azure
    Next Stop, the Cloud: Understanding Modern Web Service Deployment in EC2 and Azure Keqiang He, Alexis Fisher, Liang Wang, Aaron Gember, Aditya Akella, Thomas Ristenpart University of Wisconsin – Madison {keqhe,afisher,liangw,agember,akella,rist}@cs.wisc.edu ABSTRACT Despite the popularity of public IaaS clouds, we are unaware of An increasingly large fraction of Internet services are hosted on a any in-depth measurement study exploring the current usage pat- cloud computing system such as Amazon EC2 or Windows Azure. terns of these environments. Prior measurement studies have quan- But to date, no in-depth studies about cloud usage by Internet ser- tified the compute, storage, and network performance these clouds vices has been performed. We provide a detailed measurement deliver [29, 30], evaluated the performance and usage patterns of study to shed light on how modern web service deployments use specific services that are hosted in these clouds, e.g., Dropbox [23], the cloud and to identify ways in which cloud-using services might or examined cloud usage solely in terms of traffic volume [28]. improve these deployments. Our results show that: 4% of the We present the first in-depth empirical study of modern IaaS Alexa top million use EC2/Azure; there exist several common de- clouds that examines IaaS cloud usage patterns and identifies ways ployment patterns for cloud-using web service front ends; and ser- in which cloud tenants could better leverage IaaS clouds. We focus vices can significantly improve their wide-area performance and specifically on web services hosted within IaaS clouds, which our failure tolerance by making better use of existing regional diversity study (unsurprisingly) indicates is a large and important use case in EC2.
    [Show full text]
  • The 3 Critical Monitoring Tools for Hybrid Cloud Applications a Best-Practices Guide for Monitoring Business-Critical, Hybrid Apps on AWS
    The 3 Critical Monitoring Tools for Hybrid Cloud Applications A best-practices guide for monitoring business-critical, hybrid apps on AWS Application Performance Monitoring appdynamics.com Giving end users a high-quality experience is critical for today’s businesses: internal and external users alike demand high-performing, low-latency Introduction: applications. Your ability to meet this demand hinges on your monitoring approach. That’s why you need a solution that can effectively monitor and promote the health and performance of your applications as well as the infrastructure that supports them—as you run them in a hybrid cloud. This can be difficult when leveraging legacy, on-premises monitoring solutions. That’s because many organizations leverage numerous monitoring tools on-premises, each to support a small fraction of their overall architecture. If these tools don’t speak to one another, it becomes difficult to pinpoint the root-cause(s) of issues and correlate the issues to the user’s experience. Furthermore, these solutions are not optimized for hybrid clouds, and will have a hard time solving performance and health issues in these environments. This eBook details a monitoring approach that helps you overcome these challenges when running applications on a hybrid cloud with Amazon Web Services (AWS). Made up of three key technologies, enterprises can gain robust visibility across their complex hybrid environments to ensure that applications are healthy, performant, and have a positive impact on the business. First, let’s take a closer look at traditional, on-premises monitoring solutions and the challenges they create. Introduction 2 Introduction: EXISTING ON-PREMISES MONITORING APPROACHES Prior to moving any application to AWS, many enterprises monitor their While these solutions cover a lot of ground, using this many applications on-premises using a piecemeal approach, often needing tools at once can create operational complexity, as it is difficult 10+ monitoring solutions to gain comprehensive visibility.
    [Show full text]
  • Modernizing with AWS: Getting Started with ‘ Observability-Driven ’ Replatforming
    White Paper Modernizing with AWS: Getting Started with ‘ Observability-Driven ’ Replatforming Part 2 of our 3-part series on legacy app modernization in the cloud Modernizing with AWS: Getting Started with ‘ Observability-Driven ’ Replatforming Introduction Fundamentally, organizations modernize existing applications by moving them to Amazon Web Services (AWS) in order to optimize everything from performance to reliability to customer experience and more. For the business, the goals and measurable outcomes are typically some combination of the following: • Improve the customer experience with better reliability and performance • Reduce operational cost and effort • Accelerate time-to-market for new features • Develop and enhance technical and business agility While modernizing existing applications can take several different forms, this white paper focuses on the replatforming approach, also known as component modernization. For an intro- duction to the six approaches to application modernization on AWS (retire, repurchase, retain, rehost, replatform, and refactor), read our ebook “The Enterprise Guide to Continuous Applica- tion Modernization.” While rehosting involves moving an existing application to AWS without making changes to the business logic, replatforming requires something more—namely, optimizing the application by modernizing one or more of its components. Components are essentially an endpoint, some- thing that the application interacts with via a standardized API, such as a web server, relational database, or messaging
    [Show full text]