Please make sure that you have followed all of the steps laid out in the AWS Setup document before proceeding.
- Go to the Beanstalk Service in the AWS console
- Select
Create New Application
- Give it a name and description (e.g. DuraCloud Management Console)
- Click
Create web server
- Select
Tomcat
platform,Tomcat 8.5 with Corretto 11 running on 64bit Amazon Linux 2
platform branch and4.1.7
version - Select the
Sample application
(it will be replaced by DuraCloud apps in a later step), and keep the default deployment preferences - Take defaults for environment name and URL (or update them if you'd prefer.) The environment URL must be unique.
- Leave additional resources unchecked
- Click on
Configure more options
- Under
Presets
click high availability - Edit
VPC
section and select your VPC and subnets and click save - Edit
Load Balancer
select application load balancer. Add a listener with https, port 443 and your *. certificate. Edit the default process and change the health check path to/login
- Edit
Manage Updates
disable managed updates. - Click "Edit" in the
Software
section and select Apache under Container Options and enter the following Environmental Variables:- key: S3_CONFIG_BUCKET
- value:
<your-s3-config-bucket>
- key: AWS_REGION
- value:
<your-aws-region>
(make sure to use a valid EC2 region code)
- value:
- key: S3_CONFIG_BUCKET
- Edit
Capacity
0. selectLoad balanced
Environment type 0.min
instances to2
0.max
instances to5
0.m5.large
instance type 0.scaling cooldown
to360
. 0. Scaling Triggers: *Metric
:CPUUtilization
*Statistic
:Average
*Unit
:Percent
*Period
:1
*Breach Duration
:5
*Upper threshold
:70
*Scale up Increment
:1
*Lower threshold
:20
*Scale-down increment
:-1
- Edit
Notifications
, enter an email address - Edit
Security
, set your keypair and IAM instance profile - Edit
Monitoring
- Enable
Ignore application 4xx
- Enable
Ignore load balancer 4xx
- Enable
- Click
Create Environment
- Navigate to
Configuration -> Software
and set the followiwng:- jvm command line params:
-Dduracloud.home=/tmp/duracloud-home -Dmc.config.file=s3://<your-s3-config-bucket>/path-to-duracloud-properties-file
- jvm command line params:
You are now ready to deploy the DuraCloud beanstalk zip. You can do so by following the instruction in "Deploy to Production" detailed in this document.
- Build the latest tagged release of the management-console
git clone https://github.com/duracloud/management-console.git cd management-console mvn clean install -DskipTests -DskipIntTests -DskipDeploy
- Upload the account-management-app/target/ama-.war to Beanstalk (Application Versions).
- Create a user by clicking on the new user link on the management console login page.
- Make the newly created user a root user by logging directly into the duracloud_accounts database and runing
the following command:
update duracloud_user set root = true;
- Login into the management console.
- Click on
Root Console
in the upper right hand corner of window. - Click on
DuraCloud Mill
tab. - Enter the requested mill database fields.
- Enter "auditlogs" for the Audit Log Space Id
- In a separate window, log into the aws console and navigate to SQS. Note the name of the queue ending in "_audit" and enter that into the DuraCloud Mill form you were just working on.
- Click
Ok
- Click on the
Global Properties
tab. - In a separate tab go into the AWS SNS console, copy the topic ARN for the
duracloud-account-topic
for the topic your created in the SNS step in the AWS Setup document, and paste into theInstance Notification Topic ARN
field. - Retrieve your CloudFront account id, the access key id and s3 path to your CloudFront key. These values you set aside in the CloudFront Key generation step in the AWS setup document and plug them into their respecitive fields in the form.
- Now you are ready to start creating accounts. The first account you create should be the account that will be used to store and access your auditlogs and duplication-policy-repo, as noted in the instructions for the (duplication-policy-editor](mill-setup.md#deploy-the-duplication-policy-editor)