How to access AWS APIs through the Formal Connector
Overview
An AWS resource lets users access AWS APIs through the Formal Connector without
giving them credentials for the upstream IAM role. Users continue to send
requests to standard AWS service endpoints, such as
ec2.us-west-2.amazonaws.com. The Formal Endpoint routes those requests to the
Connector, where Formal evaluates policy and records the activity. The Connector
then re-signs allowed requests with the IAM identity selected by a Native User.
That Native User can select an assumed role or the Connector’s ambient AWS
identity.The AWS CLI and SDKs require an access key ID and secret access key to sign
requests. However, these client-side credentials can be placeholders. They only
produce the initial signature, which the Connector replaces before the request
reaches AWS.Set up this request path in five parts. Create the AWS resource, configure the
Connector’s AWS identity, and configure a Native User. Then make the resource
reachable through a Connector listener and route traffic through the Formal
Endpoint.The Connector requires an authenticated Formal identity for this request path.
It rejects requests that do not resolve an authenticated Formal identity.
Create an AWS resource
The resource hostname determines which AWS endpoints it covers. Set it to
amazonaws.com with port 443 to cover standard service endpoints across all
commercial AWS regions:
resource "formal_resource" "aws" { name = "aws" technology = "aws" hostname = "amazonaws.com" port = 443}
To limit access to one region, use a narrower suffix such as
us-east-1.amazonaws.com. Update the Formal Endpoint network rule to match that
suffix. AWS partitions with other domain suffixes require separate resources
and network rules.
Configure the Connector’s AWS identity
Before configuring a Native User, give the Connector an AWS region and ambient
AWS identity. The Connector loads both through the
AWS SDK for Go default configuration.Set AWS_REGION in the Connector’s deployment environment. This is the default
region for AWS SDK operations:
AWS_REGION="<AWS_REGION>"
On AWS, configure the ambient identity with an ECS task role, an EC2 instance
profile, or an EKS IAM role for service accounts (IRSA). The SDK loads these
credentials automatically.For other deployments, use environment variables or mount a shared AWS
credentials file:
Restart or redeploy the Connector after changing its environment.
The Connector requires credentials that AWS recognizes. Do not use the
client-side placeholder credentials configured later in this guide.
Choose AWS IAM to use this ambient identity. Choose AWS IAM Role to
assume another role.
Configure the upstream AWS identity
Every signed request must resolve a Native User. Add one after creating the AWS
resource. The Control Plane opens the Add Native User wizard automatically:
Select an AWS IAM authentication method:
AWS IAM uses the Connector’s ambient AWS identity.
AWS IAM Role assumes the IAM role you specify.
Enter a unique Label, such as aws-role.
Enter a descriptive Username. Generic AWS API Resources do not use it
when signing requests.
If you skipped the wizard, open the Resource’s Authentication tab and click
Add User.See Select a default Native User
for selection examples.In Terraform, use the aws_iam block for the Connector’s ambient identity:
resource "formal_resource_native_user_selection" "aws" { resource_id = formal_resource.aws.id cel = <<-CEL "aws-admins" in user.groups ? "${formal_native_user_v3.aws_role.id}" : "${formal_native_user_v3.aws_ambient.id}" CEL}
The selection above uses the assumed role for members of aws-admins and the
Connector’s ambient identity for everyone else.For an assumed role, both sides of the role assumption must allow it. The
Connector’s ambient identity needs permission to call sts:AssumeRole. The
upstream role’s trust policy must also trust that identity.The AWS identity used to sign the request defines the maximum permissions
available through the resource. The resolved Native User explicitly selects an
assumed role or the Connector’s ambient identity. Formal policies can narrow
that access further.Create additional Native Users for different AWS access levels. Use the
Resource’s default Native User selection
to choose one for each Formal identity.
The Connector does not use ambient AWS credentials as a fallback. A signed
request fails when no Native User resolves, its configuration is invalid, or
its role cannot be assumed.
Make the resource reachable through a Connector
The Formal Endpoint needs a Connector and listener port to which it can forward
the intercepted request. A network rule alone does not create this route.In the Control Plane:
Go to Infrastructure → Connectors and open the Connector that should
proxy the AWS resource.
Open Listeners, select New Listener, enter a Name and available
Port, then create the listener. Port 8080 is reserved for Connector
health checks.
Open the listener and select New Rule.
Set the rule type to Resource, select the AWS resource, and create the
rule.
Confirm the AWS resource appears under the Connector’s Resources tab
(Reachable Resources).
See Listeners and Rules for
more background.The equivalent Terraform configuration is:
resource "formal_connector_listener" "aws" { connector_id = formal_connector.main.id name = "aws-listener" port = 4027}resource "formal_connector_listener_rule" "aws" { connector_listener_id = formal_connector_listener.aws.id type = "resource" rule = formal_resource.aws.id}
The port can be any available Connector listener port other than 8080.
Route traffic through the Formal Endpoint
The final part of the request path is a Formal Endpoint network rule. Network
rules require Transparent Mode to be installed and enabled. Complete the
Transparent Mode setup
before creating the rule.One AWS resource can cover many service hostnames. The rule must preserve each
request’s hostname so the Connector knows which AWS service to contact.For a resource scoped to amazonaws.com, create a rule that:
Matches amazonaws.com and hosts ending in .amazonaws.com.
Selects the AWS resource.
Enables Forward to Connector.
Forward to Connector must be enabled. Without it, the Formal Endpoint treats
amazonaws.com as the upstream host instead of forwarding the original AWS
service hostname to the Connector.
Replace <AWS_RESOURCE_NAME> with the name of the AWS resource you created.
Create the rule under Endpoint → Network Rules, and set its status
to Active. New rules default to Draft and do not route traffic until
activated.
Configure the AWS CLI
With the resource, Native User, Connector listener, and network rule in place,
create a dedicated AWS CLI profile. Give the profile placeholder credentials
and configure it to trust the Formal Endpoint’s CA certificate:
macOS
Linux
aws configure set aws_access_key_id FORMALPLACEHOLDER --profile formal-awsaws configure set aws_secret_access_key formal-placeholder-secret --profile formal-awsaws configure set region us-east-1 --profile formal-awsaws configure set ca_bundle "$HOME/.formal/ca/localca-cert.pem" --profile formal-aws
aws configure set aws_access_key_id FORMALPLACEHOLDER --profile formal-awsaws configure set aws_secret_access_key formal-placeholder-secret --profile formal-awsaws configure set region us-east-1 --profile formal-awsaws configure set ca_bundle /var/lib/formal/ca/localca-cert.pem --profile formal-aws
Change us-east-1 to the region you normally use. Keep the placeholder
credentials as shown: the Formal Endpoint authenticates your Formal identity,
while the Connector supplies the AWS identity used upstream.Do not configure an endpoint_url or pass --endpoint-url to individual
commands. The AWS CLI must use standard service endpoints. This allows the
Formal Endpoint network rule to preserve and route each service hostname.Verify the connection with AWS STS:
aws sts get-caller-identity --profile formal-aws
The returned ARN should identify the IAM identity selected by the resolved Native
User. You can now use the formal-aws profile with other AWS CLI commands.
Formal will route, evaluate, and record each request in the same way.
Troubleshoot InvalidClientTokenId
If AWS returns InvalidClientTokenId while using the placeholder credentials,
first verify the Formal route rather than replacing the placeholders:
Confirm Transparent Mode is enabled:
formal transparent-proxy enableformal transparent-proxy status
Confirm the network rule is Active, selects the AWS resource, and has
Forward to Connector enabled.
Confirm you are logged in to the Formal Endpoint with formal auth login.
Confirm a Connector has a hostname, shares the resource’s Space, and has a
listener rule that matches the AWS resource. See
How the Endpoint picks a Connector.
On macOS, inspect ~/Library/Logs/Formal/main.log. The message
catchall: failed to resolve connector forwarding target means no Connector
listener rule matches the selected resource.
When Transparent Mode is configured to fail open, an unresolved Connector
route can pass the placeholder-signed request to AWS. AWS then reports a
credential error even though the underlying problem is Formal routing.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Formal Documentation","colors":{"primary":"#254BB0","light":"#8FA9FF","dark":"#21449A"},"logo":{"light":"https://mintcdn.com/formal/sSa8LAaTycTeA9sv/assets/logos/light.svg?fit=max\u0026auto=format\u0026n=sSa8LAaTycTeA9sv\u0026q=85\u0026s=071e123e7f14cf72c82a9ddd8199c976","dark":"https://mintcdn.com/formal/sSa8LAaTycTeA9sv/assets/logos/dark.svg?fit=max\u0026auto=format\u0026n=sSa8LAaTycTeA9sv\u0026q=85\u0026s=6ce53129f9632700ef53029541f2315d"},"favicon":"https://mintcdn.com/formal/sSa8LAaTycTeA9sv/assets/favicon.svg?fit=max\u0026auto=format\u0026n=sSa8LAaTycTeA9sv\u0026q=85\u0026s=130d9f6b9630a091c81b9861be4c35cd","api":{"playground":{"display":"simple","proxy":false}},"background":{"color":{"light":"#FFFFFF","dark":"#0B1020"}},"navbar":{"links":[{"href":"https://www.joinformal.com/blog/","label":"Blog"},{"href":"mailto:support@joinformal.com","label":"Support"}],"primary":{"type":"button","label":"Control Plane","href":"https://app.formal.ai"}},"footer":{"socials":{"x":"https://x.com/joinformal","github":"https://github.com/formalco","linkedin":"https://linkedin.com/company/formalhq"}},"fonts":{"heading":{"family":"JetBrains Mono","weight":600},"body":{"family":"Inter"}},"styling":{"codeblocks":{"languages":{"custom":["/languages/cel.json","/languages/rego.json"]}},"latex":true},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"formal","hasAudioNarration":false,"actualSubdomain":"formal","customDomains":["docs.formal.ai"],"gitSource":{"type":"github","owner":"formalco","repo":"product-documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10c0829ffae5051c404cbe"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b11ed1ca63b6d97b102c1f3","clientVersion":"0.0.4436","searchFilterCounts":[{"language":"default","tag":"Reference","count":433},{"language":"default","tag":"API","count":423},{"language":"default","tag":"Solutions","count":106},{"language":"default","tag":"Products","count":95},{"language":"default","tag":"MCP Gateway","count":82},{"language":"default","tag":"MCP servers","count":75},{"language":"default","tag":"Resource","count":56},{"language":"default","tag":"core.v1.ResourceService","count":56},{"language":"default","tag":"Connectors","count":52},{"language":"default","tag":"core.v1.ConnectorService","count":52}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"690910a1a24419e70db3241a","deploymentId":"68f143cf25a9e16daec4ddf1","questionText":"How do I create access policies?","status":"active","generatedBy":"manual","createdAt":"2025-11-03T20:29:21.521Z","updatedAt":"2025-11-03T20:29:21.521Z","__v":0},{"_id":"69091085a24419e70db3227e","deploymentId":"68f143cf25a9e16daec4ddf1","questionText":"What resources can I protect?","status":"active","generatedBy":"manual","createdAt":"2025-11-03T20:28:53.869Z","updatedAt":"2025-11-03T20:29:00.423Z","__v":0},{"_id":"6909107ba24419e70db321e2","deploymentId":"68f143cf25a9e16daec4ddf1","questionText":"How do I deploy a Connector?","status":"active","generatedBy":"manual","createdAt":"2025-11-03T20:28:43.537Z","updatedAt":"2025-11-03T20:28:43.537Z","__v":0}],"googleFontsInlined":true},"customCss":[{"filePath":"docs/global.css","content":":root{--formal-bg: #ffffff;--formal-band: #f5f6f9;--formal-border: #dfe2e8;--formal-ink: #0b1020;--formal-text-dim: #464c5c;--formal-text-muted: #687083;--formal-accent: #254bb0;--formal-accent-dim: #21449a;--formal-mono: \"JetBrains Mono\", \"SF Mono\", \"Cascadia Code\", \"Fira Code\", monospace}.dark{--formal-bg: #0b1020;--formal-band: #121a30;--formal-border: #26304a;--formal-ink: #e8ebf3;--formal-text-dim: #c3c9d8;--formal-text-muted: #9aa3ba;--formal-accent: #8fa9ff;--formal-accent-dim: #a9bdff}#navbar-transition,#navbar .border-b{border-color:var(--formal-border)}#navbar .navbar-link a,.nav-tabs-item,#topbar-cta-button a{font-family:var(--formal-mono);font-size:12px;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}#topbar-cta-button a>span:first-child{border-radius:0;background:#254bb0;border:1px solid #254bb0;box-shadow:3px 3px 0 #0b1020;transition:transform 0.15s ease, box-shadow 0.15s ease}.dark #topbar-cta-button a>span:first-child{box-shadow:3px 3px 0 #000}#topbar-cta-button a:hover>span:first-child{opacity:1;background:#21449a;transform:translate(1px, 1px);box-shadow:2px 2px 0 #0b1020}#topbar-cta-button a{font-weight:600}#search-bar-entry,#search-bar-entry-mobile,#page-context-menu button,#navbar button{border-radius:0}.sidebar-group-header,#table-of-contents nav>h2,#table-of-contents nav>div:first-child{font-family:var(--formal-mono);font-size:11px;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;color:var(--formal-text-muted)}#sidebar-content li>a,#sidebar-content button{border-radius:0}#sidebar-content li[data-active=\"true\"]>a{box-shadow:inset 2px 0 0 var(--formal-accent)}.eyebrow{font-family:var(--formal-mono);font-size:12px;letter-spacing:0.1em;text-transform:uppercase;color:var(--formal-accent)}#page-title,.prose :is(h1,h2,h3,h4){letter-spacing:-0.03em}#page-title{color:var(--formal-ink)}.card,.callout,.code-block,.code-group,.accordion,[data-component-part=\"accordion-group\"],.tabs,.steps,.prose img,.prose table,#content :is(input,select,textarea),#content [class*=\"rounded-2xl\"],#content [class*=\"rounded-xl\"]{border-radius:0!important}.card{border-color:var(--formal-border)!important;transition:border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease}a.card:hover,.card:has(>a):hover,a:hover>.card{border-color:var(--formal-ink)!important;box-shadow:3px 3px 0 var(--formal-ink)}.callout{border-left-width:3px}.code-block{border-color:var(--formal-border)}.prose :not(pre)>code{border-radius:3px}#footer{border-color:var(--formal-border)}.mcp-server-page span[data-as=\"p\"]{display:block;margin:1rem 0}.mcp-server-page h2{margin-top:3rem}.mcp-server-tabs{border:1px solid rgba(107, 114, 128, 0.18);border-radius:8px;background:rgba(107, 114, 128, 0.025);padding:12px 16px 16px;margin:16px 0 24px}.dark .mcp-server-tabs{border-color:rgba(156, 163, 175, 0.16);background:rgba(156, 163, 175, 0.025)}.mcp-server-meta{display:flex;flex-direction:column;align-items:flex-start;gap:0.5rem;margin:0 0 1.5rem;font-size:0.875rem}.mcp-server-meta a::after{content:\"\\2197\";margin-left:0.15em}#page-title .mcp-title-logo{display:inline-block;width:0.9em;height:0.9em;margin:0 0.3em 0 0;vertical-align:-0.08em}#content:has(>.mcp-server-page){margin-top:0.75rem}.mcp-auth-summary{color:rgb(var(--primary));font-weight:600}.dark .mcp-auth-summary{color:rgb(var(--primary-light))}.mcp-auth-summary::selection,.mcp-auth-summary *::selection{background-color:rgb(var(--primary));color:#fff}.dark .mcp-auth-summary::selection,.dark .mcp-auth-summary *::selection{background-color:rgb(var(--primary-light));color:#fff}.dark img[aria-hidden=\"true\"][src$=\"/client-icons/openai.svg\"],.dark img[aria-hidden=\"true\"][src$=\"/client-icons/cursor.svg\"],.dark img[aria-hidden=\"true\"][src$=\"/client-icons/github-copilot.svg\"]{filter:invert(1)}"}]}
{"page":{"pagePath":"docs/guides/core-concepts/resources/aws","slug":"/docs/guides/core-concepts/resources/aws","pageMetadata":{"$schema":"schemas/docs.schema.yaml","title":"AWS","description":"How to access AWS APIs through the Formal Connector","icon":"aws","href":"/docs/guides/core-concepts/resources/aws"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"How to access AWS APIs through the Formal Connector\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,OptimizedImage,Tab,Tabs,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`An AWS resource lets users access AWS APIs through the Formal Connector without\ngiving them credentials for the upstream IAM role. Users continue to send\nrequests to standard AWS service endpoints, such as\n`,_jsx(_components.code,{children:`ec2.us-west-2.amazonaws.com`}),`. The Formal Endpoint routes those requests to the\nConnector, where Formal evaluates policy and records the activity. The Connector\nthen re-signs allowed requests with the IAM identity selected by a Native User.\nThat Native User can select an assumed role or the Connector’s ambient AWS\nidentity.`]}),`\n`,_jsx(_components.p,{children:`The AWS CLI and SDKs require an access key ID and secret access key to sign\nrequests. However, these client-side credentials can be placeholders. They only\nproduce the initial signature, which the Connector replaces before the request\nreaches AWS.`}),`\n`,_jsx(_components.p,{children:`Set up this request path in five parts. Create the AWS resource, configure the\nConnector’s AWS identity, and configure a Native User. Then make the resource\nreachable through a Connector listener and route traffic through the Formal\nEndpoint.`}),`\n`,_jsx(_components.p,{children:`The Connector requires an authenticated Formal identity for this request path.\nIt rejects requests that do not resolve an authenticated Formal identity.`}),`\n`,_jsx(Heading,{level:`2`,id:`create-an-aws-resource`,children:`Create an AWS resource`}),`\n`,_jsxs(_components.p,{children:[`The resource hostname determines which AWS endpoints it covers. Set it to\n`,_jsx(_components.code,{children:`amazonaws.com`}),` with port `,_jsx(_components.code,{children:`443`}),` to cover standard service endpoints across all\ncommercial AWS regions:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`hcl`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`hcl`,children:_jsxs(_components.code,{language:`hcl`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`resource`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"formal_resource\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"aws\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aws\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` technology`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aws\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` hostname`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"amazonaws.com\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` port`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 443`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`To limit access to one region, use a narrower suffix such as\n`,_jsx(_components.code,{children:`us-east-1.amazonaws.com`}),`. Update the Formal Endpoint network rule to match that\nsuffix. AWS partitions with other domain suffixes require separate resources\nand network rules.`]}),`\n`,_jsx(Heading,{level:`2`,id:`configure-the-connector’s-aws-identity`,children:`Configure the Connector’s AWS identity`}),`\n`,_jsxs(_components.p,{children:[`Before configuring a Native User, give the Connector an AWS region and ambient\nAWS identity. The Connector loads both through the\n`,_jsx(_components.a,{href:`https://docs.aws.amazon.com/sdk-for-go/v2/developer-guide/configure-gosdk.html`,children:`AWS SDK for Go default configuration`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`AWS_REGION`}),` in the Connector’s deployment environment. This is the default\nregion for AWS SDK operations:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AWS_REGION`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cAWS_REGION>\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`On AWS, configure the ambient identity with an ECS task role, an EC2 instance\nprofile, or an EKS IAM role for service accounts (IRSA). The SDK loads these\ncredentials automatically.`}),`\n`,_jsx(_components.p,{children:`For other deployments, use environment variables or mount a shared AWS\ncredentials file:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AWS_ACCESS_KEY_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cAWS_ACCESS_KEY_ID>\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AWS_SECRET_ACCESS_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cAWS_SECRET_ACCESS_KEY>\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Restart or redeploy the Connector after changing its environment.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The Connector requires credentials that AWS recognizes. Do not use the\nclient-side placeholder credentials configured later in this guide.`})}),`\n`,_jsxs(_components.p,{children:[`Choose `,_jsx(_components.strong,{children:`AWS IAM`}),` to use this ambient identity. Choose `,_jsx(_components.strong,{children:`AWS IAM Role`}),` to\nassume another role.`]}),`\n`,_jsx(Heading,{level:`2`,id:`configure-the-upstream-aws-identity`,children:`Configure the upstream AWS identity`}),`\n`,_jsxs(_components.p,{children:[`Every signed request must resolve a Native User. Add one after creating the AWS\nresource. The Control Plane opens the `,_jsx(_components.strong,{children:`Add Native User`}),` wizard automatically:`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/formal/z9GNtynV1YHUDYCN/assets/images/aws_native_user_methods.png?fit=max\u0026auto=format\u0026n=z9GNtynV1YHUDYCN\u0026q=85\u0026s=a6b53521618fe07064272142d5ad518d`,alt:`AWS Native User picker with AWS IAM credential methods`,\"data-og-width\":`1152`,width:`1152`,\"data-og-height\":`732`,height:`732`,\"data-path\":`assets/images/aws_native_user_methods.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/formal/z9GNtynV1YHUDYCN/assets/images/aws_native_user_methods.png?w=280\u0026fit=max\u0026auto=format\u0026n=z9GNtynV1YHUDYCN\u0026q=85\u0026s=2519642a7b838d0ba92518075af8edf4 280w, https://mintcdn.com/formal/z9GNtynV1YHUDYCN/assets/images/aws_native_user_methods.png?w=560\u0026fit=max\u0026auto=format\u0026n=z9GNtynV1YHUDYCN\u0026q=85\u0026s=9207b08621a28ceff6bc7a934994be57 560w, https://mintcdn.com/formal/z9GNtynV1YHUDYCN/assets/images/aws_native_user_methods.png?w=840\u0026fit=max\u0026auto=format\u0026n=z9GNtynV1YHUDYCN\u0026q=85\u0026s=3e9772b27864c73e292bc265b40b54f1 840w, https://mintcdn.com/formal/z9GNtynV1YHUDYCN/assets/images/aws_native_user_methods.png?w=1100\u0026fit=max\u0026auto=format\u0026n=z9GNtynV1YHUDYCN\u0026q=85\u0026s=2d1790f4ed3e9223b1482690c5381406 1100w, https://mintcdn.com/formal/z9GNtynV1YHUDYCN/assets/images/aws_native_user_methods.png?w=1650\u0026fit=max\u0026auto=format\u0026n=z9GNtynV1YHUDYCN\u0026q=85\u0026s=71146967bd7e24ae5a24d2d61282d730 1650w, https://mintcdn.com/formal/z9GNtynV1YHUDYCN/assets/images/aws_native_user_methods.png?w=2500\u0026fit=max\u0026auto=format\u0026n=z9GNtynV1YHUDYCN\u0026q=85\u0026s=37643cbbd044fe2321bb2c8e8a1f050d 2500w`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Select an AWS IAM authentication method:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`AWS IAM`}),` uses the Connector’s ambient AWS identity.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`AWS IAM Role`}),` assumes the IAM role you specify.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`Enter a unique `,_jsx(_components.strong,{children:`Label`}),`, such as `,_jsx(_components.code,{children:`aws-role`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Enter a descriptive `,_jsx(_components.strong,{children:`Username`}),`. Generic AWS API Resources do not use it\nwhen signing requests.`]}),`\n`,_jsxs(_components.li,{children:[`For `,_jsx(_components.strong,{children:`AWS IAM Role`}),`, enter the role ARN.`]}),`\n`,_jsx(_components.li,{children:`Create the Native User.`}),`\n`,_jsxs(_components.li,{children:[`Configure\n`,_jsx(_components.a,{href:`/docs/guides/core-concepts/resources/native-users#select-a-default-native-user`,children:_jsx(_components.strong,{children:`Default Native User`})}),`\nwith the Native User’s ID.`]}),`\n`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/formal/z9GNtynV1YHUDYCN/assets/images/aws_native_user_assume_role.png?fit=max\u0026auto=format\u0026n=z9GNtynV1YHUDYCN\u0026q=85\u0026s=8933222c52ca8f9f378813db40022449`,alt:`AWS IAM Role Native User configuration`,\"data-og-width\":`1152`,width:`1152`,\"data-og-height\":`1024`,height:`1024`,\"data-path\":`assets/images/aws_native_user_assume_role.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/formal/z9GNtynV1YHUDYCN/assets/images/aws_native_user_assume_role.png?w=280\u0026fit=max\u0026auto=format\u0026n=z9GNtynV1YHUDYCN\u0026q=85\u0026s=1618bf32f26d8c1cca9af7468e56bed8 280w, https://mintcdn.com/formal/z9GNtynV1YHUDYCN/assets/images/aws_native_user_assume_role.png?w=560\u0026fit=max\u0026auto=format\u0026n=z9GNtynV1YHUDYCN\u0026q=85\u0026s=50d5578cdc016c1b977e66e13981cb91 560w, https://mintcdn.com/formal/z9GNtynV1YHUDYCN/assets/images/aws_native_user_assume_role.png?w=840\u0026fit=max\u0026auto=format\u0026n=z9GNtynV1YHUDYCN\u0026q=85\u0026s=8037e22b6ad7272cf64965dc7ee97c56 840w, https://mintcdn.com/formal/z9GNtynV1YHUDYCN/assets/images/aws_native_user_assume_role.png?w=1100\u0026fit=max\u0026auto=format\u0026n=z9GNtynV1YHUDYCN\u0026q=85\u0026s=d0b9d28fe3719554b827aec90c0b2b37 1100w, https://mintcdn.com/formal/z9GNtynV1YHUDYCN/assets/images/aws_native_user_assume_role.png?w=1650\u0026fit=max\u0026auto=format\u0026n=z9GNtynV1YHUDYCN\u0026q=85\u0026s=f4cfb2842674f0ad2d4058cb8ff2605d 1650w, https://mintcdn.com/formal/z9GNtynV1YHUDYCN/assets/images/aws_native_user_assume_role.png?w=2500\u0026fit=max\u0026auto=format\u0026n=z9GNtynV1YHUDYCN\u0026q=85\u0026s=d77119baef56b29ad4b4db562061d7f7 2500w`}),`\n`,_jsxs(_components.p,{children:[`If you skipped the wizard, open the Resource’s `,_jsx(_components.strong,{children:`Authentication`}),` tab and click\n`,_jsx(_components.strong,{children:`Add User`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/docs/guides/core-concepts/resources/native-users#select-a-default-native-user`,children:`Select a default Native User`}),`\nfor selection examples.`]}),`\n`,_jsxs(_components.p,{children:[`In Terraform, use the `,_jsx(_components.code,{children:`aws_iam`}),` block for the Connector’s ambient identity:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`hcl`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`hcl`,children:_jsxs(_components.code,{language:`hcl`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`resource`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"formal_native_user_v3\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"aws_ambient\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resource_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` formal_resource`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`aws`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` label`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aws-ambient\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` aws_iam`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` username`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aws-ambient\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`aws_iam_role`}),` to assume a role:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`hcl`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`hcl`,children:_jsxs(_components.code,{language:`hcl`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`resource`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"formal_native_user_v3\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"aws_role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resource_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` formal_resource`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`aws`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` label`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aws-role\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` aws_iam_role`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` username`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aws-role\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` role`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"arn:aws:iam::123456789012:role/formal-aws-access\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`To select between the two Native Users:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`hcl`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`hcl`,children:_jsxs(_components.code,{language:`hcl`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`resource`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"formal_resource_native_user_selection\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"aws\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resource_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` formal_resource`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`aws`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` cel`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c\u003c-`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`CEL`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aws-admins\" in user.groups`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ? \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`formal_native_user_v3`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`aws_role`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` : \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`formal_native_user_v3`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`aws_ambient`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` CEL`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The selection above uses the assumed role for members of `,_jsx(_components.code,{children:`aws-admins`}),` and the\nConnector’s ambient identity for everyone else.`]}),`\n`,_jsxs(_components.p,{children:[`For an assumed role, both sides of the role assumption must allow it. The\nConnector’s ambient identity needs permission to call `,_jsx(_components.code,{children:`sts:AssumeRole`}),`. The\nupstream role’s trust policy must also trust that identity.`]}),`\n`,_jsx(_components.p,{children:`The AWS identity used to sign the request defines the maximum permissions\navailable through the resource. The resolved Native User explicitly selects an\nassumed role or the Connector’s ambient identity. Formal policies can narrow\nthat access further.`}),`\n`,_jsxs(_components.p,{children:[`Create additional Native Users for different AWS access levels. Use the\nResource’s `,_jsx(_components.a,{href:`/docs/guides/core-concepts/resources/native-users#select-a-default-native-user`,children:`default Native User selection`}),`\nto choose one for each Formal identity.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The Connector does not use ambient AWS credentials as a fallback. A signed\nrequest fails when no Native User resolves, its configuration is invalid, or\nits role cannot be assumed.`})}),`\n`,_jsx(Heading,{level:`2`,id:`make-the-resource-reachable-through-a-connector`,children:`Make the resource reachable through a Connector`}),`\n`,_jsx(_components.p,{children:`The Formal Endpoint needs a Connector and listener port to which it can forward\nthe intercepted request. A network rule alone does not create this route.`}),`\n`,_jsx(_components.p,{children:`In the Control Plane:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Go to `,_jsx(_components.strong,{children:`Infrastructure`}),` → `,_jsx(_components.strong,{children:`Connectors`}),` and open the Connector that should\nproxy the AWS resource.`]}),`\n`,_jsxs(_components.li,{children:[`Open `,_jsx(_components.strong,{children:`Listeners`}),`, select `,_jsx(_components.strong,{children:`New Listener`}),`, enter a `,_jsx(_components.strong,{children:`Name`}),` and available\n`,_jsx(_components.strong,{children:`Port`}),`, then create the listener. Port `,_jsx(_components.code,{children:`8080`}),` is reserved for Connector\nhealth checks.`]}),`\n`,_jsxs(_components.li,{children:[`Open the listener and select `,_jsx(_components.strong,{children:`New Rule`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Set the rule type to `,_jsx(_components.strong,{children:`Resource`}),`, select the AWS resource, and create the\nrule.`]}),`\n`,_jsxs(_components.li,{children:[`Confirm the AWS resource appears under the Connector’s `,_jsx(_components.strong,{children:`Resources`}),` tab\n(`,_jsx(_components.strong,{children:`Reachable Resources`}),`).`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/docs/guides/core-concepts/connectors/listeners`,children:`Listeners and Rules`}),` for\nmore background.`]}),`\n`,_jsx(_components.p,{children:`The equivalent Terraform configuration is:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`hcl`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`hcl`,children:_jsxs(_components.code,{language:`hcl`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`resource`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"formal_connector_listener\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"aws\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` connector_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` formal_connector`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`main`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aws-listener\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` port`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 4027`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`resource`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"formal_connector_listener_rule\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"aws\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` connector_listener_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` formal_connector_listener`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`aws`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resource\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` rule`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` formal_resource`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`aws`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The port can be any available Connector listener port other than `,_jsx(_components.code,{children:`8080`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`route-traffic-through-the-formal-endpoint`,children:`Route traffic through the Formal Endpoint`}),`\n`,_jsxs(_components.p,{children:[`The final part of the request path is a Formal Endpoint network rule. Network\nrules require Transparent Mode to be installed and enabled. Complete the\n`,_jsx(_components.a,{href:`/docs/guides/client-apps/transparent-mode`,children:`Transparent Mode setup`}),`\nbefore creating the rule.`]}),`\n`,_jsx(_components.p,{children:`One AWS resource can cover many service hostnames. The rule must preserve each\nrequest’s hostname so the Connector knows which AWS service to contact.`}),`\n`,_jsxs(_components.p,{children:[`For a resource scoped to `,_jsx(_components.code,{children:`amazonaws.com`}),`, create a rule that:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Matches `,_jsx(_components.code,{children:`amazonaws.com`}),` and hosts ending in `,_jsx(_components.code,{children:`.amazonaws.com`}),`.`]}),`\n`,_jsx(_components.li,{children:`Selects the AWS resource.`}),`\n`,_jsxs(_components.li,{children:[`Enables `,_jsx(_components.strong,{children:`Forward to Connector`}),`.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Forward to Connector`}),` must be enabled. Without it, the Formal Endpoint treats\n`,_jsx(_components.code,{children:`amazonaws.com`}),` as the upstream host instead of forwarding the original AWS\nservice hostname to the Connector.`]})}),`\n`,_jsx(_components.p,{children:`The equivalent CEL configuration is:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`cel`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`cel`,children:_jsxs(_components.code,{language:`cel`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"condition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pre_tcp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: port `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 443`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pre_tls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: hostname `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"amazonaws.com\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` hostname.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`endsWith`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\".amazonaws.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"post_tls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: hostname `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"amazonaws.com\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` hostname.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`endsWith`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\".amazonaws.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"outputs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"resource_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cAWS_RESOURCE_NAME>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"forward_to_connector\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`\u003cAWS_RESOURCE_NAME>`}),` with the name of the AWS resource you created.\nCreate the rule under `,_jsx(_components.strong,{children:`Endpoint`}),` → `,_jsx(_components.strong,{children:`Network Rules`}),`, and set its status\nto `,_jsx(_components.strong,{children:`Active`}),`. New rules default to `,_jsx(_components.strong,{children:`Draft`}),` and do not route traffic until\nactivated.`]}),`\n`,_jsx(Heading,{level:`3`,id:`configure-the-aws-cli`,children:`Configure the AWS CLI`}),`\n`,_jsx(_components.p,{children:`With the resource, Native User, Connector listener, and network rule in place,\ncreate a dedicated AWS CLI profile. Give the profile placeholder credentials\nand configure it to trust the Formal Endpoint’s CA certificate:`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`macOS`,id:`macos`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`aws`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` configure`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` set`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` aws_access_key_id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` FORMALPLACEHOLDER`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` formal-aws`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`aws`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` configure`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` set`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` aws_secret_access_key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` formal-placeholder-secret`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` formal-aws`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`aws`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` configure`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` set`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` region`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` us-east-1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` formal-aws`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`aws`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` configure`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` set`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ca_bundle`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/.formal/ca/localca-cert.pem\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` formal-aws`})]}),`\n`]})})})}),_jsx(Tab,{title:`Linux`,id:`linux`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`aws`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` configure`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` set`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` aws_access_key_id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` FORMALPLACEHOLDER`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` formal-aws`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`aws`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` configure`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` set`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` aws_secret_access_key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` formal-placeholder-secret`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` formal-aws`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`aws`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` configure`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` set`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` region`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` us-east-1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` formal-aws`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`aws`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` configure`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` set`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ca_bundle`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /var/lib/formal/ca/localca-cert.pem`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` formal-aws`})]}),`\n`]})})})})]}),`\n`,_jsxs(_components.p,{children:[`Change `,_jsx(_components.code,{children:`us-east-1`}),` to the region you normally use. Keep the placeholder\ncredentials as shown: the Formal Endpoint authenticates your Formal identity,\nwhile the Connector supplies the AWS identity used upstream.`]}),`\n`,_jsxs(_components.p,{children:[`Do not configure an `,_jsx(_components.code,{children:`endpoint_url`}),` or pass `,_jsx(_components.code,{children:`--endpoint-url`}),` to individual\ncommands. The AWS CLI must use standard service endpoints. This allows the\nFormal Endpoint network rule to preserve and route each service hostname.`]}),`\n`,_jsx(_components.p,{children:`Verify the connection with AWS STS:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`aws`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sts`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` get-caller-identity`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --profile`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` formal-aws`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The returned ARN should identify the IAM identity selected by the resolved Native\nUser. You can now use the `,_jsx(_components.code,{children:`formal-aws`}),` profile with other AWS CLI commands.\nFormal will route, evaluate, and record each request in the same way.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`troubleshoot-invalidclienttokenid`,children:[`Troubleshoot `,_jsx(_components.code,{children:`InvalidClientTokenId`})]}),`\n`,_jsxs(_components.p,{children:[`If AWS returns `,_jsx(_components.code,{children:`InvalidClientTokenId`}),` while using the placeholder credentials,\nfirst verify the Formal route rather than replacing the placeholders:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Confirm Transparent Mode is enabled:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`formal`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` transparent-proxy`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` enable`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`formal`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` transparent-proxy`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` status`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Confirm the network rule is `,_jsx(_components.strong,{children:`Active`}),`, selects the AWS resource, and has\n`,_jsx(_components.strong,{children:`Forward to Connector`}),` enabled.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Confirm you are logged in to the Formal Endpoint with `,_jsx(_components.code,{children:`formal auth login`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Confirm the Resource’s\n`,_jsx(_components.a,{href:`/docs/guides/core-concepts/resources/native-users#select-a-default-native-user`,children:`default Native User selection`}),`\nselects a Native User for your Formal identity.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Confirm a Connector has a hostname, shares the resource’s Space, and has a\nlistener rule that matches the AWS resource. See\n`,_jsx(_components.a,{href:`/docs/guides/client-apps/desktop-app#how-the-endpoint-picks-a-connector`,children:`How the Endpoint picks a Connector`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`On macOS, inspect `,_jsx(_components.code,{children:`~/Library/Logs/Formal/main.log`}),`. The message\n`,_jsx(_components.code,{children:`catchall: failed to resolve connector forwarding target`}),` means no Connector\nlistener rule matches the selected resource.`]}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`When Transparent Mode is configured to fail open, an unresolved Connector\nroute can pass the placeholder-signed request to AWS. AWS then reports a\ncredential error even though the underlying problem is Formal routing.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"languages":{"custom":["/languages/cel.json","/languages/rego.json"]}},"config":{},"pageMetadata":{"$schema":"schemas/docs.schema.yaml","title":"AWS","description":"How to access AWS APIs through the Formal Connector","icon":"aws","href":"/docs/guides/core-concepts/resources/aws"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Create an AWS resource","slug":"create-an-aws-resource","depth":2,"children":[]},{"title":"Configure the Connector’s AWS identity","slug":"configure-the-connector’s-aws-identity","depth":2,"children":[]},{"title":"Configure the upstream AWS identity","slug":"configure-the-upstream-aws-identity","depth":2,"children":[]},{"title":"Make the resource reachable through a Connector","slug":"make-the-resource-reachable-through-a-connector","depth":2,"children":[]},{"title":"Route traffic through the Formal Endpoint","slug":"route-traffic-through-the-formal-endpoint","depth":2,"children":[{"title":"Configure the AWS CLI","slug":"configure-the-aws-cli","depth":3,"children":[]},{"title":"Troubleshoot InvalidClientTokenId","slug":"troubleshoot-invalidclienttokenid","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/formal/95bf6302f158143a/changelog-anchors.js","/_mintlify/custom/formal/1fc14acb665ed213/unify.js","/_mintlify/custom/formal/70b3ea987ce3606f/mcp-title-logo.js"],"subdomain":"formal","siteName":"Formal Documentation","title":"AWS - Formal Documentation","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"contextualStarterQuestions":[{"_id":"6b0f220bb83c59bc279caa2c","deploymentId":"68f143cf25a9e16daec4ddf1","questionText":"How do I set up Native User access?","status":"active","generatedBy":"contextual","path":"docs/guides/core-concepts/resources/aws","createdAt":"2026-12-01T19:37:47.168Z","updatedAt":"2026-12-01T19:37:47.168Z","__v":0},{"_id":"6b0f220bb83c59bc279caa2b","deploymentId":"68f143cf25a9e16daec4ddf1","questionText":"How do I create an AWS resource?","status":"active","generatedBy":"contextual","path":"docs/guides/core-concepts/resources/aws","createdAt":"2026-12-01T19:37:47.168Z","updatedAt":"2026-12-01T19:37:47.168Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-01T19:37:42.240Z","originalFileLocation":"docs/guides/core-concepts/resources/aws.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"How to access AWS APIs through the Formal Connector\">\u003cmeta data-mint-head name=\"application-name\" content=\"Formal Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"AWS - Formal Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"How to access AWS APIs through the Formal Connector\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Formal Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.formal.ai/docs/guides/core-concepts/resources/aws\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://formal.mintlify.site/_mintlify/api/og/v2?division=Technologies\u0026amp;title=AWS\u0026amp;description=How+to+access+AWS+APIs+through+the+Formal+Connector\u0026amp;theme=50a5fdefa194af684ea65dc9\u0026amp;signature=daa9efa0a4163d102c561199bf89bfda4c5b69c4e657d4af60de1ccfa9340497\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"AWS - Formal Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How to access AWS APIs through the Formal Connector\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://formal.mintlify.site/_mintlify/api/og/v2?division=Technologies\u0026amp;title=AWS\u0026amp;description=How+to+access+AWS+APIs+through+the+Formal+Connector\u0026amp;theme=50a5fdefa194af684ea65dc9\u0026amp;signature=daa9efa0a4163d102c561199bf89bfda4c5b69c4e657d4af60de1ccfa9340497\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Formal Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#254BB0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.formal.ai/docs/guides/core-concepts/resources/aws\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/guides/core-concepts/resources/aws.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.formal.ai/#organization\",\"name\":\"Formal Documentation\",\"url\":\"https://docs.formal.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/formal/sSa8LAaTycTeA9sv/assets/logos/light.svg?fit=max\u0026auto=format\u0026n=sSa8LAaTycTeA9sv\u0026q=85\u0026s=071e123e7f14cf72c82a9ddd8199c976\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.formal.ai#website\",\"name\":\"Formal Documentation\",\"url\":\"https://docs.formal.ai\",\"publisher\":{\"@id\":\"https://docs.formal.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.formal.ai/docs/guides/core-concepts/resources/aws#webpage\",\"url\":\"https://docs.formal.ai/docs/guides/core-concepts/resources/aws\",\"name\":\"AWS\",\"description\":\"How to access AWS APIs through the Formal Connector\",\"dateModified\":\"2026-12-01T19:37:42.240Z\",\"isPartOf\":{\"@id\":\"https://docs.formal.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.formal.ai/docs/guides/core-concepts/resources/aws#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.formal.ai/docs/guides/core-concepts/resources/aws#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Resources\",\"item\":\"https://docs.formal.ai/docs/guides/core-concepts/resources/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Technologies\",\"item\":\"https://docs.formal.ai/docs/guides/core-concepts/resources/postgres\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AWS\",\"item\":\"https://docs.formal.ai/docs/guides/core-concepts/resources/aws\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.formal.ai/docs/guides/core-concepts/resources/aws#article\",\"headline\":\"AWS\",\"name\":\"AWS\",\"description\":\"How to access AWS APIs through the Formal Connector\",\"url\":\"https://docs.formal.ai/docs/guides/core-concepts/resources/aws\",\"mainEntityOfPage\":{\"@id\":\"https://docs.formal.ai/docs/guides/core-concepts/resources/aws#webpage\"},\"dateModified\":\"2026-12-01T19:37:42.240Z\",\"publisher\":{\"@id\":\"https://docs.formal.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.formal.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Formal Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Formal Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/guides/core-concepts/resources/aws.md","siteName":"Formal Documentation","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Get started","pages":[{"title":"Get started","href":"/docs/guides/getting-started"}]},{"tab":"Products","menu":[{"item":"Connector","icon":"server","description":"Reverse proxy in front of your resources","pages":[{"title":"Formal Connector","sidebarTitle":"Overview","icon":"plug","href":"/docs/guides/core-concepts/connectors/introduction"},{"group":"Get started","pages":[{"title":"Deploy a Connector","sidebarTitle":"Deploy","icon":"rocket","href":"/docs/guides/core-concepts/connectors/deployment"},{"title":"Listeners and Rules","icon":"route","href":"/docs/guides/core-concepts/connectors/listeners"},{"title":"Connector Hostname and TLS","icon":"shield","href":"/docs/guides/core-concepts/connectors/tls"}]},{"group":"Resources","pages":[{"title":"Resources","sidebarTitle":"Overview","icon":"plug","href":"/docs/guides/core-concepts/resources/introduction"},{"title":"Native Users","icon":"user","href":"/docs/guides/core-concepts/resources/native-users"},{"title":"OAuth and Linked Accounts","icon":"key","href":"/docs/guides/core-concepts/resources/oauth"},{"title":"Resource TLS and Hostnames","icon":"shield","href":"/docs/guides/core-concepts/resources/tls"},{"title":"Dial Configuration","icon":"plug","href":"/docs/guides/core-concepts/resources/dial"},{"title":"Smart Routing","icon":"route","href":"/docs/guides/core-concepts/resources/smart-routing"},{"title":"Spaces","icon":"layer-group","href":"/docs/guides/core-concepts/spaces"},{"group":"Technologies","pages":[{"title":"Postgres","icon":"database","href":"/docs/guides/core-concepts/resources/postgres"},{"title":"MySQL","icon":"database","href":"/docs/guides/core-concepts/resources/mysql"},{"title":"MariaDB","icon":"database","href":"/docs/guides/core-concepts/resources/mariadb"},{"title":"Redshift","icon":"aws","href":"/docs/guides/core-concepts/resources/redshift"},{"title":"MongoDB","icon":"leaf","href":"/docs/guides/core-concepts/resources/mongodb"},{"title":"Snowflake","icon":"snowflake","href":"/docs/guides/core-concepts/resources/snowflake"},{"title":"BigQuery","icon":"google","href":"/docs/guides/core-concepts/resources/bigquery"},{"title":"ClickHouse","description":"How to connect to a ClickHouse Resource using the Formal Connector","icon":"database","href":"/docs/guides/core-concepts/resources/clickhouse"},{"title":"AWS","icon":"aws","href":"/docs/guides/core-concepts/resources/aws"},{"title":"DynamoDB","description":"How to connect to a DynamoDB Resource using the Formal Connector","icon":"aws","href":"/docs/guides/core-concepts/resources/dynamodb"},{"title":"AWS S3","icon":"aws","href":"/docs/guides/core-concepts/resources/s3"},{"title":"GCP","icon":"google","href":"/docs/guides/core-concepts/resources/gcp"},{"title":"HTTP","icon":"globe","href":"/docs/guides/core-concepts/resources/http"},{"title":"Web","icon":"browser","href":"/docs/guides/core-concepts/resources/web"},{"title":"MCP","icon":"robot","href":"/docs/guides/core-concepts/resources/mcp"},{"title":"LLM","icon":"brain-circuit","href":"/docs/guides/core-concepts/resources/llm"},{"title":"gRPC","icon":"code","href":"/docs/guides/core-concepts/resources/grpc"},{"title":"SSH/AWS SSM","icon":"terminal","href":"/docs/guides/core-concepts/resources/ssh"},{"title":"RDP","icon":"desktop","href":"/docs/guides/core-concepts/resources/rdp"},{"title":"Kubernetes","icon":"dharmachakra","href":"/docs/guides/core-concepts/resources/kubernetes"},{"title":"Redis","icon":"database","href":"/docs/guides/core-concepts/resources/redis"}]}]},{"group":"Operate","pages":[{"title":"Size and Load-Test Connectors","sidebarTitle":"Sizing and Load Testing","icon":"gauge-high","href":"/docs/guides/core-concepts/connectors/sizing"},{"title":"Cluster Connectors","sidebarTitle":"Clustering","icon":"network-wired","href":"/docs/guides/core-concepts/connectors/clustering"},{"title":"Monitor Connector Health","sidebarTitle":"Health","icon":"heart-pulse","href":"/docs/guides/core-concepts/connectors/health"},{"title":"Operate Connectors","sidebarTitle":"Operations","icon":"gears","href":"/docs/guides/core-concepts/connectors/operations"},{"title":"Token Encryption","icon":"key","href":"/docs/guides/core-concepts/connectors/token_encryption"},{"title":"FIPS Connector","sidebarTitle":"FIPS","icon":"shield-check","href":"/docs/guides/core-concepts/connectors/fips"}]}]},{"item":"Endpoint","icon":"laptop","description":"Egress proxy for devices and workloads","pages":[{"title":"Endpoint","href":"/docs/guides/client-apps/desktop-app"}]},{"item":"Control Plane","icon":"sliders","description":"Policies, logs, identities and integrations","pages":[{"title":"Control Plane","href":"/docs/guides/control-plane/overview"}]}]},{"tab":"Solutions","menu":[{"item":"MCP Gateway","icon":"network-wired","description":"One sign-in and one policy layer for every MCP server","pages":[{"title":"MCP Gateway","href":"/docs/guides/core-concepts/connectors/mcp-gateway"}]},{"item":"LLM Gateway","icon":"brain","description":"Log, control and cap LLM traffic","pages":[{"title":"LLM Gateway","href":"/docs/guides/solutions/llm-gateway"}]},{"item":"PAM","icon":"key","description":"Privileged access to databases and infrastructure","pages":[{"title":"PAM","href":"/docs/guides/solutions/pam"}]},{"item":"SASE","icon":"shield-halved","description":"Secure egress for devices and workloads","pages":[{"title":"SASE","href":"/docs/guides/solutions/sase"}]}],"pages":[{"title":"Solutions","href":"/docs/guides/core-concepts/connectors/mcp-gateway"}]},{"tab":"Reference","menu":[{"item":"API","icon":"code","description":"HTTP API for the Control Plane","pages":[{"title":"API","href":"/docs/api/introduction"}]},{"item":"CLI","icon":"terminal","description":"The formal command","pages":[{"title":"CLI","href":"/docs/guides/client-apps/cli"}]},{"item":"Infrastructure as code","icon":"cubes","description":"Terraform, Pulumi and Kubernetes","pages":[{"title":"Infrastructure as code","href":"/docs/guides/configuration/terraform"}]},{"item":"SDKs","icon":"box","description":"Go SDK and raw HTTP","pages":[{"title":"SDKs","href":"/docs/guides/configuration/sdks/http-api"}]}],"pages":[{"title":"Reference","href":"/docs/api/introduction"}]},{"tab":"VPN","hidden":true,"pages":[{"title":"VPN","href":"/docs/guides/vpn/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/docs/changelog"}]}]},"basePath":"","title":"AWS - Formal Documentation","deploymentId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","buildId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-Cy_F8FSm.js","lightbox-handle-r17bVUz3.js"]}