Your cloud (BYOC)

Set up your company cloud

Bring your own cloud: connect your account and create the shared infrastructure apps run on. AWS and Google Cloud today, Azure coming soon.

Deployment
BYOC

Diakrin is bring your own cloud (BYOC): your apps run in your cloud account, not ours. A company cloud setup is the shared foundation they run on: a connected cloud account plus the infrastructure created from a reviewed template. You create it once; each app later adds its own service when it is deployed.

What each cloud provides today

Amazon Web ServicesGoogle CloudMicrosoft Azure
StatusAvailableAvailableComing soon
Runs apps onECS on FargateCloud Run
How Diakrin connectsIAM roles from a per-connection DiakrinAccess-<id> CloudFormation stackKeyless identity: you run one pinned script in Google Cloud Shell as the project's Owner, with no service-account keys
How employees reach appsDiakrin company sign-in at the app addressCompany sign-in at the setup's gateway; apps stay internal-only. The gateway is turned on per environment
Service and secrets per appSupportedSupported
Database per appSupported: Amazon RDS PostgreSQLSupported: Cloud SQL PostgreSQL
File storageSupported: Amazon S3Supported: Cloud Storage
Company-managed sourceAvailableNot yet
Own Diakrin address per setupAvailableComing soon
Company domain per setupComing soonNot yet
App data inventoryAvailableNot yet

Before you connect, read the prerequisites for AWS or Google Cloud; the cloud prerequisites overview compares them. Scheduled jobs and general internet access from apps are not offered on any cloud yet. Tell your Diakrin onboarding contact if your first app needs one of these, so you can plan around it before you start.

Create a setup

Open Cloud → Setups → New setup as an organization owner, administrator or Technical administrator. The step names differ slightly between clouds, but the order is the same.

  1. ConfigureOwner or admin

    Name the setup, choose your cloud, pick a template and set a monthly budget ceiling.

  2. Connect cloudOwner, admin or delegated Technical administrator

    Create the reviewed connection in your cloud: AWS or Google Cloud. Diakrin verifies it independently.

  3. Review and createOwner or admin

    Check the network, cost estimate and approval policy, then start creation.

  4. Watch it buildDiakrin

    Preparing → Creating resources → Checking infrastructure → Ready from persisted receipts. You can leave; creation continues.

  5. Ready for apps

    The template's infrastructure is verified and the deployment path is available. Deploying a specific app is a separate, later action.

Templates

Enter a setup name, choose your cloud and pick a template. Each card names what it is for and what it includes. The template's version and digest are pinned when you continue; a newer release is a new, reviewed choice, never a silent upgrade. Display names can change without affecting a saved setup.

TemplateRuns onIncludesNot included
AWS Container AppsECS on FargateYour existing VPC or a new private VPC with endpoints, internal load balancer for employee access, private ECR registry, Amazon S3 file storage, Amazon RDS PostgreSQL 17 (encrypted, deletion-protected, seven-day backups), Secrets Manager credentials, CloudWatch logs, KMS keyQueues, scheduled jobs, public internet hosting
Google Cloud AppsCloud RunIts own private VPC, Cloud SQL PostgreSQL with a private address only, Artifact Registry, a Cloud Storage bucket for app files encrypted with a Cloud KMS key, internal-only Cloud Run. Employees reach apps through the setup's gatewayQueues, scheduled jobs, public internet hosting

Good fits are internal web apps and APIs. An ECS cluster or a Cloud Run project is not a running app: each app adds its own service when it is deployed.

