pogi
Reference

Console

The pages of pogi's web console, and the form posts behind the IAM page.

http://localhost:7644/_pogi/

The console is a web page that pogi serves itself. Open it in a browser on your own machine. It is built for a laptop screen.

PagePathWhat it shows
Home/_pogi/Services in use, resources and recent calls.
Activity/_pogi/requestsEvery call, newest first, in the Requests view. Its Flows view is the Flows page.
Flows/_pogi/flowsEverything one call set off.
Services/_pogi/servicesAll emulated services.
Map/_pogi/mapHow your resources are wired.
Resources/_pogi/resources/{service}Tables of a service's resources.
ToolsSQL, logs, secrets, IAM policy, cost, inbox, chaos, snapshots and connect.
IAM form posts/_pogi/iam/...The requests behind the IAM page buttons.

Press ⌘K (or Ctrl+K) on any page to search services, resources and actions. A cloud picker at the top narrows every page to AWS, Google Cloud or Azure. The sidebar lists the main pages (Home, Activity, Flows, Services and Map), the services that are in use, your pinned services and the tools. The sidebar footer, Home and the Services page show how many services pogi covers, counted as products (the same count as the README). They also show how many have real behavior and how many are Thin.

Service icons

Each service has an icon: the cloud provider's own icon for it, or, when the provider has none for that service, its category icon (Google Cloud) or one of pogi's plain glyphs. Icons show in the sidebar (in the collapsed sidebar the icon replaces the name, and the name is the tooltip), in the header of each service page, in ⌘K results and on Map nodes. A small colored dot on the icon marks the cloud. The Services page and Home tiles show no icons. The icons are not under pogi's MIT license: see Third-party icons.

In use

A service is "in use" when it has had a call, or when it holds more resources than it started with. A service you fill only from the console shows up too. The built-in defaults (the default resource group, project and users) do not count.

Deep, Core and Thin

Every service carries one of three badges. Hover a badge to read what it means, or see Coverage.

  • Deep: real behavior, plus wiring to other services.
  • Core: the main API, with real behavior.
  • Thin: stores your resources and reads them back (create, describe and delete), but nothing runs behind them. That is enough for infrastructure tools such as Terraform.

Home

/_pogi/

Shows how many services are in use (out of the services pogi covers), how many resources they hold, a live feed of recent calls, and quick actions such as saving a snapshot. On the first run it shows a welcome with your endpoint.

Activity

/_pogi/requests

The Requests view shows every call to every service, newest first. Click a call to see its request and response. The same list is in the REST API. The Flows view is the Flows page.

FilterMeaning
Text boxMatches service, operation, path or error code.
ErrorsCalls with a status of 400 or above.
ChaosCalls that a chaos rule changed.
IAM deniedCalls that IAM refused.

Changes you make in the console (creating a queue, deleting a row) are listed too, with a small console label, so you can see what the console did for you. Reads the console makes to draw its own pages are not listed.

The Activity page, Requests view: a live table of calls to Cloud Storage, Blob Storage, DynamoDB and Pub/Sub with their status codes.

Flows

/_pogi/flows

A flow is everything one call set off, across services and clouds: notifications, subscriptions, triggers, retries and dead-letters. Each row shows the first call, the path it took, how many steps there were and how long it all took.

FilterMeaning
AllEvery flow.
FailedFlows with a failed step.
SlowFlows that took more than 1 second.

The Activity page, Flows view: each row is one trace, such as S3 to SQS to Pub/Sub to Blob Storage to Event Grid.

Click a flow to see its steps on a timeline. Click a step for its request and response.

One flow opened: six steps from an S3 PutObject through SQS, Pub/Sub, Blob Storage and Event Grid, with a timeline.

Services

/_pogi/services

Lists all the emulated services, grouped by category, with the full name of each (long names wrap to two lines). Star a service to pin it to the sidebar.

Map

/_pogi/map

