This template is deprecated. We recommend using AWS Quickstarts for JFrog for EC2, ECS, or EKS. You can also use the CloudFormation temaplates created for QuickStarts as a foundation for your own.
-
Go to AWS Console and select CloudFormation. and click Create Stack. The following page is displayed.
-
Upload the Artifactory-enterprise.json file which is the Artifactory Enterprise template and click Next.
-
Provide the following required information: Stack name, DBAllocatedStorage, DBInstanceClass, DBName, DBPassword, DBUser, InstanceType, InstanceStorage, MasterKey, ArtifactoryVersion, KeyName, ArtifactoryLicense1-5, MultiAZDatabase, SSHLocation, Certificate, CertificateKey, SecondaryNodeCount, and ExtraJavaOptions.
-
Click Next.
-
Select the check box to allow CloudFormation to create an IAM user for Artifactory to access S3 bucket.
Once the stack in deployed, you will see the Artifactory Load Balancer URL in the output . It takes between 7 to 10 minutes for Artifactory to start and attach the instance to ELB.
-
Verify that Artifactory is running in High Availability mode. In the Artifactory UI, navigate to to Admin> High Availability.
-
Now let's add two more nodes to the Artifactory Enterprise cluster. Go to CloudFormation UI in AWS console and select the newly deployed Artifactory Enterprise Stack.
-
Increase the SecondaryNodeCount from 0 to 2 and then update the stack.
-
View the three nodes in the High Availability table in the Artifactory UI as part of Enterprise cluster.
- This template only supports Artifactory version 5.8.x and above.
- Turn off daily backups. Read the Documentation. Note: In this template as default S3 is default filestore and data is persisted in S3. If you keep daily backups on disk space (default 250Gb) will get occupied quickly.
- Use an SSL Certificate with a valid wild card to use Artifactory as a Docker registry using the subdomain method.
Prerequisite:
- SSL certificate.
considering you have SSL certificate for *.jfrog.team
- Pass your SSL Certificate in the
Certificate
parameter as string - Pass your SSL Certificate Key in the
CertificateKey
parameter as string - Set
CertificateDomain
asjfrog.team
- If you want to access artifactory with
https://artifactory.jfrog.team
. SetArtifactoryServerName
asartifactory
Create DNS for example Route53 with entryartifactory.jfrog.team
pointing to ELB value provided as output in CloudFormation Stack. - Create DNS for example Route53 with entry
*.jfrog.team
pointing to ELB value provided as output in CloudFormation Stack. - If you have virtual docker registry with name
docker-virtual
in artifactory. You can access it viadocker-virtual.jfrog.team
e.gdocker pull docker-virtual.jfrog.team/nginx
-
Go to the AWS Console and select the CloudFormation Artifactory Stack you want to upgrade.
-
Click Update Stack.
-
Change the Artifactory version in the parameters from old version to version you want to deploy. For example: From. 5.8.1 to 5.8.2
-
You will see the instances upgraded one by one. Depending on your cluster size it can take between 20-30 minutes to update the stack.