Verify your email to continue.
Enter your email address. We'll send a 6-digit one-time code.
Enter the 6-digit code sent to
Didn't receive the code?
check_circle Email verified
Which AWS account?
We'll use this to generate your read-only role.
Connect a read-only AWS role.
plainfra uses this role to query AWS metadata, metrics, costs, and security findings. It cannot read the data you store or change your resources. Logs stay readable as evidence.
Granting access to account .
Nothing is charged for the trial.
visibility What plainfra can see
- Resource metadata: instances, buckets, databases, IAM settings, VPCs, security groups, certificates, and DNS records.
- Operational signals: CloudWatch metrics, Cost Explorer spend, CloudTrail event metadata, and security findings.
- Enough context to answer AWS questions with resource IDs, costs, regions, and risk notes.
- EC2 metadata only: instances and their types, volumes, snapshots, AMIs, security groups, VPCs, subnets, route tables, NAT gateways, and Elastic IPs.
- Enough to answer what is running, what is sitting idle, and which security groups are open to the internet.
- Nothing else. No costs, no S3, no IAM, no databases, no logs. You can upgrade to full read-only at any time.
block What plainfra cannot touch
- No create, update, or delete actions are allowed. The few calls in AWS's read-only policy that start a job or run a managed AI service are denied too. The one exception is a CloudWatch Logs Insights query, which plainfra starts and stops to read logs.
- plainfra can list that a bucket exists. It cannot read the objects inside it.
- Explicit denies block object contents, database rows, stream records, query results, source code, your end users' details, messages, secrets, SecureString parameters, KMS decryption (logs excepted, so they stay readable), credential and token issuers, Lambda invocation, SQL execution, and API key values.
- No create, update, start, stop, or delete actions are allowed.
- Every service other than EC2 is simply not granted, and an explicit deny list sits on top as a floor.
ec2:Describe*is almost all metadata. The one exception is an instance's bootstrap script (user data); plainfra masks anything that looks like a credential before it reaches a model or is stored. Console output, screenshots, and Windows password data are separate permissions this role does not ask for.
handshake Why ExternalId matters
ExternalId binds this role to your plainfra customer record. The role can only be assumed by plainfra's own service roles (the assistant and reports, and the MCP gateway, plus the investigation service once it is enabled for your account), not by plainfra's account at large, and only with your unique ExternalId. Each session lasts up to 1 hour and is issued on demand.
undo How to disconnect
Delete the plainfra-ReadOnly CloudFormation stack from your AWS Console. AWS removes the role within about a minute, and plainfra loses access. Deleting the role also ends sessions already issued. To cut off access without deleting the role, see Access and revocation.
"I built this with the read-only model from day one. It is the same access model I'd want before installing a tool in an account I look after."
Tim Fraser | Triont
Want to inspect it first?
Review the JSON policy (the attached ReadOnlyAccess policy and the PlainfraBoundary policy), CloudFormation template, and CloudShell script before you deploy anything.
expand_more
Want to inspect it first?
Review the JSON policy (the attached ReadOnlyAccess policy and the PlainfraBoundary policy), CloudFormation template, and CloudShell script before you deploy anything.
Copy the policy into your AI assistant and ask what it allows and denies. The important part is the deny list: it blocks data contents, secrets, credentials, code, and execution. Logs stay readable.
{
"TrustPolicy": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowPlainfraAssumeWithExternalId",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::121754142582:role/plainfra-lambda-execution"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"sts:ExternalId": "<your-unique-external-id>"
}
}
},
{
"Sid": "AllowPlainfraGatewayAssumeWithExternalId",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::121754142582:role/plainfra-mcp-execution"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"sts:ExternalId": "<your-unique-external-id>"
}
}
}
]
},
"ManagedPolicyArns": [
"arn:aws:iam::aws:policy/ReadOnlyAccess"
],
"PlainfraBoundary": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowLogDecryption",
"Effect": "Allow",
"Action": "kms:Decrypt",
"Resource": "*",
"Condition": {
"StringLike": {
"kms:ViaService": "logs.*.amazonaws.com"
}
}
},
{
"Sid": "DenyDecryptionExceptLogs",
"Effect": "Deny",
"Action": "kms:Decrypt",
"Resource": "*",
"Condition": {
"StringNotLike": {
"kms:ViaService": "logs.*.amazonaws.com"
}
}
},
{
"Sid": "DenyDirectoryBucketSessions",
"Effect": "Deny",
"Action": "s3express:CreateSession",
"Resource": "*"
},
{
"Sid": "DenyObjectContents",
"Effect": "Deny",
"Action": [
"s3:GetObject",
"s3:GetObjectVersion",
"s3:GetObject*Torrent",
"s3:GetObjectVersionForReplication",
"s3:GetObject*Annotation",
"s3-object-lambda:GetObject",
"s3-object-lambda:GetObjectVersion",
"s3tables:GetTableData",
"s3-outposts:GetObject",
"s3-outposts:GetObjectVersion",
"s3-outposts:GetObjectVersionForReplication",
"glacier:GetJobOutput",
"mediastore:GetObject",
"ebs:GetSnapshotBlock",
"elasticfilesystem:ClientMount",
"codecommit:GitPull",
"codecommit:GetBlob",
"codecommit:GetFile",
"codecommit:GetFolder",
"codecommit:GetTree",
"codecommit:Get*Differences",
"codecommit:*MergeConflicts",
"codecommit:GetComment",
"codecommit:GetComments*",
"lambda:GetFunction",
"lambda:GetLayerVersion",
"codeartifact:GetPackageVersionAsset",
"codeartifact:ReadFromRepository",
"ecr:GetDownloadUrlForLayer",
"greengrass:GetComponentVersionArtifact",
"workmailmessageflow:GetRawMessageContent",
"omics:GetReadSet",
"omics:GetReference",
"medical-imaging:GetImageFrame",
"medical-imaging:GetImageSetMetadata",
"qbusiness:GetDocumentContent",
"qbusiness:GetMedia",
"sagemaker-geospatial:GetTile",
"medialive:DescribeInputDeviceThumbnail",
"lakeformation:GetWorkUnitResults",
"kinesisvideo:GetMedia*",
"kinesisvideo:GetClip",
"kinesisvideo:Get*StreamingSessionURL",
"kinesisvideo:GetImages",
"support:DescribeAttachment",
"connect:GetAttachedFile",
"athena:GetCalculationExecutionCode",
"glue:GetStatement",
"glue:ListStatements",
"wisdom:QueryAssistant",
"wisdom:Retrieve",
"logs:Unmask"
],
"Resource": "*"
},
{
"Sid": "DenyConsumptionAndUnrestrictedExecution",
"Effect": "Deny",
"Action": [
"sqs:ReceiveMessage",
"rds-data:ExecuteStatement",
"rds-data:BatchExecuteStatement",
"rds-data:ExecuteSql",
"redshift-data:ExecuteStatement",
"redshift-data:BatchExecuteStatement",
"qldb:SendCommand",
"es:ESHttpPost"
],
"Resource": "*"
},
{
"Sid": "DenyDynamoDbRecords",
"Effect": "Deny",
"Action": [
"dynamodb:GetItem",
"dynamodb:BatchGetItem",
"dynamodb:Query",
"dynamodb:Scan",
"dynamodb:PartiQLSelect",
"dynamodb:GetRecords",
"dynamodb:GetShardIterator",
"dynamodb:SearchVectors",
"dax:*GetItem",
"dax:Query",
"dax:Scan"
],
"Resource": "*"
},
{
"Sid": "DenyKeyspacesRows",
"Effect": "Deny",
"Action": "cassandra:Select",
"NotResource": "arn:aws:cassandra:*:*:/keyspace/system*"
},
{
"Sid": "DenyRecordReads",
"Effect": "Deny",
"Action": [
"kinesis:GetRecords",
"kinesis:GetShardIterator",
"kinesis:SubscribeToShard",
"cassandra:GetRecords",
"cassandra:GetShardIterator",
"athena:GetQueryResults*",
"redshift-data:GetStatementResult",
"neptune-db:GetStreamRecords",
"neptune-db:ReadDataViaQuery",
"timestream:Select",
"sdb:Select",
"sdb:GetAttributes",
"es:ESHttpGet",
"es:ESHttpHead",
"qldb:GetRevision",
"qldb:GetBlock",
"qldb:GetDigest",
"healthlake:ReadResource",
"healthlake:SearchWith*",
"kendra:Query",
"kendra:Retrieve",
"transcribe:Get*",
"iotanalytics:GetDatasetContent",
"ses:GetMessageInsights",
"frauddetector:GetEvent",
"iot:GetThingShadow",
"iot:*RetainedMessage*",
"iotwireless:GetPositionEstimate",
"iotwireless:GetResourcePosition",
"geo:*DevicePosition*",
"xray:BatchGetTraces",
"ses:GetArchiveMessage*",
"ses:GetArchiveSearchResults",
"rekognition:ListFaces",
"rekognition:Search*",
"rekognition:GetFaceSearch",
"rekognition:GetFaceLivenessSessionResults",
"macie2:GetSensitiveDataOccurrences",
"lex:GetUtterancesView",
"lex:ListAggregatedUtterances",
"textract:GetDocument*",
"textract:GetExpenseAnalysis",
"textract:GetLending*",
"sagemaker:*GetRecord",
"sagemaker:ListRecords",
"s3vectors:GetVectors",
"s3vectors:ListVectors",
"s3vectors:QueryVectors",
"glue:GetEntityRecords",
"profile:BatchGetProfile",
"profile:GetSimilarProfiles",
"profile:ListProfileObjects",
"profile:SearchProfiles",
"connect:GetContactAttributes",
"connect:SearchContacts",
"connect:DescribeContact",
"connect:ListContactReferences",
"connect:DescribeContactEvaluation",
"connect:ListRealtimeContactAnalysisSegments*",
"connect:BatchDescribeDataTableValue",
"connect:ListDataTable*Values",
"cases:GetCase",
"cases:Search*",
"cognito-sync:ListRecords",
"lex:GetSession",
"cloudfront-keyvaluestore:GetKey",
"cloudfront-keyvaluestore:ListKeys",
"chime:GetChannelMessage",
"chime:ListChannelMessages",
"chime:GetSpeakerSearchTask",
"rum:GetAppMonitorData"
],
"Resource": "*"
},
{
"Sid": "DenyEndUserRecords",
"Effect": "Deny",
"Action": [
"cognito-idp:ListUsers*",
"cognito-idp:AdminGetUser",
"cognito-idp:GetUser",
"cognito-idp:AdminGetDevice",
"cognito-idp:AdminListDevices",
"cognito-idp:GetDevice",
"cognito-idp:ListDevices",
"mobiletargeting:Get*Endpoint*",
"mobiletargeting:GetInAppMessages",
"ses:GetContact",
"ses:ListContacts",
"chime:GetAttendee",
"chime:ListAttendees",
"sns:ListSubscriptions*",
"sns:GetSubscriptionAttributes",
"sns:ListEndpointsByPlatformApplication",
"sns:GetEndpointAttributes",
"cognito-identity:ListIdentities",
"cognito-identity:DescribeIdentity"
],
"Resource": "*"
},
{
"Sid": "DenyCredentialValues",
"Effect": "Deny",
"Action": [
"secretsmanager:GetSecretValue",
"secretsmanager:BatchGetSecretValue",
"kms:GenerateDataKey*",
"ec2:GetPasswordData",
"appsync:ListApiKeys",
"ssm:GetAccessToken",
"s3:GetDataAccess",
"sts:Get*Token",
"ecr:GetAuthorizationToken",
"ecr-public:GetAuthorizationToken",
"codeartifact:GetAuthorizationToken",
"codepipeline:GetJobDetails",
"codepipeline:GetThirdPartyJobDetails",
"cognito-identity:GetCredentialsForIdentity",
"cognito-identity:GetOpenIdToken*",
"cognito-idp:ListUserPoolClientSecrets",
"cognito-idp:DescribeUserPoolClient",
"cognito-idp:DescribeIdentityProvider",
"cognito-idp:GetTokensFromRefreshToken",
"cognito-idp:DescribeUserImportJob",
"cognito-idp:ListUserImportJobs",
"acm:GetAcmeExternalAccountBindingCredentials",
"amplifybackend:GetToken",
"athena:GetSessionEndpoint",
"auditmanager:Get*Url",
"connect:GetFederationToken",
"datazone:GetEnvironmentCredentials",
"elasticmapreduce:GetClusterSessionCredentials",
"elasticmapreduce:Get*PresignedURL",
"elasticmapreduce:GetSessionEndpoint",
"emr-containers:GetManagedEndpointSessionCredentials",
"emr-serverless:GetSessionEndpoint",
"evs:GetDepotUrl",
"finspace-api:GetProgrammaticAccessCredentials",
"gamelift:Get*Access",
"gamelift:GetComputeAuthToken",
"gamelift:GetGameSessionLogUrl",
"kinesisvideo:GetIceServerConfig",
"glue:GetSessionEndpoint",
"lakeformation:GetDataAccess",
"lakeformation:GetTemporaryGlue*Credentials",
"license-manager:GetAccessToken",
"lightsail:GetBucketAccessKeys",
"lightsail:GetInstanceAccessDetails",
"lightsail:GetRelationalDatabaseMasterUserPassword",
"ses:GetAddressListImportJob",
"ses:ListAddressListImportJobs",
"aws-marketplace:GetBuyerDashboard",
"payment-cryptography:GetParametersForImport",
"pca-connector-scep:GetChallengePassword",
"quicksight:Get*EmbedUrl",
"redshift:GetClusterCredentials*",
"redshift:GetIdentityCenterAuthToken",
"redshift-serverless:GetCredentials",
"redshift-serverless:GetIdentityCenterAuthToken",
"route53globalresolver:GetAccessToken",
"security-ir:GetCaseAttachment*Url",
"storagegateway:DescribeChapCredentials",
"support:DownloadAttachment",
"wafv2:GetDecryptedAPIKey",
"wickr:GetOidcInfo",
"wickr:GetOpentdfConfig"
],
"Resource": "*"
},
{
"Sid": "DenyApiKeyValues",
"Effect": "Deny",
"Action": [
"apigateway:GET"
],
"Resource": [
"arn:aws:apigateway:*::/apikeys",
"arn:aws:apigateway:*::/apikeys/*",
"arn:aws:apigateway:*::/usageplans/*/keys",
"arn:aws:apigateway:*::/usageplans/*/keys/*"
]
},
{
"Sid": "DenyExecution",
"Effect": "Deny",
"Action": [
"lambda:InvokeFunction",
"lambda:InvokeFunctionUrl",
"lambda:InvokeAsync",
"ssm:SendCommand",
"ssm:StartSession",
"ssm:StartAutomationExecution",
"ec2-instance-connect:SendSSHPublicKey",
"ec2-instance-connect:SendSerialConsoleSSHPublicKey",
"ec2-instance-connect:OpenTunnel",
"ecs:ExecuteCommand",
"states:StartExecution",
"states:StartSyncExecution"
],
"Resource": "*"
},
{
"Sid": "DenySideEffects",
"Effect": "Deny",
"Action": [
"comprehend:Detect*",
"comprehend:BatchDetect*",
"comprehend:Classify*",
"comprehend:Contains*",
"rekognition:Detect*",
"rekognition:CompareFaces",
"rekognition:RecognizeCelebrities",
"textract:Analyze*",
"textract:Detect*",
"polly:SynthesizeSpeech",
"cloudwatch:GenerateQuery*",
"config:Deliver*",
"cloudformation:Detect*",
"iam:Generate*",
"elasticbeanstalk:Request*",
"dms:Test*",
"transfer:TestIdentityProvider",
"logs:StartLiveTail",
"ec2messages:GetMessages",
"devops-guru:StartCostEstimation",
"servicequotas:StartQuotaUtilizationReport",
"xray:StartTraceRetrieval"
],
"Resource": "*"
}
]
}
}
{
"TrustPolicy": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowPlainfraAssumeWithExternalId",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::121754142582:role/plainfra-lambda-execution"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"sts:ExternalId": "<your-unique-external-id>"
}
}
},
{
"Sid": "AllowPlainfraGatewayAssumeWithExternalId",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::121754142582:role/plainfra-mcp-execution"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"sts:ExternalId": "<your-unique-external-id>"
}
}
}
]
},
"PlainfraEc2DescribeOnly": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Ec2MetadataOnly",
"Effect": "Allow",
"Action": [
"ec2:Describe*"
],
"Resource": "*"
}
]
},
"PlainfraBoundary": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyObjectContents",
"Effect": "Deny",
"Action": [
"s3:GetObject",
"s3:GetObjectVersion",
"s3:GetObjectTorrent",
"s3:GetObjectVersionTorrent",
"s3tables:GetTableData",
"s3-outposts:GetObject",
"s3-outposts:GetObjectVersion",
"s3-outposts:GetObjectVersionForReplication",
"lambda:GetFunction",
"lambda:GetLayerVersion",
"s3express:CreateSession",
"glacier:GetJobOutput",
"glacier:InitiateJob"
],
"Resource": "*"
},
{
"Sid": "DenyDatabaseRecords",
"Effect": "Deny",
"Action": [
"dynamodb:GetItem",
"dynamodb:BatchGetItem",
"dynamodb:Query",
"dynamodb:Scan",
"dynamodb:PartiQLSelect",
"dynamodb:GetRecords",
"rds-data:ExecuteStatement",
"rds-data:BatchExecuteStatement",
"rds-data:ExecuteSql",
"redshift-data:ExecuteStatement",
"redshift-data:BatchExecuteStatement",
"redshift-data:GetStatementResult",
"athena:GetQueryResults",
"athena:GetQueryResultsStream",
"timestream:Select",
"timestream:SelectValues",
"qldb:PartiQLSelect",
"qldb:SendCommand",
"cassandra:Select",
"neptune-db:ReadDataViaQuery",
"es:ESHttpGet",
"es:ESHttpPost",
"es:ESHttpHead",
"dax:*GetItem",
"dax:Query",
"dax:Scan",
"sdb:Select",
"sdb:GetAttributes",
"qldb:GetRevision",
"qldb:GetBlock",
"qldb:GetDigest",
"healthlake:ReadResource",
"healthlake:SearchWith*",
"kendra:Query",
"kendra:Retrieve",
"transcribe:Get*",
"iotanalytics:GetDatasetContent",
"ses:GetMessageInsights",
"frauddetector:GetEvent"
],
"Resource": "*"
},
{
"Sid": "DenyStreamAndQueuePayloads",
"Effect": "Deny",
"Action": [
"sqs:ReceiveMessage",
"kinesis:GetRecords",
"kinesis:GetShardIterator",
"kinesis:SubscribeToShard",
"kafka-cluster:ReadData"
],
"Resource": "*"
},
{
"Sid": "DenyEndUserRecords",
"Effect": "Deny",
"Action": [
"cognito-idp:AdminGetUser",
"cognito-idp:GetUser",
"cognito-idp:ListUsers",
"cognito-idp:ListUsersInGroup",
"sns:ListSubscriptions*",
"sns:GetSubscriptionAttributes",
"sns:ListEndpointsByPlatformApplication",
"sns:GetEndpointAttributes",
"cognito-identity:ListIdentities",
"cognito-identity:DescribeIdentity"
],
"Resource": "*"
},
{
"Sid": "DenyCredentialValues",
"Effect": "Deny",
"Action": [
"secretsmanager:GetSecretValue",
"ssm:GetParameter",
"ssm:GetParameters",
"ssm:GetParametersByPath",
"ssm:GetParameterHistory",
"kms:Decrypt",
"kms:GenerateDataKey",
"kms:GenerateDataKeyPair",
"kms:GenerateDataKeyWithoutPlaintext",
"kms:GenerateDataKeyPairWithoutPlaintext",
"ec2:GetPasswordData",
"appsync:ListApiKeys",
"cognito-idp:DescribeUserPoolClient",
"cognito-idp:DescribeIdentityProvider",
"codepipeline:GetJobDetails",
"codepipeline:GetThirdPartyJobDetails"
],
"Resource": "*"
},
{
"Sid": "DenyApiKeyValues",
"Effect": "Deny",
"Action": [
"apigateway:GET"
],
"Resource": [
"arn:aws:apigateway:*::/apikeys",
"arn:aws:apigateway:*::/apikeys/*"
]
},
{
"Sid": "DenyExecution",
"Effect": "Deny",
"Action": [
"lambda:InvokeFunction",
"lambda:InvokeFunctionUrl",
"lambda:InvokeAsync",
"ssm:SendCommand",
"ssm:StartSession",
"ssm:StartAutomationExecution",
"ec2-instance-connect:SendSSHPublicKey",
"ec2-instance-connect:SendSerialConsoleSSHPublicKey",
"ec2-instance-connect:OpenTunnel",
"ecs:ExecuteCommand",
"states:StartExecution",
"states:StartSyncExecution"
],
"Resource": "*"
}
]
}
}
The deny lists above are generated from the templates. A small number of actions for managed AI services are left out of the display; the template you can download is the complete list.
Tip: paste it into your AI assistant and ask "what can this AWS IAM policy read, and what does it deny?"
One part of that read access is worth flagging directly. ReadOnlyAccess can read every IAM policy, role and group in the account, not just user and MFA counts. That is the account's own privilege-escalation map, and this grant hands plainfra a readable copy of it. It is the same view your AWS console shows, and it is what every cloud security posture tool reads.
The trust policy shown names the two standard plainfra service roles. When the investigation service is enabled for your account, the template also names a third, plainfra-investigation-gateway.
Install the role
Two ways. Pick whichever you prefer. Both deploy the same plainfra-ReadOnly CloudFormation stack.
Option A: CloudShell Recommended
Sign in to AWS in this browser, click below, paste the copied command, and press Enter. The stack usually finishes in about 60 seconds.
Option B: CloudFormation Console
Opens the AWS CloudFormation console with the template pre-filled. Review the stack details and click Create stack.
open_in_new Deploy via CloudFormationThe role is yours. Delete the plainfra-ReadOnly stack at any time. No emails or support calls needed.
Verify connection
Once the stack shows CREATE_COMPLETE in CloudShell or CloudFormation, click below.
You're connected.
Your trial is active. Head to the console to start asking questions.
Trial | 50K tokens | 48 hours
Signed in as .
Payment received. Your plan is active.
Your account is being activated. This usually takes a few seconds.
terminal Go to plainfra ConsolePayment cancelled.
Your account has been created but is not yet active. You can complete payment later.
Try Again