14. Costs¶
You pay AWS directly for what the stack runs. Approximate figures in US East (N. Virginia), default sizes, before data transfer and storage growth:
Setting |
Approx. per day |
Approx. per month |
|---|---|---|
|
about $25 |
about $750 |
|
about $9 |
about $270 |
The biggest items are the database, the servers (ECS Fargate), the NAT gateway and the load balancer. Stored files are billed by S3 per GB. Use the AWS Pricing Calculator for your exact sizes.
Switching QuantaCloud off and on¶
While QuantaCloud is off, the servers (ECS) and the database are stopped and cost nothing. The load balancer, the cache, the NAT gateway and stored files still cost (roughly a third of the daily figure). Your files and settings are kept.
Automatically: set the power schedule (form Section 7). To set or change it on a running stack (switch it on first — an update needs the database running): CloudFormation → your stack → Update stack → Make a direct update → Use existing template → Next, change the four
Power…fields, Next → Next → tick the IAM box → Submit.By hand — switch on (or off):
Open the
TurnOnLinkfrom the stack’s Outputs tab and sign in to AWS. The function<stack name>-poweropens on its Test tab.Test event action: Create new event. Event name:
turn-on.Event JSON: replace everything with
{"action": "on"}(or{"action": "off"}to switch off).Click Test and keep the page open. Switching on takes 10–15 minutes: the result box shows Succeeded once the database is up and the services are starting; about 5 minutes later your domain opens. Switching off shows Succeeded within a minute. If the result’s
notessays the database is busy, runoffagain a few minutes later.
Note
AWS starts a stopped database again by itself after 7 days. With a schedule, the next scheduled switch-off stops it again; without one, switch it off by hand if nobody needs it.