Skip to main content

📌 Configuring Parameters for main stack

Step 1. Prerequisite - Prepare template

Choose an existing template→Specify template→Amazon S3 URL→ here paste the URL template https://devsecopsinc-bookstack.s3.us-east-1.amazonaws.com/main-template.yml. And click Next button.

3-Step 1.jpeg

Step 2. Specify stack details

Here, you need to fill in the Stack name. You can choose any name for your stack, but we recommend using a structured format like: bookstack-dev-main (e.g., wiki-stage, docs-prod, etc.). 

Although you can use any name, we suggest including the environment value (e.g., dev, stage, prod) for better organization and clarity.

For this guide, we will use bookstack-dev-main as an example.

4-Step 2 Name.jpeg

There are 18 parameters some of which are predefined. You don’t need to fill in all of them — just focus on the required and empty fields. For additional guidance, refer to the help description provided under each parameter.

4-Step 2 Parameters.png

7 Required Parameters:

1. Deployment Environment – Specify the environment (e.g., dev, prod).

2. Product Name - We recommend always using bookstack.

   (For optional parameters, you can leave the string blank, as we did with CostAllocationTag, GoogleClientId, GoogleClientSecret.)

3.  AppURL – Define the URL where BookStack will be accessible.

4. VPC ID – Enter the ID of an existing VPC.

5. VPC CIDR block – Provide the CIDR block of your existing VPC.

6. Subnet IDs – Enter the IDs of your existing subnets (e.g., Subnet 1 ID, Subnet 2 ID).

4-2 Step 2 Parameters.png

7. SSL Certificate ARN – Provide the ARN of your SSL Certificate for the ALB. (If you don’t have one, you must create it.)

4-3 Step 2 Parameters.png

Override Optional Parameters

Some parameters have predefined default values. You can modify them as needed or leave them unchanged:

EC2 instance type (t4g.small is the default and is recommended for small environments).

RDS DB instance type (db.t4g.small is the default).

RDS storage size (20 GB by default).

Multi-AZ deployment (set to false for cost efficiency).

Enable/Disable RDS backups.

Enable/Disable RDS deletion protection. ⚠ Important Notice!: If this parameter is enabled, you will not be able to delete the stack. To proceed with deletion, go to AWS ConsoleAmazon RDSDatabases, select your database, click Modify, and uncheck "Enable deletion protection" for bookstack-dev-rds. After this, you can delete the main stack in CloudFormation.

• Schedule backup rules.

Schedule backup deletion.

Step 3. Configure stack options 

Scroll to the bottom, check both checkboxes in the Capabilities field, and click the Next button.

5-Step 3 Capabilities.jpeg

Step 4. Review and create

Scroll to the bottom and click the Submit button.

6-Step 4 Submit.png

Now you can see how your environment is being deployed.

7-Step 4 Deploying.png

Follow these simple steps to access your product:

1️⃣ Retrieving the Access URL

1. After successful deployment, your product will be available at a generated URL, which can be found in the bookstack-$Environment-main stack under the Outputs section, key LoadBalancerDNSName, key AppURL.

2. In your domain registrar, create a CNAME record for AppURL, pointing to the generated LoadBalancerDNSName.

3. Open AppURL in your browser and enjoy!

7-Outputs.png

2️⃣ Accessing BookStack

1. Open AppURL in your browser.

2. Log in using the default credentials:

Username: admin@admin.com

Password: password

3. Change your password immediately! You can do this under Profile → Settings.

8-Login.png

Additional Information

Application logs are available in CloudWatch Logs.

Data is stored in RDS, while Bookstack files are stored on Amazon EFS.

Deletion: If needed, delete the main CloudFormation Stack to remove all associated resources automatically. 

⚠ Important Notice! Before proceeding, navigate to AWS Backup → Vaults → your-backup-vault-name → Recovery Points. Select all recovery points, click the Actions button, and choose Delete. This will remove all EFS backups.
Otherwise, deleting the CloudFormation stack will result in an error.

Bookstack aws backup.png