A new AWS setup offers the regions Diakrin has a reviewed price for: today the 17 regions AWS enables by default (the access stack's home region can be any of 34 commercial regions). GovCloud and China need different trust roots. A new Google Cloud setup uses us-central1, shown read-only on the account. Diakrin does not check whether a region is enabled in your account or whether your quotas have room; see AWS region and quotas and Google Cloud quotas.

Only published, reviewed templates appear. If none are available, contact your Diakrin onboarding contact; your other choices are kept.

Connect your AWS account

Before the first setup, an owner, administrator or Technical administrator connects each AWS account once under Cloud → Accounts. Enter the account ID and home region, choose whether to show actual AWS cost, then review the permissions. Diakrin lists every role and policy and what Diakrin can never do, and links the raw template. What the account needs first, and every failure message, is in Connect AWS and create a setup.

Choose Open AWS. AWS opens the CloudFormation page for the stack DiakrinAccess-<id>, where <id> is the first 8 characters of the connection ID, with everything filled in. Review it, acknowledge IAM role creation and choose Create stack. You do not need to come back and click: the Connect page checks every 15 seconds for up to 60 minutes, and Check now checks at once. Diakrin checks the account, the exact template and every role's trust and permissions, and the page shows Connected. If a check fails, the page names the one thing to fix in plain words and offers Update in AWS where an update repairs it.

What the AWS connection createsOne DiakrinAccess stack in your AWS account creates three roles: a reader, a controller and an execution role. Diakrin assumes the controller. It can pass only the execution role, and only CloudFormation can use the execution role to create the setup stack: a VPC, internal load balancer, container registry, PostgreSQL database, secrets, logs and a KMS key.Diakrincontrol planeYOUR AWS ACCOUNTControllerstarts reviewedchangesExecution roleused only byCloudFormationassumepasscreateDIAKRINACCESS STACK · CREATED BY YOU IN AWSA separate reader reports status. Diakrin canpass only this execution role, only for this stack.SETUP STACKPrivate VPCLoad balancerImage registryPostgreSQLSecretsLogs + KMS
Diakrin never holds long-lived AWS keys. It assumes roles in your account, and only CloudFormation can use the role that creates resources.

The stack creates three roles: a Reader (read-only metadata and, if you allow it, the cost export), a Controller that Diakrin assumes to start reviewed changes, and an Execution role that only CloudFormation can use to create resources. Every resource Diakrin creates is tagged diakrin:managed=true and diakrin:connection=<connection ID>, and every role it creates is capped by a permissions boundary. To remove all access, delete the DiakrinAccess-<id> stack.

Create the setup on AWS

In Setup, choose a connected AWS account (the region defaults to its home region), choose Starter or Resilient, and set a monthly budget ceiling. Advanced options holds database size and storage, who approves creation, and the policy for later changes. Review shows the exact template, estimate and ceiling; Create starts the foundation. Diakrin then creates the setup's runtime resources itself; there is nothing more to apply in AWS.

Network

On AWS, in Review, choose where the setup's network lives. By default Diakrin places it in an existing VPC, so several setups can share one network. Diakrin lists the VPCs in the account and region and preselects the only one that has two private subnets in different Availability Zones; with several candidates you pick one. Tick Create a new VPC for this setup to get a dedicated private VPC with its own endpoints instead. On Google Cloud every setup gets its own VPC and there is no choice.

In an existing VPC each setup still gets its own security groups, database, internal load balancer and image registry. Diakrin creates no subnets, routes or endpoints there. Apps are published through CloudFront, which needs an internet gateway on the VPC: Diakrin finds the one your route tables already use and passes it to the setup stack for you, so you enter nothing. A gateway that is attached but that no route table uses is invisible to Diakrin and makes the stack roll back; give a route table a route through it, then try again. Your network must give the chosen private subnets outbound HTTPS to ECR, CloudWatch Logs, Secrets Manager and S3, through a NAT gateway or your own VPC endpoints; Diakrin warns when it finds neither and does not block creation. The network is fixed once the setup is created. Details and error codes: Connect AWS, network.

Google Cloud

Choose Cloud → Accounts → Connect Google Cloud, enter the exact project ID and an account name, and run the one command the console shows in Google Cloud Shell, as an Owner of the project, with billing enabled on it. The command is pinned: it downloads a script, checks its SHA-256 and runs it. It enables the Google APIs Diakrin needs, creates Diakrin's service accounts and custom roles in that project only, and adds Diakrin's keyless access last. No service-account key is created. The account turns Connected by itself, allow up to 5 minutes.

The region is us-central1, shown read-only on the account. Updating Diakrin's access later is the same command at the newer version, never Infrastructure Manager. The full prerequisites, what the script creates and every failure message are in Connect Google Cloud and create a setup. Creating the setup's foundation needs no further Google action from you; Diakrin starts it from the Execution account the script created, after you approve the plan. Cancellation keeps the draft.

Permissions

Organization owners, administrators and Technical administrators create and approve setups; spending ceilings are set by owners and administrators. Technical ownership never grants cloud access, spending or deletion rights. An administrator can delegate connecting AWS to an assigned Technical administrator as technical owner in setup settings; that delegation never includes creating infrastructure or approving spending.

Who approves creation is separate from the policy for later changes:

  • The owner or administrator who creates it (default for new setups): one explicit review and Create infrastructure.
  • A second owner or administrator: Review shows this before the final step. Request approval records the exact request; the setup shows Awaiting approval until a different current owner or administrator approves it. The requester cannot approve their own request.

Setups created before this policy existed keep their previous behaviour: if their later-changes policy was Independent approval, creation also needs a second approver until an owner or administrator changes it. The server enforces the policy in the console, the API and the database.

Costs and approval

The monthly budget ceiling is the most Diakrin will approve for the shared foundation's estimated monthly cost. It is not a cloud billing cap: usage, retained data and other services can cost more. Review shows one estimate when current regional pricing is available, or Estimate unavailable. Unknown pricing is never shown as zero and does not by itself block creation; a known estimate above the ceiling does. Detailed cost assumptions are in Costs.

Verification and recovery

Diakrin checks access automatically while it waits for you in AWS or Google Cloud and immediately before creating anything. A rename, budget change or policy change never sends you back to Connect. A resource change, such as a new size, makes the short-lived connection check out of date, so Create infrastructure repeats it without asking you to reconnect.

After Create infrastructure, the setup shows Preparing → Creating resources → Checking infrastructure → Ready from persisted receipts. You can leave; creation continues and the page resumes when you return. Diakrin shows no percentage or ETA.

If something stops, the setup shows what failed, whether the provider stopped, and one next action:

  • Failed: the provider stopped creating resources. The first resource listed is the cause; the others could not be removed during rollback. Review them with your cloud administrator in your cloud console. Diakrin does not delete or recreate the stack automatically.

- On AWS, if the ECS service role wasn't ready: Diakrin creates the ECS, Elastic Load Balancing and RDS service-linked roles just before it creates each setup's foundation, so this is rare. If it happens, run the command shown, for example aws iam create-service-linked-role --aws-service-name ecs.amazonaws.com, then set up again. - On AWS, if rollback failed: delete the stack in CloudFormation and retain the resources AWS can't delete, remove those resources, then delete the setup in Diakrin and create a new one.

  • Action required: Diakrin can't yet tell whether a submitted request reached the cloud, or the connection needs attention. Check status reconciles first; Diakrin never starts a duplicate.
  • Access needs attention: management access could not be confirmed recently. Your resources are unaffected and the last confirmed state is shown.

Ready for apps means the template's infrastructure is verified and the authorized deployment path is available. It does not mean any specific app is deployed. If the deployment path is not yet available, the setup says Infrastructure ready and names the missing prerequisite.

Maintenance

Policy for later changesChange authority
AutomaticSupported changes within the current approved resource and cost envelope.
Approve critical changesApproval for cost increases, reduced protection and security-impacting changes.
Independent approvalA different current owner or administrator approves each proposed operation.

Monitoring never approves changes, and every policy stays inside your organization's scope, cloud permissions, spending limits and resource protections. Settings changes name, technical owner, budget ceiling and policy; saving records intent and does not change resources or activate controller authority. After creation, resource changes go through Settings → Current cloud maintenance authority.

Technical owner

The authenticated creator becomes the initial technical owner on the server. Reassign responsibility in Settings to an active eligible owner, administrator or Technical administrator. Reassignment is audited and grants no cloud, spending or approval rights.

Technical issues

Persisted actionable infrastructure incidents notify active, enabled organization owner, admin and Technical administrator members. Member and builder roles are excluded.

Accepted by provider means the email service accepted a submission, not that someone read it. Delivered to recipient server requires a verified delivery event. Email problems stay visible; in-app notifications and actions keep working. Incidents resolve only from later recovery evidence; acknowledgment is not recovery.

Disconnect and decommission

Disconnect stops Diakrin's management and keeps cloud resources, apps, data and costs. Removing access is a separate step your cloud administrator takes in the provider: delete the DiakrinAccess-<id> stack on AWS, or run the connect script with --remove on Google Cloud.

Delete removes the setup from Diakrin and stops management. It never deletes anything in your cloud: resources, data, roles, history and audit stay, and charges can continue until you delete them yourself. Before Delete setup is enabled you must confirm that you understand this and type the setup name. Apps that still use the setup must be moved or removed first; Diakrin never moves an app automatically.

On AWS, use the links in the dialog to open the exact stacks in the AWS console: delete the infrastructure stack, then the connection stack. The database is deletion-protected, and its storage, registry, key and logs are retained when the stack is deleted; remove them separately if you want them gone, after taking a final snapshot. Roles you created yourself are never part of this.

On Google Cloud, delete only the resources this setup created, never the whole project. If the setup has an app address, deleting the setup first removes its gateway, DNS delegation, zone and certificate.

Custom hostnames for apps are covered in Company domains.

If Delete says Permissions could not be checked, nothing was changed; try again. A real denial says who can delete instead.

Next stepCloud prerequisites at a glance →