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
| Role | Can |
|---|---|
| User | Use 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 |
| Administrator | Every 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
BootstrapAdminEmailset 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).
| Connection | Role | Set by |
|---|---|---|
| Local | The hub stack's local role, in the hub account | The stack: LocalAccessLevel and LocalRegions. It can't be changed or deleted in the portal |
| Spoke | A role created by the spoke role template in another account, assumed with an external ID | The 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 level | FunctionPilot may | Permissions it allows |
|---|---|---|
ReadOnly | List functions, read configuration, code, metrics and logs, follow logs live, run Logs Insights, read CloudTrail changes, Compute Optimizer recommendations and Cost Explorer data | view, logs, code |
Operate | ReadOnly plus test invocations | plus invoke |
Full | Operate plus configuration, environment variables, code changes from the code editor, versions, aliases and reserved concurrency, and starting AWS Lambda Power Tuning runs | plus 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
- 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.
- 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
RoleArnoutput. 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.
- Id: a short name used in links, for example
- 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.
- 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. - 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.
- People with
manageon a function can now start runs from its Overview, on connections with theFullaccess 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.
| Field | Values |
|---|---|
| Subject | A user (their sign-in email) or a group (the name as your IdP sends it in the groups claim) |
| Connection | One connection, or All connections (including ones you add later) |
| Regions | Some Regions, or All Regions |
| Function name patterns | One 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 |
| Permissions | Any of the table below |
| Description | Optional, for your records |
| Permission | Allows | Implies | Needs the access level |
|---|---|---|---|
view | See the function, its configuration, charts, deployment timeline, findings and memory recommendations | ReadOnly | |
logs | Read its CloudWatch logs, follow them live, run Logs Insights, and see and resolve its error groups | view | ReadOnly |
code | Read its code: download it, the code viewer and comparing versions | view | ReadOnly |
invoke | Run test events (including Run all), and see the public tests of the function | view | Operate |
edit | Change configuration, environment variables and code | view, code | Full |
manage | Publish versions, change aliases and reserved concurrency, and start Power Tuning runs | view | Full |
- 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
codeis separate fromview: give it to the people who need to read the code. Before this permission existed, code download needededit; people witheditkeep it, becauseeditincludescode. - 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:
| Goal | Grant |
|---|---|
| Developers can test freely in staging | group developers, staging, all Regions, *, view logs code invoke |
| The checkout team reads its production functions | group checkout-team, production, eu-west-2, orders-* checkout-* payments-*, view logs |
| Reviewers can read and compare code, but not change it | group reviewers, all connections, all Regions, *, code |
| An on-call engineer can fix configuration and code everywhere | user sam@example.com, all connections, all Regions, *, view logs invoke edit |
| A release manager publishes versions and moves aliases | group 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
$LATESTand 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
OperateorReadOnlyaccess level for its connection. To prevent them for some people, don't give themedit.
Settings
Administration › Settings:
| Setting | Default | Meaning |
|---|---|---|
| Default time range | Last 24 hours | Used when a link has no timeframe of its own. Only ranges your plan allows can be chosen |
| Who sees environment variable values | People with the Edit permission | Or Everyone who can view the function, or Administrators only. Everyone else sees the names only, and can't edit the variables |
| Metrics freshness (minutes) | 5 | 1 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.
| Job | Default | Plan | Runs | What it costs in your AWS bill |
|---|---|---|---|---|
| Last invoked dates | On | Every plan | Once a day | One 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 starts | On | Business | Hourly | One Logs Insights query per Region over the last day of REPORT lines ($0.005 per GB scanned) |
| Error inbox | On | Business | Hourly | One Logs Insights query per Region over the last hour of error lines ($0.005 per GB scanned) |
| Log retention and cost | On | Business | Every 6 hours | Listing log groups (free) and one CloudWatch metric per log group |
| Actual cost from Cost Explorer | Off | Business | Once 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.
| Setting | Meaning |
|---|---|
| IAM Identity Center | People 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 keys | People 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 connections | The 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:
- 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.
- 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.
| Action | When |
|---|---|
bootstrap.bind | The bootstrap admin was bound to a user |
role.put, role.delete | A role was granted or removed |
connection.put, connection.delete | A connection was added, changed or deleted |
connection.power-tuning | A connection's Power Tuning state machine was set, changed or removed |
grant.put, grant.delete | A grant was added, changed or deleted |
settings.put | Settings were changed, including the scheduled jobs |
licence.refresh | An administrator checked the licence |
function.invoke | A test event ran, alone or through Run all (the function, version, status and test; never the payload) |
function.configuration | Configuration or environment variables changed (the names of the changed fields; never values) |
function.code-update | Code 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.concurrency | Versions, aliases or reserved concurrency changed |
function.power-tuning | Someone started a Power Tuning run |
function.code-download | Someone downloaded a function's code |
test.put, test.delete | A saved test was created, changed or deleted |
view.put, view.delete | A saved view of the Functions table was created, changed or deleted |
errors.status | Someone resolved, muted or reopened an error group |
personal.connect, personal.roles, personal.disconnect | Someone connected personal AWS access, chose accounts and permission sets, or disconnected (never tokens or keys) |
access.denied | A 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).
| Status | Meaning |
|---|---|
| Active | The licence is valid |
| Grace period | License Manager is unreachable, or an active licence disappeared (for example while you move between plans). The last active plan keeps working for 72 hours |
| Expired | The grace period ended without an active licence |
| No licence | The 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:
| Starter | Team | Business | Enterprise | |
|---|---|---|---|---|
| AWS accounts | 3 | 10 | 50 | unlimited |
| Saved tests per user | 25 | 200 | 1,000 | unlimited |
| Runs kept per saved test | 5 | 20 | 50 | 100 |
| Audit log kept | 30 days | 90 days | 365 days | 3,650 days |
| Longest time range | 7 days | 30 days | 30 days | 30 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-in | yes | yes | yes | yes |
| 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 access | yes | yes | yes | |
| Findings, Errors page, cold starts, memory right-sizing and Power Tuning, cost estimates, log retention and cost, actual cost, IP allowlist | yes | yes |
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.