← ALL DOCS
DOCS · ADMINISTRATORS

Administrator guide

Administrators manage FunctionPilot from Administration in the portal (PortalUrl): connections, grants, roles, settings, the audit log, and the licence. Everything is stored in the stack's DynamoDB table in your account, and every change is written to the audit log.

Roles

RoleCan
UserUse the functions their grants allow: view, read logs, read code, invoke, edit or manage, as granted. Save tests and views, and run Logs Insights queries
AdministratorEvery permission on every function of every connection (still bounded by each connection's access level), plus Administration: connections, grants, roles, settings, audit log, licence. Administrators can change and delete anyone's saved tests and shared views
  • Everyone who signs in without a role entry is a User, and sees no functions until a grant applies to them.
  • Roles and grants match the user's email or groups. The email must be trusted: asserted by your SAML IdP, verified by your OIDC IdP (email_verified), or marked verified in the Cognito user pool (Identity providers).
  • In Administration › Roles, choose User or Group, enter the email or the group name exactly as your IdP sends it, choose Administrator or User, and Save role. A role for a user wins over a role for one of their groups, so you can make a group administrators and keep one member a User. A change applies on the user's next request.
  • You can't remove your own Administrator role. Grant it to at least one more person or group.

The bootstrap admin

BootstrapAdminEmail (a stack parameter) is the bootstrap admin. The first person who signs in with that email is bound to it by their immutable user ID (the Cognito sub) and is always an Administrator, which prevents lock-out. The Roles page shows the entry as "Set by the stack (bootstrap admin)". The binding is recorded in the audit log (bootstrap.bind). Someone else who later signs in with the same email address but a different user ID is not the bootstrap admin.

Recovering the bootstrap admin

Reset the binding when the bootstrap admin's user ID changes (the user was recreated, the IdP issues a new subject, or you switched IdentityProvider). Either:

  • Use a different person: update the stack and change BootstrapAdminEmail. The first sign-in with the new email takes over the binding.
  • Keep the same email: update the stack with BootstrapAdminEmail set to another address you can sign in with, and sign in with it once. Then set it back and sign in with the original email, which takes the binding over again.

If another Administrator can still sign in, they can simply grant the Administrator role to the person by email under Administration › Roles.

Connections

A connection is one IAM role FunctionPilot assumes in one AWS account (Administration › Connections).

ConnectionRoleSet by
LocalThe hub stack's local role, in the hub accountThe stack: LocalAccessLevel and LocalRegions. It can't be changed or deleted in the portal
SpokeA role created by the spoke role template in another account, assumed with an external IDThe spoke stack's AccessLevel, and the Regions you choose here

Access levels

The access level of a connection's role is the ceiling for everyone, administrators included. Grants can narrow it per user or group but never widen it.

Access levelFunctionPilot mayPermissions it allows
ReadOnlyList functions, read configuration, code, metrics and logs, follow logs live, run Logs Insights, read CloudTrail changes, Compute Optimizer recommendations and Cost Explorer dataview, logs, code
OperateReadOnly plus test invocationsplus invoke
FullOperate plus configuration, environment variables, code changes from the code editor, versions, aliases and reserved concurrency, and starting AWS Lambda Power Tuning runsplus edit, manage

No access level lets FunctionPilot create or delete functions, or use IAM, CloudFormation, DynamoDB or S3 in the target account. Code changes are possible only at Full, and only through the code editor, which bypasses your deployment pipeline (see Code editing). Use ReadOnly for production accounts unless teams need to test there.

Add a connection

  1. Deploy the spoke role in the account (installation guide). How to connect another AWS account at the bottom of the page shows the steps, the template URL and an AWS CLI command.
  2. Choose Add connection and enter:
    • Id: a short name used in links, for example production. It can't be changed later.
    • Name and AWS account id.
    • Access level: the same as the spoke stack's AccessLevel.
    • Role ARN: the spoke stack's RoleArn output. It must be in that account and under the /functionpilot/ path.
    • External ID: the same secret you gave the spoke stack (Generate makes a new one if you haven't deployed the stack yet). It is stored and never shown again; when you edit the connection, leave it empty to keep it.
    • Regions to show.
  3. Save connection, then choose Test. The test assumes the role and lists the functions in each Region, and reports each Region's result or AWS error.

Each distinct AWS account counts against your plan's account limit, the hub account included (3 on Starter, 10 on Team, 50 on Business, unlimited on Enterprise). When the limit is reached, Add connection is disabled. Deleting a connection makes FunctionPilot stop using the role and makes grants on it stop applying; the role stays in the account until you delete its stack.

Power Tuning

Business and above. AWS Lambda Power Tuning (opens in a new tab) is an open-source Step Functions state machine that runs a function at several memory sizes and reports the cost and speed of each. FunctionPilot doesn't install it; you deploy it in your own accounts, and FunctionPilot starts it and shows the results on a function's Overview.

  1. In the connection's AWS account, deploy aws-lambda-power-tuning from the AWS Serverless Application Repository (the Set up dialog links to it). Keep the default state machine name: it must contain powerTuning (with that capitalisation), because the connection role may only start state machines with that in their name. The application's settings decide which functions it may invoke; the default is all of them.
  2. In Administration › Connections, choose Set up next to Power Tuning on the connection and paste the state machine's ARN. It must be in the connection's account.
  3. People with manage on a function can now start runs from its Overview, on connections with the Full access level.

Change replaces the ARN and Turn off removes it. Changes are audited (connection.power-tuning). Each Power Tuning run invokes the function as many times as asked, and those invocations, the state machine's steps and its own Lambda functions are billed in that account as usual.

Grants

A grant gives a user or a group permissions on the functions whose names match patterns, on a connection (or all) in some Regions (or all) (Administration › Grants). A new grant, or a change, applies on the user's next request.

FieldValues
SubjectA user (their sign-in email) or a group (the name as your IdP sends it in the groups claim)
ConnectionOne connection, or All connections (including ones you add later)
RegionsSome Regions, or All Regions
Function name patternsOne per line, up to 50, case-sensitive. * matches any run of characters, ? exactly one. For example orders-* or payments-api-?. Letters, digits, - and _ only besides the wildcards
PermissionsAny of the table below
DescriptionOptional, for your records
PermissionAllowsImpliesNeeds the access level
viewSee the function, its configuration, charts, deployment timeline, findings and memory recommendationsReadOnly
logsRead its CloudWatch logs, follow them live, run Logs Insights, and see and resolve its error groupsviewReadOnly
codeRead its code: download it, the code viewer and comparing versionsviewReadOnly
invokeRun test events (including Run all), and see the public tests of the functionviewOperate
editChange configuration, environment variables and codeview, codeFull
managePublish versions, change aliases and reserved concurrency, and start Power Tuning runsviewFull

  • A user's permissions on a function are the union of every grant that matches them, through their email or any of their groups, capped by the connection's access level. The form shows Above ReadOnly (or the level) next to a permission the chosen connection can't allow.
  • Matching functions previews which loaded functions the patterns match. Functions created later that match are covered automatically.
  • Seeing environment variable values is a separate setting (see Settings), not a permission.
  • Code can hold secrets and business logic, so code is separate from view: give it to the people who need to read the code. Before this permission existed, code download needed edit; people with edit keep it, because edit includes code.
  • A user with no matching grant gets "Function not found" for that function: FunctionPilot doesn't reveal that it exists.
  • Grants don't apply to people working with personal AWS access; AWS decides for them.

How grants are enforced

Grants are enforced twice. FunctionPilot checks them on every request, and every AWS call runs with temporary credentials that a per-request session policy limits to exactly the actions and function ARNs the user's grants allow. Even if FunctionPilot's own check had a bug, AWS would refuse anything outside the grants. For example, the session policy allows reading a function's code only on the functions where the user has code. Every session carries the user's email as its source identity, so CloudTrail in each account names the person.

If someone's grants on one function would make a session policy larger than AWS allows, FunctionPilot refuses the request ("too many grants") rather than widening it. Combine grants: use groups, and patterns such as orders-* instead of many single names.

Examples:

GoalGrant
Developers can test freely in staginggroup developers, staging, all Regions, *, view logs code invoke
The checkout team reads its production functionsgroup checkout-team, production, eu-west-2, orders-* checkout-* payments-*, view logs
Reviewers can read and compare code, but not change itgroup reviewers, all connections, all Regions, *, code
An on-call engineer can fix configuration and code everywhereuser sam@example.com, all connections, all Regions, *, view logs invoke edit
A release manager publishes versions and moves aliasesgroup release, production, all Regions, *, manage

Code editing

On the Team plan and above, people with edit on a function, on a connection with the Full access level, can change its code in the browser (zip functions only). This is meant for urgent fixes and experiments:

  • The change goes straight to $LATEST and bypasses your deployment pipeline. FunctionPilot warns about this in the editor and before every deployment. Your repository won't have the change, and the next pipeline deployment overwrites it.
  • Each deployment is audited (function.code-update) with the paths of the changed files, never their contents, and appears in the function's timeline as a code deployment by FunctionPilot, with the person's email in CloudTrail.
  • A deployment is refused if someone else deployed newer code in the meantime.
  • To prevent code changes in an account, use the Operate or ReadOnly access level for its connection. To prevent them for some people, don't give them edit.

Settings

Administration › Settings:

SettingDefaultMeaning
Default time rangeLast 24 hoursUsed when a link has no timeframe of its own. Only ranges your plan allows can be chosen
Who sees environment variable valuesPeople with the Edit permissionOr Everyone who can view the function, or Administrators only. Everyone else sees the names only, and can't edit the variables
Metrics freshness (minutes)51 to 60. How long the function table's numbers (for ranges up to 24 hours) are reused before CloudWatch is asked again, and how often open pages refresh. Higher values cost less
Allowed IP ranges (CIDR)empty (any network)Business and above. One IPv4 or IPv6 range per line. People outside these ranges can sign in but can't use FunctionPilot. A list that doesn't contain your own address is refused, so you can't lock yourself out

Scheduled jobs

Some data costs money each time AWS is asked for it. Instead of asking whenever someone opens a page, a worker in the stack runs every hour, reads it with your connections' roles, and keeps the results for everyone, so viewing them costs nothing extra. Each job can be turned off here; turn off what you don't use to save its AWS charges. The jobs cover the connections in Administration › Connections, never personal connections.

JobDefaultPlanRunsWhat it costs in your AWS bill
Last invoked datesOnEvery planOnce a dayOne CloudWatch metric per function per day (about $0.01 per 1,000 metrics). While it is on, a missing date is also read when someone opens the table. Off: no new last invoked dates
Cold startsOnBusinessHourlyOne Logs Insights query per Region over the last day of REPORT lines ($0.005 per GB scanned)
Error inboxOnBusinessHourlyOne Logs Insights query per Region over the last hour of error lines ($0.005 per GB scanned)
Log retention and costOnBusinessEvery 6 hoursListing log groups (free) and one CloudWatch metric per log group
Actual cost from Cost ExplorerOffBusinessOnce a day per account$0.01 per Cost Explorer request. Needs resource-level data turned on first (see Cost Explorer)

A job your plan doesn't include shows a plan badge and doesn't run. Logs Insights is billed for all the log data in the time range it searches, so its cost grows with how much your functions log. The cold starts job searches the last day every hour, so on accounts with very busy logs it is the largest scheduled cost: check the Insights scanned figure on the usage card after a day or two, and turn the job off if you don't use the cold start columns. The worker's own Lambda time is small.

Personal AWS access settings

Team and above. These turn on personal AWS access, where people act with their own AWS permissions instead of grants. The stack parameters IdentityCenterStartUrl, IdentityCenterRegion and PersonalAccessKeys set the first values; from then on the settings here apply.

SettingMeaning
IAM Identity CenterPeople connect their Identity Center session and choose their accounts and permission sets. Needs the AWS access portal URL (https://<id>.awsapps.com/start) and the Identity Center Region. While this is on, people who sign in to FunctionPilot through IAM Identity Center use their permission sets only, and grants never apply to them
Access keysPeople may connect an IAM user's access keys (those who sign in through IAM Identity Center while it is on use Identity Center instead). FunctionPilot keeps only the temporary credentials, never the secret key
Regions for personal connectionsThe Regions shown for every personal connection. By default, the local connection's Regions

With both methods off, everyone works through grants on your connections again. People can always disconnect a stored session, whatever the settings.

AWS services to turn on

Two features read data that the AWS account owner has to turn on first. FunctionPilot explains this where the data would appear, and works without them.

Cost Explorer

Business and above. The Actual cost (14 days) column shows what AWS Cost Explorer reports per function, beside FunctionPilot's estimate. To use it:

  1. In your AWS Organization's management account (or in a standalone account), open the Cost Explorer preferences in the AWS Billing and Cost Management console and turn on resource-level data at daily granularity for AWS Lambda. Data can take a day or two to appear.
  2. In Administration › Settings › Scheduled jobs, turn on Actual cost from Cost Explorer.

The job then runs once a day for each connected account and reads the last 14 days of daily Lambda cost per function. Each request costs $0.01, and an account usually needs one request a day (an account with very many functions can need a few more), so for example 10 accounts cost about $3 a month. The connection roles already have the permission they need (ce:GetCostAndUsageWithResources). Until the data is available, the Functions page says that actual cost is not enabled for those accounts.

Compute Optimizer

Business and above. The Memory right-sizing section on a function's Overview shows AWS Compute Optimizer's memory recommendation. Compute Optimizer only recommends for accounts that have opted in:

  • Open the Compute Optimizer console in the account (any Region), choose Get started, then Opt in. In an AWS Organization, the management account can opt in every member account at once. Lambda recommendations are free.
  • Compute Optimizer needs about 14 days of metrics and at least 50 invocations before it recommends a memory size for a function.

Until then the section says the account is not enrolled, or that there is not enough data. Recommendations are read at most once a day per function.

Audit log

Administration › Audit log lists events by UTC day, newest first, with the time, the actor, the action, the target and the source IP. Open an event for its details. Filter this page searches the events shown.

ActionWhen
bootstrap.bindThe bootstrap admin was bound to a user
role.put, role.deleteA role was granted or removed
connection.put, connection.deleteA connection was added, changed or deleted
connection.power-tuningA connection's Power Tuning state machine was set, changed or removed
grant.put, grant.deleteA grant was added, changed or deleted
settings.putSettings were changed, including the scheduled jobs
licence.refreshAn administrator checked the licence
function.invokeA test event ran, alone or through Run all (the function, version, status and test; never the payload)
function.configurationConfiguration or environment variables changed (the names of the changed fields; never values)
function.code-updateCode was changed in the code editor (the paths of the changed files, and the version if one was published; never contents)
function.publish-version, function.alias.put, function.alias.delete, function.concurrencyVersions, aliases or reserved concurrency changed
function.power-tuningSomeone started a Power Tuning run
function.code-downloadSomeone downloaded a function's code
test.put, test.deleteA saved test was created, changed or deleted
view.put, view.deleteA saved view of the Functions table was created, changed or deleted
errors.statusSomeone resolved, muted or reopened an error group
personal.connect, personal.roles, personal.disconnectSomeone connected personal AWS access, chose accounts and permission sets, or disconnected (never tokens or keys)
access.deniedA change or invocation was refused for a missing permission or an address outside the IP allowlist

Events are kept for your plan's audit days: 30 on Starter, 90 on Team, 365 on Business and 3,650 on Enterprise. Each event is also written as a JSON line ("kind": "audit") to the API's log group, /aws/lambda/<NamePrefix>-api, kept for the stack's LogRetentionDays, so you can forward it to your SIEM.

For a full trail, CloudTrail in each account records every AWS call FunctionPilot makes, with sourceIdentity set to the user's email. Calls made by the scheduled jobs carry the source identity jobs@functionpilot.worker instead, so you can tell them apart from people's actions.

Licence and about

Administration › Licence and about shows your licence, your plan, AWS usage and the installed version.

Licence

FunctionPilot reads your AWS Marketplace licence from AWS License Manager in the hub account. The page shows the status, the plan, the entitlements, when the licence is valid until and when it was last checked. Check licence now reads it again (FunctionPilot otherwise rechecks every few minutes).

StatusMeaning
ActiveThe licence is valid
Grace periodLicense Manager is unreachable, or an active licence disappeared (for example while you move between plans). The last active plan keeps working for 72 hours
ExpiredThe grace period ended without an active licence
No licenceThe account has no FunctionPilot licence

Without a valid licence every page except this one says a licence is required. Nothing is deleted; subscribing again unlocks FunctionPilot.

Plan

What your plan includes lists the limits and features of your plan:

StarterTeamBusinessEnterprise
AWS accounts31050unlimited
Saved tests per user252001,000unlimited
Runs kept per saved test52050100
Audit log kept30 days90 days365 days3,650 days
Longest time range7 days30 days30 days30 days
Function table with last invoked, tags and private saved views, function pages, code download, environment secret warnings, test workbench with assertions and Run all, private saved tests with history, log explorer and Live tail page with live tail by polling, grants, audit log, IAM Identity Center and Cognito sign-inyesyesyesyes
Shared (public) tests and views, configuration changes, code viewer, version compare and code editor, deployment timeline, streaming live tail, Logs Insights, SAML and OIDC sign-in, personal AWS accessyesyesyes
Findings, Errors page, cold starts, memory right-sizing and Power Tuning, cost estimates, log retention and cost, actual cost, IP allowlistyesyes

Features your plan doesn't include show a plan badge, and FunctionPilot refuses them. To change plan, see Upgrading.

AWS usage

FunctionPilot's own AWS cost is mostly CloudWatch: metrics are billed per metric returned and Logs Insights per GB scanned. The CloudWatch usage card shows the last 30 days: the estimated cost, what the shared cache saved, the cache hit rate, the metrics requested and the data Insights scanned (including the scheduled jobs' queries), with a chart of metrics requested from CloudWatch and served from the cache per day. Once the features are in use it also shows:

  • Live tail minutes: CloudWatch Logs Live Tail session minutes used by streaming live tail (about $0.01 per minute). People who follow the same functions with the same filter share one session, and a session stops when nobody is watching.
  • Cost Explorer requests: the requests of the daily actual cost job ($0.01 each).

The estimates use list prices (about $0.01 per 1,000 metrics, $0.005 per GB scanned, $0.01 per Live Tail minute and $0.01 per Cost Explorer request); your AWS bill is the record. To lower the cost, raise Metrics freshness in Settings and turn off the scheduled jobs you don't use.

Version and updates

The version card shows the installed version and, when update checks are on (UpdateChecks), the latest release, its summary and release notes, whether it is a security release, the oldest supported version, and How to upgrade with the template URL and an AWS CLI command. A banner on the Administration pages announces a newer release once. See Upgrading.

Something unclear or missing? Email support@cloudcertainty.com.

Tell us what you have. We'll make it better and cheaper.

Send a short description of your current setup. We will tell you what we would improve, what it would cost, and where the savings are. A considered reply from an engineer, not a sales sequence.

TELL US ABOUT YOUR SETUP →