Dynamically deploy applications to AWS Elastic Beanstalk. This Op also streamlines connections to the Amazon Relational Database Service (RDS) for use with deployed applications.
To run this or any other Op, install the Ops Platform.
Find information about how to run and build Ops via the Ops Platform Documentation.
This Op also requires AWS credentials to work with your account. It also requires the GitHub username and the GitHub repository name of the repository for deployment. It may require a GitHub access token if the repository is private. Here's what you'll need before running this Op the first time:
- AWS Access Key Id: via the AWS Management Console:
AWS Management Console
->Security Credentials
->Access Keys
- AWS Access Key Secret: via the AWS Management Console:
AWS Management Console
->Security Credentials
->Access Keys
- AWS IAM Elastic Beanstalk Permissions via AWS Management Console:
AWS Management Console
->Services
->IAM
- Github Access Token GitHub
- Github Username GitHub
- Github Repository Name GitHub
This Op can create and connect RDS database instances to your application. If this is desired, the user will need to provide or create the following information:
- RDS Database Instance Name
- RDS Database Master Username
- RDS Database Master Password
When connecting a RDS database to your application, this Op will create a directory and a file containing your database access information (.ebextensions/rds_env
) within your application before the deployment. This step can be skipped, however you may be required to connect your application to the RDS instance on your own.
To start this Op prompt run:
ops run @cto.ai/beanstalk
Example applications that can be deployed with this Op:
1. Clone the repo:
git clone <git url>
2. Install dependencies:
go get -u ./...
3. Run the Op from your current working directory with:
ops run .
Edmond Lee |