What to inspect after a service deploys into your AWS account

By DavidArchitecture

A service running in your AWS account should leave you with more than a successful deployment message. You need to know what was created, how the application reaches it and what authority the vendor has to change it.

For saaslayer's bring-your-own-account path, those questions can be investigated through the foundation stack, service stacks and application configuration. Start with the account and deployment you actually connected.

Find the stacks and their resources

Confirm your AWS identity before inspecting anything. These are read-only AWS CLI commands; use the profile and Region for your deployment, and set STACK_NAME to a stack shown in its deployment details:

aws sts get-caller-identity --query Account --output text
aws cloudformation list-stack-resources \
  --stack-name "$STACK_NAME" \
  --query 'StackResourceSummaries[].{Type:ResourceType,Status:ResourceStatus}' \
  --output table

The CloudFormation console shows physical resource IDs too. Use those IDs to open the actual table, function or user pool rather than guessing which similarly named resource belongs to the deployment.

The Users and Permissions templates declare resources in these groups. Settings and environment determine which ones a particular deployment enables:

Resource groupWhat to inspect
Cognito user and identity poolsThe configured identity resources and app clients
DynamoDB tablesThe tables holding permissions, grants, audit and other service records
Lambda and API GatewayThe handlers and APIs your application calls
EventBridge and workersThe event and background-processing paths enabled for the services
IAM and KMSRuntime roles, policies and encryption configuration
CloudWatchLogs and any alarms enabled for the deployment

A completed stack is useful deployment evidence. Sign-in and a protected application request still need their own checks.

Inspect the deployment authority

The account foundation supplies the cross-account roles used by the managing control plane. Read their trust and permission policies alongside the CloudFormation template.

Three questions are worth recording:

  1. Which control-plane principal can assume the role, under which conditions?
  2. Which stacks and resources can that assumed role manage?
  3. Which permissions boundary constrains the roles created for the deployment?

The trust policy determines who can enter; attached policies and boundaries constrain what the resulting credentials can do. Reviewing only the trusted account ID leaves most of the authority question unanswered.

A resource being in your account does not imply that the vendor has no access to it. The configured roles establish that access. Keep the reviewed foundation version with your record and inspect the changes when upgrading it.

The idea, picturedThe deployment layer and the request path are different.
saaslayer deployment layerDeploy and manage lifecycle
Your AWS account01Your applicationOwn business data and rules02Deployed servicesUsers and Permissions03AWS resourcesCognito · Lambda · DynamoDB01Your applicationOwn business data and rules02Deployed servicesUsers and Permissions03AWS resourcesCognito · Lambda · DynamoDB

Conceptual cloud-prem layout. The deployment layer manages service infrastructure; your application uses the deployed service interfaces or a supported direct integration. This is not a complete resource inventory.

Trace one application request

Use the configuration returned for the deployment to identify the Users and Permissions endpoints. Record the token issuer and any custom-domain dependencies too.

Then follow one protected request:

PartQuestion to answer
Identity verificationWhich issuer and keys does the backend trust?
Application dataWhere does it load the record and determine its actual customer scope?
Permission decisionDoes this integration call the Permissions API or use a supported direct DynamoDB reader?
Business actionWhere does the application enforce the decision and perform the change?

A direct Permissions integration can evaluate a materialized document locally after reading DynamoDB. An HTTP integration calls the deployed API. The permission-document walkthrough explains the common read path and its exceptions.

Try an allowed request and a request from someone without access to that resource. Check the response and the stored result. Resource inventory alone cannot establish that the application enforces the intended boundary.

Keep the inspection with the deployment

Save a short map of the account, Region, stack IDs, service endpoints, foundation version and verification results. Keep credentials out of that map.

That record gives the next investigation a place to start: which resources belong to the service, which authority manages them and which request path the application uses. The deployment guide describes the controlled-beta account model and its operating boundaries.