Repository navigation
AWS Setup Guide
In this guide, you'll learn how to set up xyOps on AWS with EC2 servers, Cognito sign-in, an Application Load Balancer for HTTPS access, PostgreSQL on Amazon RDS, and S3 for file storage. You'll run a job on a private worker, then stop the active conductor and download the job's output through the same web address.
A conductor serves the web interface and schedules jobs. A worker runs the jobs. You'll put one of each in two different Availability Zones. Both conductors use the same PostgreSQL database for job records and the same S3 bucket for files. This is what lets the standby pick up where the first conductor left off.
flowchart LR
Browser["Your browser"] -->|HTTPS| ALB["Application Load Balancer"]
ALB <-->|Sign in| Cognito["Cognito user pool"]
ALB -->|Healthy conductor| Pair["Two private xyOps conductors"]
Workers["Two private xySat workers"] -->|Connect to conductors| Pair
Pair -->|Records| RDS["RDS for PostgreSQL"]
Pair -->|Files| S3["S3 bucket"]
Use the search box at the top of the AWS Management Console to open each service by name. You'll create the network, storage, and sign-in settings in their own consoles. For the four EC2 hosts, you'll fill out one CloudFormation form and run the same installation from Systems Manager. All the steps work from a browser.
- Choose your address and region
- Create the network
- Create the bucket and database
- Set up Cognito sign-in
- Give xyOps an HTTPS address
- Create the four EC2 servers
- Install xyOps and sign in
- Connect the workers and run a job
- Try conductor failover
- Keep or remove the installation
- Sign in to an AWS account where you can create VPC, EC2, RDS, S3, Cognito, load balancing, DNS and certificate resources. You'll also need to create and pass IAM roles through CloudFormation, use CloudShell and Systems Manager, and retrieve the RDS administrator password. Use your usual deployment role.
- In the region menu at the top right, select US West (Oregon), or another commercial region that supports ALB authentication with Cognito. Keep that region selected throughout. Oregon's region code is
us-west-2. AWS regions for ALB authentication - In Route 53 > Hosted zones, open an existing Public zone for a domain you control. Its name servers must already be delegated by the parent domain or registrar. Pick an unused lowercase hostname in that zone. We'll use
ops.example.com; substitute your own everywhere it appears. Check the records list for that name before starting. - Keep a note of your region, hostname, and the bucket name you choose below. The later forms also use your Cognito pool ID, app client ID, domain prefix, and HTTPS listener ARN. Each step tells you where to copy them. Keep passwords out of this note.
Download the AWS setup files (ZIP) and unzip them on your computer. The folder contains a template, a CloudShell script, and a bootstrap folder with three files for the hosts. You'll upload them from the browser as you go.
This installation incurs AWS charges, including four EC2 instances and their disks, RDS, the load balancer, a NAT gateway, and public IPv4 addresses. The example uses single-AZ RDS and one NAT gateway. It can survive a conductor failure. For a deployment that also needs to survive the loss of either zone, choose Multi-AZ RDS and outbound connectivity in both zones. AWS Pricing Calculator
- Open VPC > Create VPC. For Resources to create, choose VPC and more. Leave name tag auto-generation on and enter
xyops. - Enter
10.77.0.0/16for IPv4 CIDR block. Use IPv4 only and default tenancy. Choose 2 Availability Zones, 2 public subnets, and 2 private subnets. - Expand Customize subnets CIDR blocks and enter the four ranges below. The xyOps sign-in configuration trusts the two public subnet ranges because the load balancer connects from them.
| Subnet | First zone | Second zone |
|---|---|---|
| Public, for the load balancer | 10.77.0.0/24 |
10.77.1.0/24 |
| Private, for servers and RDS | 10.77.10.0/24 |
10.77.11.0/24 |
- Under NAT gateways, choose a zonal gateway in one AZ for this example. Under VPC endpoints, choose S3 Gateway. Leave both DNS options enabled and choose Create VPC.
- Open the new VPC's Resource map. You should see four subnets. The public subnets have a route to the internet gateway. The private subnets have a route out through NAT so the servers can download software and reach AWS services. AWS VPC wizard
Open VPC > Security groups > Create security group. Enter the name from the table, add a short description, and select the new xyops-vpc. Create all four groups first, with no inbound rules. Keep the default outbound rule. Then select each group in turn and choose Inbound rules > Edit inbound rules > Add rule. For a security group source, choose Custom and search for its group name or ID. Save the rules.
| Security group name | Inbound rules to add |
|---|---|
xyops-edge |
HTTPS, TCP 443, source Anywhere-IPv4. |
xyops-conductors |
Three Custom TCP rules on port 5523. Set their sources to xyops-edge, xyops-workers, and xyops-conductors itself, one per rule. |
xyops-workers |
Leave inbound rules empty. Each worker connects out to a conductor. |
xyops-db |
PostgreSQL, TCP 5432, source xyops-conductors. |
Port 5523 serves both the xyOps API and private WebSocket connections. Keeping it inside the VPC means browsers must go through the authenticated HTTPS listener. Systems Manager gives you a browser terminal on the private hosts without opening an SSH port.
- Open S3 > General purpose buckets > Create bucket. Use the deployment region and a unique name, such as
xyops-files-yourcompany-7f42. Record the exact name. - Choose Bucket owner enforced for Object Ownership and keep Block all public access checked. Use SSE-S3 encryption. Leave versioning disabled for this example. Choose Create bucket.
- Open the bucket, select Create folder, enter
bootstrap, and create it. Openbootstrap/. Choose Upload > Add files, select all three files from the downloadedbootstrapfolder, then choose Upload. Check that you can see the three filenames directly insidebootstrap/.
| File to save | What runs it |
|---|---|
| conductor.sh | Systems Manager runs this on each conductor. It installs Docker, configures PostgreSQL, S3 and TLS, and starts the official xyOps image with the ALB sign-in plugin. |
| verify-user.js | The conductor installer includes this in the image. At sign-in it accepts the verified Cognito identity only when the user has an assigned xyOps role. |
| init-database.sh | You'll run this once on the first conductor to give xyOps its own PostgreSQL login. |
Use a dedicated bucket. The host installers and private TLS files will live under bootstrap/. xyOps writes job files under a separate xyops/ prefix. Write access to bootstrap/ lets someone change what the servers install.
- Open Aurora and RDS > Subnet groups > Create DB subnet group. Enter
xyops-private, a description, and your xyOps VPC. Select both Availability Zones. Add only the subnets with ranges10.77.10.0/24and10.77.11.0/24. Choose Create. - Open Databases > Create database. Choose the full configuration form (Standard create in some consoles), then fill in these settings.
| Field | Value |
|---|---|
| Engine and version | PostgreSQL and an available PostgreSQL 16.x release. |
| Template and availability | Dev/Test, Single DB instance for this example. |
| DB instance identifier | xyops-db |
| Master username and credentials |
dbowner. Choose Managed in AWS Secrets Manager and the default Secrets Manager encryption key. |
| Instance class |
Burstable classes, db.t4g.micro if offered, or another available PostgreSQL class. |
| Storage | General Purpose SSD (gp3), 20 GiB, storage encryption enabled. |
| Connectivity |
Don't connect to an EC2 compute resource. Choose your xyOps VPC and the xyops-private DB subnet group. Set Public access to No. Select only the existing xyops-db security group. |
| Database authentication and port | Enable password authentication. Use port 5432. |
| Additional configuration > Initial database name |
xyops. This creates the database that the application will open. |
| Backups | Enable automated backups and choose a retention period. One day is enough for this walkthrough. |
- Review the estimated charges and choose Create database. You can work on sign-in while RDS provisions. Before installing xyOps, the instance must show Available, and its Configuration tab should show database name
xyops. RDS instance settings
- Open Cognito > User pools > Create user pool. Choose Traditional web application and name the application
xyops-web. This application type generates the client secret that the load balancer uses. - Choose Username for sign-in and email as a required attribute. Use password-based sign-in. Clear Enable self-registration. For the return URL, enter
https://ops.example.com/oauth2/idpresponse, using your actual hostname. Choose Create user directory (or Create). - Open the new pool. Copy its User pool ID. Under Sign-up, confirm self-registration is off. In Custom attributes, choose Add custom attributes. Enter
xyops_roleas the name, choose String, set a length of 1 to 16, check Mutable, and save. This lets an administrator change a user's role later. - Open App clients > xyops-web and copy the Client ID. Under Attribute permissions > Edit, allow Read for
email,email_verified,name, andcustom:xyops_role. Clear Write forcustom:xyops_roleand save. This is the permission that keeps users from assigning themselves administrator access. - In that client's Login pages > Edit, select Cognito user pool as the identity provider, Authorization code grant for OAuth, and scopes openid, email, and profile. Verify the allowed callback URL is
https://ops.example.com/oauth2/idpresponse. Set the allowed sign-out URL tohttps://ops.example.com/signed-out. Save changes. - Open the pool's Domain page. Use the AWS-hosted Cognito domain. If the wizard already created one, use it. Otherwise choose Create Cognito domain and enter an available prefix. For
my-xyops-7f42.auth.us-west-2.amazoncognito.com, record justmy-xyops-7f42. Keep the default single-region issuer for this installation. The conductor expectshttps://cognito-idp.REGION.amazonaws.com/POOL_ID. Cognito application setup · Attribute permissions
- In the pool, choose Users > Create user. Enter username
setup, an email address you control, and a temporary password. Choose Don't send an invitation if you'll deliver that password yourself. Choose Create. - Open the new user, find User attributes, and choose Edit. Add
namewith a display name andcustom:xyops_rolewith valuesetup. Save. This account will be a xyOps administrator. - Repeat for username
operator, with its own email and password. Setcustom:xyops_roletooperator. You'll give this account permission to run a job later. An unassigned account cannot start a xyOps session. Creating Cognito users
In Certificate Manager in the deployment region, choose Request > Request a public certificate. Enter your full hostname, choose DNS validation, and submit. Open the certificate, choose Create records in Route 53, select the domain, and create the validation record. Wait for Issued before attaching it to the load balancer. Keep the validation CNAME for certificate renewal. ACM DNS validation
- Open EC2 > Target Groups > Create target group. Select Instances and name the group
xyops-primary. Choose HTTPS, port5523, IPv4, your xyOps VPC, and protocol version HTTP1. - Under Health checks, choose HTTPS and path
/health. Expand Advanced health check settings. Use the traffic port, healthy and unhealthy thresholds of2, timeout2seconds, interval5seconds, and success code 200. - Choose Next, leave targets empty, and choose Create target group. Later, both conductors will be registered here. Only the primary answers this check with HTTP 200. A standby returns 503. ALB target groups
- Open EC2 > Load Balancers > Create load balancer. Under Application Load Balancer, choose Create. Name it
xyops-web. Choose Internet-facing, IPv4, and your xyOps VPC. - Under Network mapping, select both zones and the public subnet in each. Select only the
xyops-edgesecurity group. - Under Listeners and routing, change the listener to HTTPS, port
443. Select the emptyxyops-primarytarget group if the wizard asks for one. For the certificate, choose From ACM and select the certificate for your hostname. Choose Create load balancer. - Open
xyops-web > Listeners and rules > HTTPS:443. Edit the default rule's routing action to Return fixed response, status404, content typetext/plain, bodyUnknown host. Save. Take this step while the target group is still empty. - In the same listener, choose Add rule. Name it
xyops-sign-in. Under Conditions, add Host header and enter the exact public hostname. For Pre-routing action, choose Authenticate user > Amazon Cognito. Select your pool, app client, and domain. - Expand the authentication settings. Enter scope
openid email profile, session cookie nameXYOpsAuth, and session timeout3600seconds. Set unauthenticated requests to Authenticate. For the routing action, choose Forward to target groups > xyops-primary. Set rule priority to 10 and create it. Priorities 1 and 2 will handle logout. - Check that the host rule shows authenticate, then forward, and the last rule returns 404. From the listener details, copy the Listener ARN. An ARN is AWS's resource identifier. This one contains
listener/app/. Adding a listener rule · ALB authentication
Open Route 53 > Hosted zones > your public zone > Create record. For ops.example.com in the example.com zone, enter ops as the record name. Choose A, enable Alias, and select Alias to Application and Classic Load Balancer, the deployment region, and xyops-web. Use simple routing, set Evaluate target health to No, and choose Create records.
Once DNS resolves and the load balancer is Active, open your HTTPS address in a private browser window. You should see Cognito asking you to sign in. You can close the window here. The conductor comes online in step 7. Route 53 aliases for load balancers
The server template places two Amazon Linux 2023 hosts in each private subnet. Each conductor gets its own private DNS name and an IAM role for the shared database password, cluster key, and S3 storage. Workers get a separate role that can fetch the public CA certificate. The template also adds an installer to Systems Manager and the two logout rules to your listener. The logout handler clears the ALB session cookies and sends the browser back to Cognito to finish signing out.
- Find servers.yaml in your downloaded folder. Open CloudFormation > Stacks > Create stack > With new resources (standard). Choose Choose an existing template > Upload a template file > Choose file, select
servers.yaml, then choose Next. - Enter
xyops-serversfor Stack name. Fill in the form using the values from your own deployment.
| Template field | What to select or enter |
|---|---|
| Network | The xyops-vpc VPC. |
| PrivateA / PrivateB | The 10.77.10.0/24 and 10.77.11.0/24 private subnets, respectively. |
| ConductorSG / WorkerSG | The xyops-conductors and xyops-workers security groups, respectively. |
| Files | Your S3 bucket name, with no path or s3:// prefix. |
| BrowserName | Your public hostname, such as ops.example.com. |
| Listener | The full ARN copied from EC2 > Load Balancers > xyops-web > HTTPS:443. |
| Pool / Client | Your Cognito User pool ID and Client ID, respectively. The client ID is public. Leave the client secret in Cognito. |
| Domain | The Cognito domain prefix you recorded in step 4. |
- Continue through the stack options, acknowledge that CloudFormation can create IAM resources, review the parameters, and choose Submit. Open Events to follow creation. When the stack shows CREATE_COMPLETE, open Outputs. Keep this tab open for the instance IDs and the
InstallDocumentvalue. - In EC2 > Instances, look for
xyops-servers-C1and-C2(thet3.mediumconductors) and-W1and-W2(thet3.smallworkers). Each has an encrypted 20 GiB root volume and a private IP address. In Systems Manager > Fleet Manager, wait for all four to show Online. - In EC2 > Target Groups > xyops-primary > Targets, choose Register targets. Select C1 and C2 only, keep port
5523, choose Include as pending below, then Register pending targets. Both will be unhealthy until xyOps starts. Openinghttps://ops.example.com/signed-outshould already display Signed out of xyOps.
The browser uses the public ACM certificate. Inside the VPC, workers and conductors use the names c1.xyops.internal and c2.xyops.internal. The next script creates a private certificate authority (CA), signs a certificate for each name, and puts the host certificates and settings in the private bucket. The CA signing key stays in your CloudShell home directory.
- Wait until RDS shows Available. Find prepare-hosts.sh in your downloaded folder. Open CloudShell from the console toolbar in your deployment region. Use its standard environment. Choose Actions > Upload file and upload the script.
- Enter the following command.
bashruns the file you just uploaded. Its two arguments are the CloudFormation stack name and the RDS instance identifier. CloudShell supplies the AWS CLI and your signed-in identity.
bash prepare-hosts.sh xyops-servers xyops-db- Look for Installation files are ready and the private backup directory. In S3 > your bucket > bootstrap/, you should now see
settings.json,ca.crt, and a certificate and key for each conductor alongside the three files you uploaded. Back up the private CA directory to your organization's protected key storage. The host certificates are valid for 90 days. The CA is valid for one year.
- In RDS > Databases > xyops-db > Configuration, find Master Credentials ARN and choose Manage in Secrets Manager. Choose Retrieve secret value. You'll need the
passwordfordbowneronce. - In a second tab, open EC2 > Instances > xyops-servers-C1 > Connect > Session Manager > Connect. This is a terminal on C1. Run
sudo -ito open a root shell. - Substitute your bucket and region below. The first command stores your bucket name for this shell. The second downloads the database initializer, and the third runs it. At the Password prompt, paste the database owner's password and press Enter. The prompt hides what you type.
bucket=YOUR_BUCKET_NAME
aws s3 cp "s3://$bucket/bootstrap/init-database.sh" /root/init-database.sh
bash /root/init-database.sh "$bucket" us-west-2- Look for
xyops_appon the final line. This confirms a verified TLS connection to RDS using the new application login. Close the secret view and the terminal. The conductors use the application login from here on.
- Open Systems Manager > Run Command > Run command. In Command document, search for the exact
InstallDocumentname from the stack's Outputs. This is the install procedure supplied by the template. It recognizes each server by instance ID. Leave its OperatorRoleID field empty during installation. - Under Targets, choose Choose instances manually and select xyops-servers-C1 only. Choose Run. Open the command ID and its instance output. The final message should read
Installed xyOps on c1. - Wait for C1 to show Healthy in EC2 > Target Groups > xyops-primary > Targets. Open your public xyOps address and sign in as
setup. Cognito asks you to choose a permanent password on first use. You'll land in xyOps with administrator access. AWS Systems Manager Run Command
- In Run Command, select the successful install command and choose Copy to new, or open Run command and select the same document. This time select C2, W1, and W2. Choose Run. Check Success for all three. C2 starts xyOps. On the workers the document installs the CA for Linux and xySat, ready for enrollment.
- Return to the target group. One conductor should be Healthy. The other should be reachable but Unhealthy with response code 503. Both running at once with a single healthy target is the expected steady state.
- In xyOps, open Admin > User Roles > New Role.... Enter
Job Operatorin Role Title, keep Role Enabled checked, select Run Jobs under Privileges, General under Categories, and Main Group under Groups. Choose Create Role. Copy the Role ID from the resulting list. - In Systems Manager > Run Command > Run command, choose the same install document. This time paste the ID into OperatorRoleID and select C1 and C2 only. Choose Run. With a role ID entered, the document updates the operator mapping in each conductor's existing sign-in configuration. Check that each output reads
Mapped operator tofollowed by your ID.
The ALB signs the user's identity. The xyOps plugin checks the signature, the load balancer ARN, the Cognito issuer, and the app client ID. Then xyOps maps the administrator-assigned custom:xyops_role attribute to its own permissions. The same operator will have the same access after a conductor change. xyOps SSO
- As
setup, open Servers > Add Server... in xyOps. EnterAWS Worker 1for Server Label, select Main Group under Server Groups, and choose Linux for Platform. Click Copy to Clipboard to copy the entire install command. - In EC2 > Instances, select xyops-servers-W1 and choose Connect > Session Manager > Connect. Paste the command into the terminal and press Enter.
- Return to Servers in xyOps and confirm AWS Worker 1 appears online. Open Add Server... again, use the label
AWS Worker 2with the same group and platform, and copy its install command. Paste it into the Session Manager terminal on xyops-servers-W2. Confirm both workers appear online.
- In the setup account, open Events > New Event.... Enter
AWS deployment receiptas the event title. Select General for the category, Main Group for targets, and Shell Script for the plugin. Enable Manual Run in the triggers and leave the event enabled. Paste the following into Script Source. Keep that parameter administrator-locked.
#!/bin/sh
set -eu
printf 'Job %s ran on %s\n' "$JOB_ID" "$(hostname)" > receipt.txt
printf '%s\n' '{"xy":1,"files":["receipt.txt"]}'- Choose Create Event. If the header says Paused, click it and choose Active. Open your xyOps address in a separate private browser window, sign in as
operator, and set its permanent password. You should be able to open the event and run it. Event editing and administrator controls should be unavailable to this account. - Choose Run Now..., confirm, and open the completed job. Under Job Files, download
receipt.txt. Its contents identify this job and the worker that ran it. Keep that file and the job URL for the failover check. In the S3 console, your bucket should now contain anxyops/prefix.
Do this on your new cluster before scheduling real work. Leave the operator's browser open so you can see it reconnect.
- Open EC2 > Target Groups > xyops-primary > Targets and identify the Healthy instance. Match its ID to C1 or C2 in EC2 > Instances. Select that instance and choose Instance state > Stop instance. Confirm the stop. The standby and both workers should keep running.
- Refresh the target group until the other conductor becomes Healthy. Give the browser and both workers time to reconnect. If the browser briefly shows an error, wait for the new primary and reopen the same URL.
- With the old primary still stopped, run AWS deployment receipt again as the operator. Then open the saved URL of the first job and download its original receipt. The job ID and file contents should match your saved copy. This checks scheduling on the new primary, the original record in RDS, and the original file in S3.
- In EC2, select the stopped instance and choose Instance state > Start instance. Wait for it to rejoin as standby. Expect one healthy target again.
- Choose Logout in xyOps. The browser should land on
/signed-out. Reopen the public address and confirm that Cognito asks you to sign in again.
| What you see | Where to look |
|---|---|
| A certificate stays Pending validation | In ACM, compare the requested CNAME with the record in the authoritative public Route 53 zone. |
| Cognito reports a callback error or sign-in loops | Compare the public hostname, callback path, scopes, and user pool domain in the app client and the HTTPS rule. For a logout loop, also check the cookie name XYOpsAuth and allowed sign-out URL. |
| Cognito accepts the password but xyOps denies access | Check the user's custom:xyops_role, the app client's Read permission, and the two public subnet CIDRs. On the primary, inspect /srv/xyops/logs/SSO.log from Session Manager. |
| An instance is missing in Systems Manager | Check the instance profile in EC2, the private subnet's default route to an available NAT gateway, and outbound HTTPS. |
| Both conductors stay unhealthy | Check Run Command output on each host and the target group's protocol, port, path and success code. On a conductor, sudo docker logs --tail 50 xyops shows startup errors. Check the database login, peer DNS and TLS. |
| A worker is missing | Check that its install document succeeded, its label appears under Servers, and sudo systemctl status xysat is active. Copy a fresh install command from Add Server... if the primary changed during installation. |
| The operator can sign in but can't run the event | Compare the generated Role ID to the mapping on both conductors. Check Run Jobs, General, Main Group, and the event's Manual Run trigger. Sign out and back in after a role change. |
- Back up RDS records, S3 files, both conductors'
/srv/xyops/confdirectories, and the cluster secret together. Test a restore by retrieving an old job and its file. For a long-lived bucket, enable S3 versioning and choose a lifecycle policy. - Schedule private TLS renewal before the 90-day host certificates expire. Renew under the trusted CA, install each renewed certificate and key in its conductor's
/srv/xyops/conf/tls.crtandtls.key, and restart one conductor at a time, standby first. Plan CA renewal and worker trust distribution before the CA expires. ACM handles the public certificate separately. - Monitor the target group's healthy host count across both zones. One is normal. Alarm below one, and monitor the standby independently so you know when failover capacity is lost. Review Multi-AZ RDS, NAT availability, backup retention and instance sizing for your workload.
- For repeatable upgrades, use the same approved xyOps image digest on both hosts. The initial install defaults to
ghcr.io/pixlcore/xyops:latest. You can setXY_IMAGEto a digest in CloudShell before runningprepare-hosts.sh. For other storage engines and deployment options, see xyOps hosting and xyOps storage.
The CloudFormation stack owns the servers, their roles and cluster secrets, the private DNS zone, and the logout integration. The resources you created in other consoles have their own delete buttons. Back up anything you intend to keep before deleting the stack or emptying the bucket.
- In Route 53, remove the public A alias you created for xyOps. In CloudFormation > Stacks, select xyops-servers > Delete and confirm. Wait for DELETE_COMPLETE or for the stack to disappear from the active list. If it fails, open Events and resolve the named dependency. The four instances terminate and their root volumes are deleted.
- In EC2 > Load Balancers, delete xyops-web. Then delete xyops-primary under Target Groups. In Certificate Manager, delete the certificate if it was dedicated to this trial. Remove its validation CNAME from Route 53 only if you created it for the trial and no other certificate uses it. Keep the existing public hosted zone.
- In Cognito > User pools, delete the trial domain and pool. Turn off pool deletion protection if prompted. In RDS > Databases, delete xyops-db. If deletion protection is enabled, modify the database to turn it off first. Choose explicitly whether to keep a final snapshot and automated backups. Once deletion finishes, delete the
xyops-privateDB subnet group. - In S3, select the exact application bucket, choose Empty, confirm its name, then Delete the bucket. This removes both job files and private bootstrap files.
- In VPC > NAT gateways, delete the trial's NAT gateway and wait for Deleted. Under Elastic IP addresses, release its now-unassociated Elastic IP. Open Your VPCs, select only the trial VPC, choose Actions > Delete VPC, review the listed dependencies, and confirm. If AWS reports an interface still in use, wait for the load balancer, NAT gateway or RDS deletion to finish and retry.
- In the deployment region, check EC2 > Volumes, Elastic IP addresses, and RDS > Snapshots / Automated backups for trial resources you still own. Retained snapshots and allocated addresses can continue to incur charges. If you also want to remove the uploaded CloudFormation template, delete just its object from the console’s regional template bucket, which may contain templates for other stacks. When you no longer need to restore the trial, remove its private CA directory from CloudShell and any trial-only copies from your key storage.