Ready for review
Convert the XWiki Installation on AWS documentation into the new tree
Converts XWiki Installation on AWS and its two children, Deployment Using Cloudformation Template and Deployment Using CDK Code, into a single page, XWiki on AWS, placed under Unofficial Installation Methods, which already frames AWS correctly as community-contributed and possibly out of date.
One Explanation, and no step-by-step. Both published procedures were checked against their sources and neither deploys as published:
- The CloudFormation template builds its database as an Aurora Serverless v1 cluster. AWS stopped allowing new Serverless v1 clusters to be created on 8 January 2025 and ended the offering on 31 March 2025, so stack creation fails. The engine version it pins, 5.7.mysql_aurora.2.07.1, is out of support as well: Aurora MySQL 2 reached end of standard support on 31 October 2024 and RDS Extended Support covers only its 2.11 and 2.12 minor versions, so raising it is not the fix either.
- The CDK project depends on AWS CDK version 1, which reached end of support on 1 June 2023, and calls constructs that version 2 renamed or removed.
- Both xwiki-contrib repositories have been dormant since 2021.
The new page therefore keeps what is XWiki-specific and still true (the architecture both routes build, the image tag to choose, the IAM stance, the region guidance, the two repositories) and states that current state plainly, instead of publishing instructions that are measured to fail.
Five legacy statements were wrong and are corrected rather than carried over:
- The two deployment routes do not build different things, as the legacy page claimed: both provision the same architecture.
- The list of AWS services named EC2 and Route 53. Neither definition creates either, there is no instance to reach over SSH, and no DNS record is created for you.
- The required-permissions section named IAM policies that do not exist. The page now names the services the deploying principal has to be able to create resources in.
- "Use the root user", stated on three of the legacy pages, contradicts AWS's own guidance and is replaced by that permission statement.
- The Docker image tag was misnamed and its link dead. Tag naming now defers to XWiki on Docker rather than being restated here.
Dropped as obsolete: the AWS platform material copied into xwiki.org (the regions and availability zones concepts, the Infrastructure as Code definition, the term glossary, the additional-resources links), the AMI and AWS Marketplace sections left over from an earlier design that neither deployment uses, the 2021 console click-steps, the CDK v1 code snippets, and a quota troubleshooting note whose only reference is a 404. The quota fact itself survives as a prerequisite, since an increase can take days.
Illustration: the three legacy pages carried 13 attachments, every one a screenshot of the 2021 AWS console or of CDK v1 terminal output, illustrating steps the new page does not have, and three of them were already referenced by no page. They are dropped, and deleted separately once this Change Request is merged, because a Change Request cannot carry an attachment deletion and deleting them earlier would break the legacy pages while they are still live. The new page is illustrated by a PlantUML diagram of the deployed architecture, which the legacy pages never had.
Legacy pages: all three keep every heading, verbatim, at its original level and in its original order, each with a pointer to the new page, so bookmarked anchors still resolve. The only page outside that subtree linking into it is unofficial-methods, whose three nested list lines are collapsed into one link. Installation Methods does not link to AWS and is deliberately left untouched, because the open Debian/Ubuntu conversion changes that same document.
-
Eleni Cojocariu added a new change for XWiki on AWS
1 week ago
-
Eleni Cojocariu added a new change for Deployment Using CloudFormation Template
1 week ago
-
Eleni Cojocariu edited the description or the title of the Change Request
1 week ago
All changes
Summary
-
Page properties (3 modified, 0 added, 0 removed)
-
Objects (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki on AWS - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. XWikiGuest1 +XWiki.elenicojocariu - Default language
-
... ... @@ -1,0 +1,1 @@ 1 +en - Content
-
... ... @@ -1,0 +1,96 @@ 1 +The deployment of XWiki on [[Amazon Web Services>>https://aws.amazon.com/]] is contributed by the community. It is not built, released or validated by the XWiki Development Team, and it is not one of the [[supported installation methods>>doc:documentation.xs.admin.installation.methods.WebHome]]. 2 + 3 +Two repositories in the ##xwiki-contrib## organisation describe the same infrastructure in two ways: a CloudFormation template that you upload in the AWS console, and AWS CDK code written in TypeScript that you deploy from a command line. Both end with XWiki running as a container behind a load balancer, reachable at the DNS name the stack returns. 4 + 5 +{{warning}} 6 +Neither repository has been updated since 2021, and neither deploys as published. Read "The state of the published definitions" below before you start. 7 +{{/warning}} 8 + 9 +== What the deployment builds == 10 + 11 +Both definitions provision the same architecture, in a virtual private cloud of its own spread over two availability zones. 12 + 13 +{{plantuml}} 14 +@startuml 15 +!theme bluegray 16 +skinparam componentStyle rectangle 17 +skinparam nodesep 25 18 +skinparam ranksep 40 19 + 20 +actor "Reader" as R 21 + 22 +rectangle "Public subnets" as PUB { 23 + component "Application\nLoad Balancer" as ALB 24 + component "NAT gateway" as NAT 25 +} 26 + 27 +rectangle "Private subnets" as PRIV { 28 + component "ECS Fargate service\nofficial XWiki image" as ECS 29 + database "Aurora MySQL" as DB 30 + storage "EFS\npermanent directory" as EFS 31 +} 32 + 33 +R --> ALB : HTTP, at the DNS name\nthe stack returns 34 +ALB --> ECS 35 +ECS --> DB 36 +ECS --> EFS 37 +ECS --> NAT : outbound traffic 38 +@enduml 39 +{{/plantuml}} 40 + 41 +* A VPC with one public and one private subnet in each of two availability zones. 42 +* One NAT gateway in a public subnet, giving the private subnets outbound access. 43 +* An Application Load Balancer in the public subnets, whose DNS name is how you reach the wiki. It listens on HTTP port 80 only. 44 +* An ECS Fargate service in the private subnets, running the official XWiki Docker image. 45 +* An Amazon EFS file system holding XWiki's permanent directory, so that data survives the replacement of a container, with automatic backups enabled. 46 +* An Aurora Serverless v1 MySQL cluster for the wiki database, scaling between one and eight capacity units and keeping seven days of backups. 47 +* Two KMS keys with automatic rotation: one encrypting the file system and the database storage, the other the database credentials, which are held in Secrets Manager. 48 +* An IAM role granting the running service only the access it needs. 49 + 50 +Nothing in the stack is a machine you log into. There is no EC2 instance to reach over SSH, and no DNS record is created for you, so pointing your own domain at the load balancer is yours to do. 51 + 52 +The two availability zones hold the data, not a second copy of the running wiki: one Fargate task and one database writer serve it, so replacing a container is a brief outage. 53 + 54 +Deleting the stack does not delete the wiki's data. The file system is retained and the database cluster leaves a final snapshot, and both keep costing until you remove them yourself. 55 + 56 +== The state of the published definitions == 57 + 58 +Both repositories were last changed in 2021 and have had no maintenance since. As published: 59 + 60 +* The CloudFormation template builds its database as an Aurora Serverless v1 cluster. AWS stopped allowing new Serverless v1 clusters to be created on 8 January 2025 and ended the offering on 31 March 2025, so the stack no longer creates. The engine version it pins, ##5.7.mysql_aurora.2.07.1##, is out of support as well: Aurora MySQL 2 reached end of standard support on 31 October 2024, and RDS Extended Support covers only its 2.11 and 2.12 minor versions. Raising the engine version is therefore not enough on its own. The cluster has to be ported to Aurora Serverless v2, which is configured differently: it needs a ##ServerlessV2ScalingConfiguration## and a database instance of its own, where the template today has neither. 61 +* The CDK code depends on AWS CDK version 1, which reached end of support on 1 June 2023. It calls constructs that version 2 renamed or removed, so it needs porting before ##cdk deploy## will run. 62 + 63 +The XWiki half of the stack is unaffected. The official Docker images it runs are current and are rebuilt with every XWiki release. 64 + 65 +== Choosing between the template and the CDK code == 66 + 67 +The CloudFormation template is the shorter route. You upload a JSON file in the AWS console, name the stack and choose an XWiki image, and nothing has to be installed on your own machine. In exchange, changing what the stack builds means editing the template. 68 + 69 +The CDK code exists so that you can change the configuration before deploying, in TypeScript rather than in JSON. Two files carry the settings most people want: 70 + 71 +* ##xwiki-production-cdk/lib/config.ts## holds the region to deploy into, which defaults to ##eu-central-1##, and the XWiki image tag. 72 +* ##xwiki-production-cdk/lib/stacks/vpc.ts## holds the address range of the VPC, ##10.42.42.0/24##. It is deliberately small, and worth enlarging if you intend to run other services in the same network. 73 + 74 +Both routes take the XWiki version as a tag of the [[official XWiki Docker image>>doc:documentation.xs.admin.installation.methods.install-xwiki-docker.xwiki-docker.WebHome]]. Use ##xwiki:lts-mysql-tomcat## in production and ##xwiki:stable-mysql-tomcat## to follow the current cycle. Any other ##mysql-tomcat## tag also works, although pinning one specific version is not recommended. 75 + 76 +== What you need before deploying == 77 + 78 +* An [[AWS account>>https://aws.amazon.com/]]. You pay for the resources the stack creates for as long as they run, and neither the template nor the CDK code costs anything in itself. 79 +* Room for one more VPC in the target region. The default quota is five per region and can be raised to one hundred, but an increase can take several days to take effect, so check it early. 80 +* For the CDK route only, [[the AWS CDK command line interface>>https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html]] and [[npm>>https://docs.npmjs.com/downloading-and-installing-node-js-and-npm]]. 81 + 82 +Choose the region first, because it is awkward to change afterwards. Pick one close to the people who will use the wiki, to keep latency low. Data you store in a region stays in that region unless you replicate it yourself, which makes the choice a compliance decision as much as a performance one. Not every region offers every service the stack needs. 83 + 84 +== Security and permissions == 85 + 86 +Running XWiki on AWS splits responsibility between you and AWS. AWS operates everything from the host operating system downwards, and you own the wiki, the image it runs and the configuration of the resources the stack creates. The [[AWS shared responsibility model>>https://aws.amazon.com/compliance/shared-responsibility-model/]] sets out where the line falls. 87 + 88 +The stack follows that line with a least privilege IAM role for the running service, and it stores no SSH keys, secret keys or access keys on the resources it creates. The database password is generated into Secrets Manager and encrypted with a KMS key of its own. 89 + 90 +The load balancer is the exception. It listens on plain HTTP and the stack provisions no certificate, so logins and session cookies cross the internet in clear text. Adding a certificate and an HTTPS listener is yours to do before the wiki carries real accounts. 91 + 92 +Deploying the stack is a separate question. It needs a principal able to create resources in every service the stack touches: CloudFormation, VPC networking, EFS, RDS, ECS, Elastic Load Balancing, KMS, Secrets Manager, CloudWatch Logs and IAM roles. Grant that through your own IAM practice rather than deploying as the account root user, which AWS advises against for any routine task. 93 + 94 +== Where the code is == 95 + 96 +The CloudFormation template is in the [[aws-xwiki-cloudformation repository>>https://github.com/xwiki-contrib/aws-xwiki-cloudformation]], and the CDK code in the [[aws repository>>https://github.com/xwiki-contrib/aws]]. Both accept issues and pull requests, and updating them is how this deployment becomes usable again.
- DocApp.Code.DocumentationClass[0]
-
- FAQ
-
... ... @@ -1,0 +1,7 @@ 1 +== Why does stack creation stop with a resource limit error? == 2 + 3 +A quota in the target region has been reached, most often the limit of five VPCs. Request an increase in the Service Quotas console, and allow several days for it to take effect. 4 + 5 +== Why does stack creation report unrecognised resources? == 6 + 7 +The region you chose does not offer every service the stack needs. Deploy into a nearby region that does. - Related
-
... ... @@ -1,0 +1,3 @@ 1 +* [[Install XWiki using Docker>>doc:documentation.xs.admin.installation.methods.install-xwiki-docker.WebHome]] 2 +* [[Installation Methods>>doc:documentation.xs.admin.installation.methods.WebHome]] 3 +* [[Prerequisites>>doc:documentation.xs.admin.installation.prerequisites.WebHome]] - Target
-
... ... @@ -1,0 +1,1 @@ 1 +administrator - Type
-
... ... @@ -1,0 +1,1 @@ 1 +explanation
- DocApp.Code.DocumentationExtensionClass[0]
-
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Sanchita14111 +XWiki.elenicojocariu - Content
-
... ... @@ -2,94 +2,52 @@ 2 2 {{toc/}} 3 3 {{/box}} 4 4 5 +This page has moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]]. 6 + 5 5 = Description = 6 6 7 - Therearetwodifferentwaysofinstalling XWiki onAWS:9 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]], which explains the two deployment routes and when each applies. 8 8 9 -1. Installation using CloudFormation Template (This method is for non-developers who want an easy 1-click installation solution, where you can install your production-ready XWiki in a couple of clicks on AWS). 10 -1. Installation using CDK code (this installation method is also straightforward, but it is specifically for developers as they will be able to tweak the configurations of the system as per their need since the CDK provides a high-level interface where developers can use high-level languages to interact with lower-level Cfn classes). 11 - 12 12 = Overview = 13 13 14 - The computing and storage services from AWSprovide highly-available global computing infrastructureandservicesthatareeasily scalable according to theuser’s needs.AWS simplifies managing infrastructure, storage, anddatabases.With all this, AWSprovides a Pay-as-you-go approach when it comesto pricing.That means you pay for the services you use and for as longas you usewithout any long-term contract. It alsoprovidespay-less-by-using-more,for example,themore storage you require forS3,the lesser youpay per unitper month. Inaddition, datatransfer intoAWS isalwaysfree of charge.With the AWS infrastructure, companies can rapidly provisioncompute capacity, or quickly and flexibly extend existing on-premises infrastructure into the cloud.13 +Dropped. It described Amazon Web Services in general; see [[the AWS documentation>>https://docs.aws.amazon.com/]]. 15 15 16 16 = Cost Of Deployment And Licenses = 17 17 18 - You can choosebetweendifferentversionsofXWikitouse (stable or long-termsupport). You are responsible for the cost incurred for usingAWSresources and servicesto runthe XWiki instance.Thereare no additional charges for usingthe CloudFormationTemplateor CDK code. Thespecific cost ofservices depends on themethodyouareusingandtheregionwhereyouare deployingthe XWiki.17 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]], which states what you pay for. 19 19 20 20 = Terms You Need to Know About = 21 21 22 -**Infrastructure as a code** - Infrastructure as Code (IaC) is the managing and provisioning of infrastructure through code instead of through manual processes in a familiar programming language. With IaC, configuration files are created that contain your infrastructure specifications, which makes it easier to edit and distribute configurations. It also ensures that you provision the same environment every time. 23 -**CloudFormation Template** - A CloudFormation Template is a declaration of the AWS resources that make up a stack. The template is stored as a text file whose format complies with the JavaScript Object Notation (JSON) or YAML standard. It provides an easy way to create a collection of related AWS and third-party resources, and provision and manage them in an orderly and predictable fashion. 24 -**CDK Code** - Similar to cloudformation CDK is a software development framework for defining cloud infrastructure in code in High-level languages. The AWS CDK supports TypeScript, JavaScript, Python, Java, C#/.Net, and Go. Under the hood, it uses CloudFormation to provision resources. We have used Typescript. 25 -**AMI** - An Amazon Machine Image (AMI) is a master image for the creation of virtual servers, known as EC2 instances in the AWS. You can use it to easily configure the EC2 instances easily with the same configuration that the EC2 instance had, which was used to make that AMI. 26 -**AWS Marketplace** - The AWS Marketplace helps enable qualified partners to market and sell their software to AWS customers. AWS Marketplace is an online software store that helps customers find, buy, and immediately start using software and services that run on AWS. 21 +Dropped. These were definitions of AWS's own terms; see [[the AWS documentation>>https://docs.aws.amazon.com/]]. 27 27 28 -The machine images are like templates that are configured with an operating system and other software that determine the user's operating environment. 29 - 30 30 = AWS Services used = 31 31 32 -The core AWS components that will be used for this project are the following services. This is just to give you a brief idea about the services and their use. for details you can refer to AWS official documentation. For further help, few links are provided in the Additional Resources section of this page. 33 -**Amazon EC2** – The Amazon Elastic Compute Cloud (Amazon EC2) service enables you to launch virtual machine instances with a variety of operating systems. You can choose from existing Amazon Machine Images (AMIs) or import your own virtual machine images. 34 -**Amazon EFS** - Amazon Elastic File System (Amazon EFS) provides simple, scalable file storage for use with Amazon EC2 instances in the AWS Cloud. With Amazon EFS, you can create a file system, mount the file system on your EC2 instances, and then read and write data from your EC2 instances to and from your file system. 35 -**Amazon RDS** – Amazon Relational Database Service (Amazon RDS) makes it easy to set up, operate, and scale a relational database such as Amazon Aurora or Amazon RDS MySQL in the cloud. With Amazon RDS, you can deploy scalable Amazon Aurora or Amazon RDS MySQL software in minutes with cost-efficient and resizable hardware capacity. 36 -**Amazon VPC** – The Amazon Virtual Private Cloud (Amazon VPC) service lets you provision a private, isolated section of the AWS Cloud where you can launch AWS services and other resources in a virtual network that you define. You have complete control over your virtual networking environment, including a selection of your own IP address range, creation of subnets, and configuration of route tables and network gateways. 37 -**Elastic Load Balancing** – Elastic Load Balancing (ELB) automatically distributes incoming application traffic across multiple Amazon EC2 instances. It detects unhealthy instances and reroutes traffic to healthy instances until the unhealthy instances have been restored. ELB automatically scales its request handling capacity in response to incoming traffic. 38 -**AWS IAM** – AWS Identity and Access Management (IAM) enables you to securely control access to AWS services and resources for your users. With IAM, you can manage users, security credentials such as access keys, and permissions that control which AWS resources users can access, from a central location. 39 -**Amazon Route 53** - Amazon Route 53 is a highly available and scalable cloud Domain Name System (DNS) web service. It is designed to give developers and businesses an extremely reliable and cost-effective way to route end users to internet applications by translating names like www.domain.com into numeric IP addresses like 134.65.89.54 that computers use to connect to one other. Amazon Route 53 is fully compliant with IPv6 40 -**AWS CDK** - AWS CDK or Cloud Development Kit is used in order to provision resources inside an AWS Account without the hassle of creating them manually and helps to lock down on configurations required for provisioning those resources so as to maintain consistency across various stages and installs. With CDK we can write infrastructure as code in languages like typescript, python, java, NET. CDK code when built gives us CloudFormation Templates which are then used for rendering/provisioning various resources in an AWS Account. 25 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]], which lists the services the deployment actually creates. 41 41 42 42 = Regions And Availability Zones = 43 43 44 -Before we begin with the Deployment steps, let’s familiarize ourselves with the basics of regions and availability zones in AWS. 45 -AWS regions are geographic locations across the world. Currently, there are 25 AWS regions in the world (as of July 2021). Every region consists of two or more clusters of data centers known as availability zones. While deploying AWS services in the AWS account you can choose the region to deploy the services in. Every region has a name and a corresponding code to represent it, for example, the code for the N. Virginia region is us-east-1, for the Mumbai region is ap-south-1, etc. When you store data in a specific region, it is not replicated outside that region. It is your responsibility to replicate data across regions if your business requires that. AWS provides information about the country, and, where applicable, the state where each region resides; you are responsible for selecting the region to store data, taking into consideration your compliance and network latency requirements. 46 -Different availability zones within a region are generally built on different flood plains and the power supply to these AZs are from the different power lines. The reason for this is if one AZ goes down due to some factor. We will have the other AZ in the region ready for usage. All availability zones within a region are the same for practical purposes. 29 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]] for choosing a region; the AWS concepts themselves are in [[the AWS documentation>>https://docs.aws.amazon.com/]]. 47 47 48 48 = Which Deployment Method You Choose = 49 49 50 - As mentioned abovewe provideyou with twodifferent ways to installXWiki.The endproductof eachmethodwill be XWiki installed using AWS resources.But the Architectureand hencethe cost incurredaredifferent.33 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]]. 51 51 52 52 == Deployment Using CloudFormation Template == 53 53 54 - AWS CloudFormationisan easy way tomodel a collectionof relatedAWSandthird-party resources, provision them quickly and consistently, andmanagethem throughout their lifecycles, by treating infrastructureas code. A CloudFormationtemplate describes desired resourcesandtheir dependencies so you canlaunch and configure them together asa stack. This method requires almost zero technicalknowledge,and you can install your XWiki in a few clicks by usingonly the AWS console.The AWS CloudFormation Template bootstraps the AWS infrastructure and automates thedeployment of XWiki fromscratch.The only thing you'llneed tochoosefrom will be the version ofXWikithat you want to deploy. This is the easiestmethodand we recommend you to use this if you want quick deployment.You can do the installation using AWS Console only and youwon’t need to use the command line if you’ll use the CloudFormation Template.Follow the step-by-step guide [[Deployment Using CloudFormation Template>>doc:.Deployment Using Cloudformation Template.WebHome]]the deploy your own XWiki instance on AWS37 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]]. 55 55 56 56 == Deployment Using CDK Code == 57 57 58 - The AWS Cloud DevelopmentKit(AWS CDK)is an open-source software development frameworkto definecloud applicationresources using familiar programming languages. The second method usesAWSCDK todeploy XWiki. The architecture ismoreor less the same as we will deploy usingthe first method(i.e. cloudformationtemplate).The main reason for providing CDK code is if you want to tweak the configuration according to you, you can do it better as CDK uses high-level language, unlike cloudformation.You'll need [[CLIinstalledand configured>>https://docs.aws.amazon.com/de_de/cdk/latest/guide/getting_started.html]] in your machine for using thismethod.Followthestep-by-step guide for installing XWiki using CDK code [[Deployment Using CDK Code>>doc:.Deployment Using CDK Code.WebHome]]41 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]]. 59 59 60 60 = Security = 61 61 62 - The AWS Cloud provides a scalable, highly reliable platform that helps customersdeployapplicationsand data quickly and securely. When we buildsystemsontheAWSinfrastructure, security responsibilitiesare shared between you and AWS.Thissharedmodel can reduce our operational burden as AWS operates, manages, and controls the components from the host operatingsystemand virtualizationlayer downto the physical securityofthefacilities in which the services operate. In turn, we assume responsibility andmanagementof the guestoperating system (including updatesand security patches), other associated applications, aswell asthe configuration of the AWS-provided security group firewall.45 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]]. 63 63 64 64 == AWS Identity and Access Management And Security Groups == 65 65 66 - Here we will be using an IAMrole with the least privilegedaccess.We willnotstoreSSH keys, secret keys,or access keys onthe provisionedinstances.A security groupacts as a firewallthatcontrols the traffic for one ormoreinstances.When we launch aninstance, we associate one ormoresecurity groupswith the instance.weadd rules toeachsecurity group thatallowstrafficto or from its associated instances.Herewe willconfigure thesecurity group to haveinbound accessto TCP 22 (permission to allow SSH from theinternet), TCP 80 (permission to allow HTTP access from theinternet),TCP 443 (permissiontoallowHTTPS access from the internet), andalsowillallow port 8080 access.49 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]], which states which services the deploying principal needs access to. 67 67 68 -Here's a list of the IAM policies and roles required to run this deployment. If you are using an IAM user make sure to attach a minimum of these policies to your user. 69 - 70 -* AmazonRDSfullAccess 71 -* AmazonS3fullAccess 72 -* AmazonECS_FullAccess 73 -* AWSKeyManagementServicePowerUser 74 -* AWSCloudFormationFullAccess 75 -* EFSAII 76 -* IAMCreateRole 77 -* IAMDeleteRole 78 -* IAMGetRole 79 -* IAMRolePolicy 80 -* KMSAII 81 -* KMSPutKeyPolicy 82 -* SecretsAll 83 - 84 84 = Additional Resources = 85 85 86 -* [[Amazon EC2>>url:https://aws.amazon.com/documentation/ec2/]] 87 -* [[AWS IAM>>url:https://aws.amazon.com/documentation/iam/]] 88 -* [[Amazon RDS>>url:https://aws.amazon.com/documentation/rds/]] 89 -* [[Amazon S3>>url:https://aws.amazon.com/documentation/s3/]] 90 -* [[Amazon VPC>>url:https://aws.amazon.com/documentation/vpc/]] 91 -* [[AWS Auto Scaling>>url:https://aws.amazon.com/documentation/autoscaling/]] 92 -* [[AWS CloudFormation>>url:https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/]] 93 -* [[Elastic Load Balancing>>url:https://aws.amazon.com/documentation/elastic-load-balancing/]] 94 -* [[Amazon CloudFront>>url:https://aws.amazon.com/documentation/cloudfront/]] 95 -* [[Amazon Route 53>>url:https://aws.amazon.com/documentation/route53/]] 53 +Dropped. They were links into [[the AWS documentation>>https://docs.aws.amazon.com/]], several of them to services this deployment does not use.
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. VincentMassol1 +XWiki.elenicojocariu - Content
-
... ... @@ -1,70 +1,29 @@ 1 1 {{box cssClass="floatinginfobox" title="**Contents**"}} 2 -{{toc start="1" depth="6" numbered="false" scope="page"/}}2 +{{toc/}} 3 3 {{/box}} 4 4 5 -{{warning}} 6 -Installation on AWS is currently an XWiki Contrib project and not supported by the core XWiki Dev Team. 7 -{{/warning}} 5 +This page has moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]]. 8 8 9 9 = What You Will Build = 10 10 11 - UsingthisCloudFormationTemplateyou'llbeprovisioningtheseresourcesin yourAWS account.9 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]], which describes the architecture both routes build. 12 12 13 -* A virtual private cloud (VPC) that is configured across two Availability Zones. For each Availability Zone, this template provisions one public subnet and one private subnet, according to AWS best practices. 14 -* In the public subnets, managed network address translation (NAT) gateways to provide outbound internet connectivity for instances in the private subnets. 15 -* In the private subnets, Amazon Elastic File System(EFS), which provides simple, scalable file storage for XWiki files, Amazon Aurora database instances running MySQL and Elastic Container Service(ECS) fargate service. 16 -* An AWS Loadbalancer, which you will connect to using the DNS provided at the end of the installation. 17 -* An AWS Identity and Access Management (IAM) role to enable AWS resources created through the template to access other AWS resources when required. 18 - 19 19 = Deployment Options = 20 20 21 - TheCloudFormationTemplate andCDK willinstallXWiki withMySQL. Youcanchoose which ofthefollowing versionstodeploy of XWiki.13 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]]. 22 22 23 -1. Long-term support: This version is the latest stable version from the last XWiki cycle. This is the most stable version and is recommended to use in production. 24 -1. Stable: This version is the latest stable version from the current XWiki cycle. This is the version recommended if you wish to try out the new features from the cycle. 25 -Note: you can also choose a specific version other than mentioned above. But it is not recommended. 26 - 27 27 = Prepare AWS Account = 28 28 29 -* One of the obvious requirements is having an AWS account, So if you don’t have one already, you can [[create one>>https://aws.amazon.com/]] by following the on-screen instructions. When you create an AWS account, AWS automatically sign-up for all the services including the ones we are gonna use for XWiki. You are charged only for the services that you use and only for the time period you use them. 30 -IMPORTANT: make sure you are using root user otherwise you can get errors related to permissions regarding resource creation. 31 -* We will be creating a virtual private cloud (VPC) for deploying the XWiki in. The default quota for the number of max VPCs in a region is 5. But you can [[extend them>>https://console.aws.amazon.com/support/home?#/case/create?issueType=service-limit-increase&limitType=vpc]] up to 100. So, if there are already 5 VPCs in the region you are deploying the instance, request for a quota increase. It can take a few days for the new service quota to become effective. 32 -* Now, Select the region (on the top right) you want to deploy XWiki in from the navigation bar.((( 33 -{{image reference="region.png" width="600px"/}} 34 -)))Consider choosing a region closest to your data center or corporate network to reduce network latency between systems running on AWS and the systems and users on your corporate network 17 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]]. 35 35 36 36 = Launching The CloudFormation Template = 37 37 38 -* Download the [[CloudFormation Template file>>https://raw.githubusercontent.com/xwiki-contrib/aws-xwiki-cloudformation/1.0/templates/xwiki.template.json]] to use. 39 -* After logging in to your AWS account, click on this link [[https:~~/~~/console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/create/template>>https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/create/template]] 40 -* Select “Template is ready”, for the prepare template option.((( 41 -{{image reference="create_stack_prerequisite_AWS_cf.png"/}} 42 -))) 43 -* For, Specify template, Select the "Upload a template file" and upload the template file you just downloaded((( 44 -{{image reference="specify-template-2.png"/}} 45 -))) 46 -* Type the name you want to give your stack. For example XWiki.((( 47 -{{image reference="stack_name_aws_cf.png"/}} 48 -))) 49 -* For the Parameters, you need to give the docker name for the XWiki version you want to install. If you want to install a Stable version type **xwiki:stable-mysql-tomcat** or else if you want long-term-support (LTS) version, type **xwiki:lts-mysql-tomcat**. For more information on what stable and LTS is, refer to deployment option section. The click on NEXT((( 50 -{{image reference="parameters_aws_cf.png"/}} 51 -))) 52 -* Add tags if you want to, Will make it easier to manage, search for, and filter resources((( 53 -{{image reference="tags_aws_cf.png"/}} 54 -))) 55 -* Leave other options on the page as default (or you can configure specifics if you want) and click NEXT 56 -* Make sure to select the check-box for acknowledging that AWS CloudFormation might create IAM resources. And click on **CREATE STACK**((( 57 -{{image reference="capability_IAM_aws_cf.png"/}} 58 -))) 59 -* Monitor the status of the stack. When the status is CREATE_COMPLETE, Check the "OUTPUT" tab for the loadbalancer DNS. Connect to the DNS to configure your newly hosted XWiki. For more information about XWiki and how to configure it, refer to [[official documentation>>doc:Documentation.UserGuide.GettingStarted.WebHome]] 21 +The step-by-step instructions are not carried over: the published template builds its database as an Aurora Serverless v1 cluster, which AWS retired on 31 March 2025, so the stack no longer creates. [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]] explains the current state and what the template needs. 60 60 61 61 == Github Repository == 62 62 63 - You canvisitthe[[GitHubrepository>>https://github.com/xwiki-contrib/aws-xwiki-cloudformation]] to downloadthe CloudFormationTemplatecode for this deployment, tomodify it for your needsand to post your comments.25 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]]. 64 64 65 65 = Troubleshooting = 66 66 67 -* If during stack creation your stack is getting rollbacked, check the EVENT tab, there you can the reason due to which some of the resources couldn’t get provisioned. One of the possible errors that you can get is ‘ResourceLimitExceeded’. You get this error when ther resource you are trying to create already reached it quota limit. But you can request to increase the quota in your AWS account. It can take a few days for the new service quota to become effective. For more details on how to request quota increase, refer to, https://aws.amazon.com/premiumsupport/knowledge-center/resourcelimitexceeded-sagemaker/ 68 -* When after filling the details you click on **CREATE STACK**, On the top of the screen an error might flash saying any “Unrecognised Resources”. You are getting this error because you are creating the stack in a region where not all the resources needed are available. To solve this change the region to some other nearest region to your center.((( 69 -{{image reference="unrecognised_resource_error_aws_cf.png"/}} 70 -))) 29 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]].
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Sanchita14111 +XWiki.elenicojocariu - Content
-
... ... @@ -1,156 +1,37 @@ 1 1 {{box cssClass="floatinginfobox" title="**Contents**"}} 2 -{{toc start="1" depth="6" numbered="false" scope="page"/}}2 +{{toc/}} 3 3 {{/box}} 4 4 5 -{{warning}} 6 -Installation on AWS is currently an XWiki Contrib project and not supported by the core XWiki Dev Team. 7 -{{/warning}} 5 +This page has moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]]. 8 8 9 9 = Overview = 10 10 11 - Another methodyou can usetodeployXWikiin your AWS accountis by using the CDK code.AWSCDK or CloudDevelopmentKitis used inorder to provisionresourcesinside anAWS Account without the hassle of creating them manuallyand helpsto lock down on configurations required for provisioningthose resources so as to maintain consistency across various stages andinstalls.With CDK we can write infrastructure as code inlanguages like typescript, python, java, .NET. Ifyou prefer toinstall your XWiki instanceinacouple of clicks fromtheconsole we recommend youto [[use the Cloudformation Template>>Documentation.AdminGuide.Installation.XWiki Installation on AWS.Deployment Using Cloudformation Template.WebHome]].But if you are a fan of AWS CLI and/orwant to tweak the configuration according to your needs you can use theCDK code. You'll need basic programmingknowledge if you wantto tweakconfiguration according to you. But you can do it inCDKcode ina mucheasierway as comparedtothecloudFormation template.9 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]], which explains when the CDK route is the one to choose. 12 12 13 13 = Pre-Requisites = 14 14 15 -* You must have the [[AWS CDK Command Line Interface (CLI) installed and configured>>https://docs.aws.amazon.com/de_de/cdk/latest/guide/getting_started.html]] or use a docker image. 16 -* You should be using a root account or at least an IAM user with all the permission required mentioned [[here>>doc:Documentation.AdminGuide.Installation.XWiki Installation on AWS.WebHome]]. Otherwise, you might get errors regarding permissions to create resources. 17 -* You must have [[NPM installed>>https://docs.npmjs.com/downloading-and-installing-node-js-and-npm]] or use a docker image. 13 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]]. 18 18 19 19 = XWiki Installation = 20 20 17 +The step-by-step instructions are not carried over: the published code depends on AWS CDK version 1, which reached end of support on 1 June 2023. [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]] explains the current state and what the code needs. 18 + 21 21 == What You Will Build == 22 22 23 - UsingthisClodformationtemplateyou'llbeprovisioningtheseresourcesin yourAWS account.21 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]], which describes the architecture both routes build. 24 24 25 -* A virtual private cloud (VPC) that is configured across two Availability Zones. For each Availability Zone, this template provisions one public subnet and one private subnet, according to AWS best practices. 26 -* In the public subnets, managed network address translation (NAT) gateways to provide outbound internet connectivity for instances in the private subnets. 27 -* In the private subnets, Amazon Elastic File System(EFS), which provides simple, scalable file storage for XWiki files, Amazon Aurora database instances running MySQL and Elastic Container Service(ECS) fargate service. 28 -* An AWS Loadbalancer, which you will connect to using the DNS provided at the end of the installation. 29 -* An AWS Identity and Access Management (IAM) role to enable AWS resources created through the Template to access other AWS resources when required. 30 - 31 -The production installation will create the following resources in your AWS account. 32 - 33 33 == Configuration parts within CDK in more details == 34 34 35 - Herewewillhave a lookatsomepartsofthe codeand howyoucanconfigureitif youwantaccording toyourneeds25 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]], which names the two files holding the settings most people change. 36 36 37 -* Inside the lib folder, we have the ##config.ts## file. There you will have two basic required configurations. First, one being the region you want to deploy your resources into and the second is the version of XWiki you want to choose. You can edit this file according to your needs. We recommend you to use ##xwiki:stable-mysql-tomcat## or ##xwiki:lts-mysql-tomcat## to set for ##xwikiversion##. Though you can choose [[any other ##mysql-tomcat## version from Docker Hub>>https://hub.docker.com/_/xwikitab=tags&page=1&ordering=last_updated&name=mysql-tomcat]] for the tag to be used for your preferred version.((( 38 -{{code language="TypeScript"}} 39 -export const region = 'us-east-1'; // region in which you want to configure xwiki instance 40 -export const xwikiVersion = 'xwiki:mysql-tomcat' //or 'xwiki:mysql-stable-tomcat' 41 -{{/code}} 42 -))) 43 -* Inside the ##lib/stacksvpc.ts## you have the IAAC that will provision a new VPC in your account. Here we used ##cidr##: ##10.42.42.0/24## which is small but sufficient for this installation. You can increase this if you wish to deploy other services inside this network in future.((( 44 -{{code language="TypeScript"}} 45 - public readonly xwikivpc: Vpc; 46 - constructor (scope: cdk.App, id: string, props?: cdk.StackProps) { 47 - super(scope, id, props) 48 - this.xwikivpc = new Vpc(this, 'xwiki-vpc', { 49 - cidr: '10.42.42.0/24', 50 - defaultInstanceTenancy: DefaultInstanceTenancy.DEFAULT, 51 - maxAzs: 2, 52 - natGatewayProvider: NatProvider.gateway(), 53 - natGateways: 1, 54 - subnetConfiguration: [ 55 - { 56 - name: 'public', 57 - subnetType: SubnetType.PUBLIC, 58 - cidrMask: 27 59 - }, 60 - { 61 - name: 'private-database', 62 - subnetType: SubnetType.PRIVATE, 63 - cidrMask: 26 64 - } 65 - ] 66 - }) 67 - } 68 -{{/code}} 69 -))) 70 -* We have configured two encryption keys to be used for storing resources passwords etc. We have enabled rotation by default, as suggested to be the best practice according to AWS documentation. AWS KMS rotates the key automatically every year. You don't need to remember or schedule the update.((( 71 -{{code}} 72 -const xwikiEncryptionKey = new Key(this, 'XWikiEncryptionKey', { //encryption key to be used by the file system and rds 73 - alias: `xwiki`, 74 - description: `Encryption Key for XWiki Storage Resources`, 75 - enableKeyRotation: true, 76 - enabled: true, 77 - trustAccountIdentities: true, 78 - }); 79 -const xwikiSecretEncryptionKey = new Key(this, 'XWikiSecretEncryptionKey', { //used for fenerating password for rds 80 - alias: `xwiki-secret`, 81 - description: `Encryption Key for XWiki Secrets`, 82 - enableKeyRotation: true, 83 - enabled: true, 84 - trustAccountIdentities: true, 85 - }); 86 -{{/code}} 87 -))) 88 -* We have configured two encrytion keys to be used for storing resources passowrd etc. We have enabled rotation by default and uses the key that we configured earlier((( 89 -{{code}} 90 - const xwikiEfs = new FileSystem(this, 'XWikiFileSystem', { // File System that will conatin static xwiki files 91 - vpc: props.vpc, 92 - enableAutomaticBackups: true, 93 - encrypted: true, 94 - kmsKey: xwikiEncryptionKey, 95 - performanceMode: PerformanceMode.GENERAL_PURPOSE, 96 - securityGroup: xwikiEfsSg, 97 - vpcSubnets: props.vpc.selectSubnets( 98 - { 99 - subnetType: SubnetType.PRIVATE 100 - } 101 - ) 102 - }); 103 -{{/code}} 104 -))) 105 - 106 -This is not the whole configuration but only a part to give you an idea about code style and how to modify it according to your needs. You can get the whole code in the [[Github repository>>https://github.com/xwiki-contrib/aws]]. 107 - 108 108 == Deploying Production XWiki == 109 109 110 - Afterinstalling andconfiguring theAWS CommandLineInterface(CLI) withan accesskey and secretaccess key belongingto your rootaccount or IAM user with root privileges, follow these steps to get your XWiki deployed.29 +Not carried over, for the reason above. 111 111 112 -* Clone the repo [[https:~~/~~/github.com/xwiki-contrib/aws>>https://github.com/xwiki-contrib/aws]]((( 113 -{{code language="bash"}} 114 -git clone https://github.com/xwiki-contrib/aws.git 115 -{{/code}} 116 -))) 117 - 118 -* Navigate into the clone Directory((( 119 -{{code language="bash"}} 120 -cd aws 121 -{{/code}} 122 -))) 123 -* Navigate into the Production Directory((( 124 -{{code language="bash"}} 125 -cd xwiki-production-cdk 126 -{{/code}} 127 -))) 128 -* Install all needed packages locally((( 129 -{{code language="bash"}} 130 -npm install 131 -{{/code}} 132 -))) 133 -* Execute the deployment, and wait for the process to get complete.((( 134 -{{code language="bash"}} 135 -cdk deploy --all 136 -{{/code}} 137 -))) 138 -* {{warning}}The stacks will be deployed in the region set in the ##config.ts## file in lib folder. The default set region is ##us-east-1##.{{/warning}} 139 - 140 -* {{info}}**TIP:** Consider choosing a region closest to your data center or corporate network to reduce network latency between systems running on AWS and the systems and users on your corporate network.{{/info}} 141 - 142 -* Monitor the status of creation of stacks in your command line and answer yes to the prompt questions asking permission to deploy. You will see this at the end of deployment of stacks.((( 143 -{{image reference="cdk-output-aws.png"/}} 144 -))) 145 -* Connect to the LoadBalancer DNS shown in the output of the previous command to configure your newly hosted XWiki installation((( 146 -{{image reference="xwiki-installed-output.png"/}} 147 -))) 148 - 149 149 = Github Repository = 150 150 151 - You canvisitthe[[GitHubrepository>>https://github.com/xwiki-contrib/aws]]todownloadthe CDK code for this deploymenttomodify it for your needsand to post your comments,33 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]]. 152 152 153 153 = Troubleshooting = 154 154 155 -* You might get an ‘ResourceLimitExceeded’ error while deploying the stack. You get this error when ther resource you are trying to create already reached it quota limit. But you can request to increase quota in your AWS account. It can take a few days for the new service quota to become effective. For more details on how to request quota increase, refer to, https://aws.amazon.com/premiumsupport/knowledge-center/resourcelimitexceeded-sagemaker/ 156 -* If you get an “Unrecognised Resources” error you are creating the stack in a region where not all the resources needed are available. To solve this change the region to some other nearest region to your center. 37 +Moved to [[XWiki on AWS>>documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]].
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -11,7 +11,5 @@ 11 11 * [[Install XWiki using Docker compose>>https://blog.zwindler.fr/2016/09/15/installer-xwiki-8-2-1-avec-docker-compose-en-2-lignes-de-commandes/]] (French) 12 12 * [[XWiki in Windows - PostgreSQL - Tomcat 9 - Waffle>>https://www.youtube.com/watch?v=c2xUsnuDsBE]] (English, video) 13 13 * [[XWiki 10.9 with LDAP/SSO/MSSQL on Windows>>http://www.ohjeah.net/2018/11/09/xwiki-10-9-with-ldapssomssql-on-windows/]] 14 -* [[XWiki Installation on AWS>>Documentation.AdminGuide.Installation.XWiki Installation on AWS.WebHome]] 15 -** [[Deployment using CDK code>>Documentation.AdminGuide.Installation.XWiki Installation on AWS.Deployment Using CDK Code.WebHome]] 16 -** [[Deployment Using Cloudformation Template>>Documentation.AdminGuide.Installation.XWiki Installation on AWS.Deployment Using Cloudformation Template.WebHome]] 14 +* [[XWiki on AWS>>doc:documentation.xs.admin.installation.methods.unofficial-methods.aws.WebHome]] 17 17 * [[XWiki on Yunohost>>https://apps.yunohost.org/app/xwiki]]