Shows your resources as boxes, grouped by cloud, with a line for each connection. Click a resource for its connections. You can export the map as SVG. Resources with no connection are hidden, and the legend says how many.

MarkMeaning
Solid lineA link the service reports from its own settings, such as an S3 bucket notification, an SNS subscription or an event source mapping.
Dotted lineA delivery pogi saw at run time, in the last 15 minutes.
Red dashed lineA dead-letter route: a dead-letter queue that is set up, or a message pogi moved to one.
Pink dotA delivery in the last 10 seconds. It is red when the delivery failed.

The Map page: an S3 bucket wired to an SQS queue, Pub/Sub topics and subscriptions, and storage buckets feeding Eventarc and Event Grid.

Resources

/_pogi/resources/{service}

Click a service under "In use" to browse its resources in tables. Create resources from a form. Every create form has a CLI mirror, which shows the matching command so you can repeat the action in a script.

  • Google forms: the fields the URL needs (such as parent) come first. A locations/* part is filled with us-central1, so parent is complete: projects/pogi/locations/us-central1. A part you must name yourself (a key ring) stays empty.

  • Scope: the pill in the top bar says where the console looks and creates. Click it to change the values. Pick a value from the list or type one. * shows everything, and creates then use the default.

    CloudFieldsShown at firstNew resources go to, when the field is *
    AWSAccount, Region000000000000, the server's regionthe same
    Google CloudProject, Locationproject pogi, every locationlocation us-central1
    AzureSubscription, Resource group, Locationthe default subscription, every group and locationgroup pogi, location eastus

    The lists hold every value pogi has, with a resource count. Reset to defaults clears all of them. A resource whose location is global shows in every location, and picking a region (us-central1) also shows its zones (us-central1-a). With one cloud picked, the pill shows its full scope ("Google Cloud · pogi · all locations"). With All clouds, it says "All clouds", plus "· N filters" when a value is not the default. Home names the scope of each cloud in use.

  • Hidden rows: above each table, the bar says what hides rows ("Showing pogi · us-central1 · 2 topics in other projects or locations") and offers a link to show them. The service's resource count says how many rows the scope hides.

  • Form drawer: the line above a create form says where the new resource goes, in its own cloud ("Kubernetes Engine · pogi · us-central1").

  • Titles: generated forms and menu items use sentence case: "Create cluster", "Create node pool".

  • Empty pages: a page with a Create button says "Create one here, or with your CLI, SDK or Terraform". A page without one leaves out "here".

  • Azure resources: every Azure service page with ARM types has a Create button (a menu when there are several types). It opens the resource editor with the page's type picked. The editor has a Name field, and the ID is built from the scope's subscription, resource group and location (you can still edit it). The starting body works as it is for managed clusters, storage accounts, Key Vaults, Service Bus namespaces and queues, Event Grid topics, virtual networks, PostgreSQL flexible servers, Container Apps environments and apps, container groups, App Service plans and web apps, and Cosmos DB accounts. After a save, the message names the resource ("Managed cluster aks1 saved") and you go back to the page you started from. An editor opened from Resource Manager takes you to the service page that lists the resource, else to Resource Manager. Three pages list what Create makes: Key Vault has a Vaults tab (first, with secret, key and certificate counts), Cosmos DB has an Accounts tab (before Databases), and App Service has an App Service plans tab. Each shows Name, Resource group and Location, and a row opens as JSON.

  • Resource groups: Resource Manager's Create menu has a short "Create resource group" form (name, location). A group's drawer lists the resources in it, each a link to its service page.

  • Kubernetes clusters: EKS, GKE and AKS each have a short "Create cluster" form with defaults from the scope.

    ServiceFieldsNotes
    EKSName, Kubernetes version, Subnets (optional), Role ARNRole ARN starts as arn:aws:iam::<account>:role/eks. With no subnets picked, pogi first makes a VPC and two subnets and the message says so. If the cluster then fails, they are removed again.
    GKEName, Location, Node countLocation starts as the scope's location. This form replaces the generated "Create cluster" form.
    AKSName, Resource group, Location, Node countGroup and location start as the scope's. A group that does not exist is made first, and the message says so.
  • Connect with kubectl: the drawer of an EKS, GKE or AKS cluster has a "Connect with kubectl" part. When the cluster is ready it has a Download kubeconfig button (GET /_pogi/kubeconfig/<service>/<cluster>, a file named <cluster>.kubeconfig), the command that writes the same file the cloud's own way (aws eks update-kubeconfig, pogi kubeconfig gke, az aks get-credentials), and kubectl --kubeconfig <cluster>.kubeconfig get nodes. Before that it says "Available when the cluster is ready". The download answers 404 for an unknown cluster and 409 for one that has no API server yet. The EKS file runs aws eks get-token with pogi's test credentials, so it needs the aws command.

Feedback while you work

  • Busy buttons. While a form is sending, its buttons are locked and the one you pressed says what is happening ("Creating…", "Saving…", "Deleting…"). They come back when the request ends, even if it failed. A double click cannot send twice.
  • Names in messages. Messages say what happened to which resource: "Bucket photos created", "Queue jobs deleted". After a page reload, the message shows as a green bar at the top of the page.
  • Confirm dialog. Deleting, resetting and removing ask first in pogi's own dialog. Cancel is selected, Esc cancels, and nothing is sent. Focus goes back to the button you used.
  • Live rows. While a row is creating, modifying, deleting or in a similar state, the table refreshes itself every 2 seconds. It stops when every row has settled. It waits while you have a row ticked, a menu or drawer open, or a link focused. Rows never show a pop-up on their own: the bell does that.
  • The bell. It lists failed calls, IAM denials, chaos faults and your resources. Titles use the service name ("Cloud Storage objects.get failed"). "Notify me about" are toggle buttons (aria-pressed): Tab to one and press Enter or Space. "See all errors in Activity" opens the Activity page filtered to errors.
  • What counts as an error. The bell, the sidebar count and Home's Errors card count a call with status 400 or more, except a 404 from a read (a GET or HEAD, or an operation named Get, Describe, Head or List). Looking for something that is not there is normal. Activity's Errors filter still shows every status 400 or more.
  • Toasts. They wait their turn: a new one shows after the current one is gone (at most 3 wait). A toast stays while the pointer is on it or it has focus. When one check finds several new problems, you get one toast ("3 calls failed · View") that opens the bell.
  • Background work. When pogi is downloading an image or starting a container for a resource, its status cell says so ("Downloading mariadb:11.4 · 140 of 410 MB", or "Starting…"). A failed row shows the reason in plain words.
  • Activity indicator. A small dot in the top bar shows while pogi has background work running. Click it to see each task and its progress. It is hidden when nothing is running, and it only pulses if your system allows motion.

Some services have their own pages:

ServiceWhat you can do
S3, Cloud Storage, Blob StorageBrowse, upload and download objects.
SQSSend, peek at and purge messages.
LambdaInvoke a function with a test event.
SNS and EventBridgePublish a message or put an event.
DynamoDBOn the Query tab: add an item as plain JSON, and edit or delete a row of the results. The query runs again after each write. An item needs the table's key attributes and must be under 400 KB.
Pub/SubOn the Messages tab: pull messages from a pull subscription without acking them, then ack the ones you tick. Pull and ack does both. Messages you do not ack come back after the ack deadline.
KinesisOn the Records tab: put a record on a stream, and read records from a shard, from the oldest or only new ones.
LambdaInvoke a function with a test event (the box starts with {"hello": "pogi"}). In a function's drawer, upload a .zip to update its code, or edit its environment variables. Delete a function from its row menu or in bulk. "Create event source mapping" links a function to an SQS queue, a Kinesis stream or a DynamoDB stream.
Step FunctionsOn the Run tab, start an execution with a name and a JSON input, and stop one that is running. The new execution opens in the graph.
SNSPublish a message. "Create subscription" subscribes an SQS queue, Lambda function, URL or email address, with raw message delivery and a filter policy if you want them. Delete a subscription from its row menu or in bulk.
EventBridgePut an event. "Put rule" takes a list of targets (Id, ARN and optional Input JSON) and saves them with the rule. Deleting a rule removes its targets first.

Tools

The sidebar lists these under "Tools".

ToolPathWhat it does
SQL editor/_pogi/sqlRuns SQL against RDS, Cloud SQL and Azure databases. It runs statements inside the database's container, so it needs Docker.
Logs/_pogi/logsSearches CloudWatch Logs (Logs Insights), Azure Monitor (KQL) and Cloud Logging.
Secrets/_pogi/secretsShows Secrets Manager, SSM, Secret Manager and Key Vault values. A value stays hidden until you reveal it. Every reveal is logged.
IAM policy/_pogi/iamRecords what each user and role calls, and writes the IAM policy (the rules for who may call what). See Switch IAM modes.
Cost/_pogi/costA rough monthly bill for what is running. See Estimate cost. Its Terraform tab prices Terraform code: see The Terraform page and tab.
Inbox/_pogi/inboxEmail, SMS and push messages your apps send through SES, SNS, Azure Email and Firebase Auth. pogi keeps them here instead of delivering them.
Chaos/_pogi/chaosAdds and removes chaos rules (rules that make chosen calls fail or slow down). See Inject chaos.
Snapshots/_pogi/snapshotsSaves and loads state. See Save and load snapshots.
Connect/_pogi/connectCopy-ready snippets for your shell, the AWS CLI, Terraform, the SDKs, Google Cloud and Azure.

The console shows your calls only. Chaos rules never apply to the console itself.

The Terraform page and tab

/_pogi/terraform and /_pogi/cost/terraform

Terraform, under Tools in the sidebar, loads a Terraform folder or a plan.json and draws the resources. The Cost page's Terraform tab shows the same stack as a table. pogi keeps the last stack that loaded in memory, never on disk. See Estimate Terraform cost and See what a plan changes.

PartWhereWhat it does
StartTerraform pageChoose folder uses the browser's own folder picker, Choose plan.json takes a plan, and Try a sample uses a built-in stack. You can also drop a folder or a plan on the page. The browser sends only Terraform files and plans. pogi tf diagram does the same from the command line.
DiagramTerraform pageThe resources, their references, and for a plan, what it changes. Group by module or network. Pan, zoom, select and export. A panel beside it shows the selected resource.
ExportTerraform pageSVG, PNG, JSON and Markdown.
TotalsCost tabThe monthly cost and one total per cloud. For a plan: the cost before, after and the change.
TableCost tabResources grouped by module, service or cloud, with service, region, monthly price, What drives it and a status (assumed, usage, needs a value, free, not priced). Click a row for its price lines and notes.
Variable filesbothChips for each .tfvars file in the folder. They turn on and off.
Try another sizeCost tabOn a VM, node pool, database or cache. Picking a size is a what-if, and Reset undoes it.
Open diagramCost tabA link to the Terraform page. With nothing loaded, the tab links there too.

The files stay on your machine. The page sends them to your pogi, which reads them in memory and keeps nothing on disk.

Terraform form posts

These are the requests behind the tab. They are not part of the REST API, and they may change between releases. The posts follow the same-origin rule.

Method and pathWhat it does
POST /_pogi/terraform (also POST /_pogi/cost/terraform)One handler for both pages. With files, sent as multipart/form-data (each file's name is its path in the folder), the files become the held stack once they load. A failed or too-large upload keeps the old stack. Without files, it uses the held stack, or returns 400 if none is held. Fields: vars (a variable file, repeatable), sizes (JSON of address to size), expanded (a module to draw in full, repeatable), group (module, service or cloud: the table), layout (module or network: the diagram), view (table or diagram: which HTML to return), format (json, markdown or svg for a download) and state (set it to make the other view fields replace the held ones; with files they always do).
GET /_pogi/terraformThe Terraform page, showing the held stack.
GET /_pogi/cost/terraform/sizesThe size list for one row, as HTML. Query: column, region, current, address, attr.
GET /_pogi/terraform/sampleThe built-in sample, as JSON of path to file content.

pogi checks every file name (relative, no ..) and the limits, and returns 400 or 413 with a message when one fails.

IAM form posts

/_pogi/iam/...

These are the requests behind the buttons on the IAM page. They are HTML forms, not JSON: send the fields as application/x-www-form-urlencoded. They are not part of the REST API, and they may change between releases.

Every POST returns 303 with no body. A failed action redirects to an address with err= in it, so check the Location header. These calls follow the same-origin rule.

Method and pathFieldsWhat it does
POST /_pogi/iam/modemode: off, soft or strictSets the IAM mode for all clouds. Any other value is refused: the response redirects to the IAM page with err=unknown mode, and the mode does not change.
GET /_pogi/iam/policyprincipal: a user or role ARN (the ID AWS gives a resource). fmt=tf for Terraform.Returns the policy recorded for the principal. If nothing is recorded for it, the response is 404 with nothing recorded for <principal>. Without principal, it is 404 with missing principal.
POST /_pogi/iam/attachprincipalCreates or updates the policy pogi-<name> and links it to the principal.
POST /_pogi/iam/undoprincipal, policy, arn, attached (the version), prev, linkedUndoes an attach. The attach redirect carries these values.
POST /_pogi/iam/restartprincipalClears what is recorded for the principal.
GET /_pogi/iam/gcp/snippetprincipal: a member such as serviceAccount:…. fmt=tf. role=custom.Returns the gcloud commands, or Terraform, that grant the recorded roles.
POST /_pogi/iam/gcp/attachprincipal, role=customAdds the role bindings to the project.
POST /_pogi/iam/gcp/undou, principalUndoes an attach. u is in the attach redirect.
POST /_pogi/iam/gcp/restartprincipalClears what is recorded.
GET /_pogi/iam/azure/policyprincipal. fmt=cli.Returns the custom role as JSON, or as Azure CLI commands.
POST /_pogi/iam/azure/attachprincipalCreates the custom role and assigns it.
POST /_pogi/iam/azure/undoprincipal, role, roleid, assignment, scope, existedUndoes an attach. The attach redirect carries these values.
POST /_pogi/iam/azure/restartprincipalClears what is recorded.

Set the mode:

curl -si -X POST localhost:7644/_pogi/iam/mode -d mode=soft | grep -iE '^(HTTP|location)'
Response
HTTP/1.1 303 See Other
Location: /_pogi/iam?ok=Enforcement%3A+soft&principal=

An unknown mode redirects with an error:

Response
HTTP/1.1 303 See Other
Location: /_pogi/iam?err=unknown+mode+%22bogus%22

Get the recorded policy for a user:

curl "localhost:7644/_pogi/iam/policy?principal=arn:aws:iam::000000000000:user/dev"
Response
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:ListAllMyBuckets",
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": "sqs:ListQueues",
      "Resource": "*"
    }
  ]
}

Ask for a principal that has no recorded calls and the response is 404 with nothing recorded for <principal>.

Attach it. The redirect carries the values that undo needs:

curl -si -X POST localhost:7644/_pogi/iam/attach -d principal=arn:aws:iam::000000000000:user/dev | grep -i '^location'
Response
Location: /_pogi/iam?arn=arn%3Aaws%3Aiam%3A%3A000000000000%3Apolicy%2Fpogi-dev&attached=v1&linked=1&ok=Attached+v1+of+pogi-dev&policy=pogi-dev&prev=&principal=arn%3Aaws%3Aiam%3A%3A000000000000%3Auser%2Fdev

See also

On this page