Skip to main content

AWS Network Firewall ExecModule

Overview​

AwsNetworkFirewallModule brings regional AWS Network Firewall posture into ValkyrAI workflows without exposing rule bodies or allowing a workflow to change enforcement. Security and platform teams can inventory managed firewalls, inspect one firewall's deployment state and protections, review firewall-policy capacity and associations, discover rule groups, verify logging destinations, and correlate resources through tags.

The module is deliberately read-only. It uses ValkyrAI's native map ABI, annotation-backed Workflow Studio discovery, and a verified IntegrationAccount. Workflow input never accepts AWS keys, session tokens, authorization headers, endpoint overrides, raw SDK requests, rule strings, update tokens, or mutation operations.

Usage​

  1. Create a least-privilege AWS identity with only the Network Firewall read actions required by the workflow.
  2. Store its access-key pair in a ValkyrAI IntegrationAccount, verify the account, and keep it in READY status.
  3. Add AwsNetworkFirewallModule and bind the account through ExecModuleConfig.authConfig.integrationAccount.
  4. Set the exact AWS region, choose one supported operation, and provide only that operation's accepted fields.
  5. For inventory operations, choose a total limit and enable returnAll only when the workflow needs multiple provider pages.
  6. Route normalized output to posture reporting, approval, evidence, or service-specific remediation steps.

AWS Network Firewall resources are regional. A workflow must inspect each required region separately, and names are resolved only inside the selected account and region.

Inputs​

InputTypeRequiredDefaultDescription
operationstringYes—One supported AWS Network Firewall operation.
regionstringYes—Exact AWS region such as us-west-2.
nextTokenstringNo—Opaque continuation token returned by AWS.
limitintegerList operations100Total result bound from 1 to 1,000.
returnAllbooleanList operationsfalseFollow provider pages until the limit or exhaustion.
vpcIdsarrayNo—Up to 100 exact VPC IDs for list_firewalls.
firewallNamestringConditional—Exact firewall name, mutually exclusive with firewallArn.
firewallArnstringConditional—Exact firewall ARN, mutually exclusive with firewallName.
firewallPolicyNamestringConditional—Exact policy name, mutually exclusive with firewallPolicyArn.
firewallPolicyArnstringConditional—Exact policy ARN, mutually exclusive with firewallPolicyName.
ruleGroupNamestringConditional—Exact rule-group name, mutually exclusive with ruleGroupArn.
ruleGroupArnstringConditional—Exact rule-group ARN, mutually exclusive with ruleGroupName.
ruleGroupTypestringConditional—STATEFUL or STATELESS; required for rule-group metadata.
resourceArnstringlist_tags—Exact Network Firewall resource ARN.

Unknown fields and fields that do not belong to the chosen operation are rejected before any provider call. Describe operations require exactly one name or ARN, never both.

Outputs​

Every operation uses a stable envelope:

OutputDescription
statussuccess or error.
operationNormalized operation name.
attemptsProvider calls, including pages and safe read retries.
resultTypeResult family such as firewalls, rule_groups, or logging_configuration.
items / countBounded normalized list results and their count.
pages / hasMore / nextTokenPagination evidence for list operations.
dataNormalized single-resource result.
requestIdAWS request identifier when safely available.
errorStable code, redacted message, HTTP status, and retryability.

Firewall details include identifiers, VPC and policy relationships, protection flags, status, sync-state counts, subnet counts, and tag counts. Policy results include identifiers, status, association count, consumed stateful and stateless capacity, and last modification time. Rule-group metadata excludes rule bodies and update tokens. Logging results contain bounded destination maps, while tag results contain bounded key/value pairs.

IntegrationAccount Requirements​

Use an AWS IntegrationAccount with:

  • status: READY
  • verified: true
  • access key ID in the account API-key field
  • secret access key in the protected password field

The connector reads credentials only from the bound account after validation. It disables AWS SDK retries so ValkyrAI can apply bounded retry policy and report exact attempt counts.

A read deployment may need a subset of these IAM actions:

network-firewall:ListFirewalls
network-firewall:DescribeFirewall
network-firewall:ListFirewallPolicies
network-firewall:DescribeFirewallPolicy
network-firewall:ListRuleGroups
network-firewall:DescribeRuleGroupMetadata
network-firewall:DescribeLoggingConfiguration
network-firewall:ListTagsForResource

Scope permissions to the accounts, regions, and resources the workflow must inspect. This module does not require create, update, associate, disassociate, or delete permissions.

Configuration​

ExecModuleConfig supplies the IntegrationAccount and optional retry policy. Read operations retry only transient throttling, server, and network failures. The default is three attempts; configuration is bounded from one to five attempts. Retry delays honor a bounded provider delay when available and otherwise use bounded exponential backoff.

The module accepts standard regional AWS endpoints only. Custom endpoints and caller-supplied credentials are rejected to keep the credential and network boundary auditable.

Operations​

Firewall inventory and state​

  • list_firewalls lists bounded firewall name/ARN summaries. Optional vpcIds narrows discovery to reviewed VPCs.
  • describe_firewall inspects one exact firewall by name or ARN. Output covers deployment identifiers, the associated policy, VPC, protections, status, configuration synchronization summary, and bounded counts.

The connector reports sync-state counts but does not serialize detailed availability-zone attachment payloads. Teams can use the normalized status to identify firewalls that need a deeper provider-console or CloudTrail review.

Firewall-policy posture​

  • list_firewall_policies lists bounded policy name/ARN summaries.
  • describe_firewall_policy inspects one exact policy by name or ARN.

Policy output is posture-oriented: status, consumed stateful and stateless capacity, association count, identifiers, tags count, description, and modification time. The raw firewall-policy document, rule order, action definitions, and update token are intentionally excluded.

Rule-group discovery​

  • list_rule_groups lists bounded rule-group name/ARN summaries and may filter by STATEFUL or STATELESS.
  • describe_rule_group_metadata returns bounded metadata for one exact rule group and requires its type.

Metadata output includes identifiers, description, type, capacity, and modification time. Raw Suricata rules, five-tuple definitions, domain lists, reference sets, stateful options, and update tokens never enter workflow output.

Logging and tags​

  • describe_logging_configuration reports the bounded log types, destination types, and destination configuration for one exact firewall.
  • list_tags lists bounded tags for one exact Network Firewall resource ARN.

Logging destinations may contain operational resource names such as log groups, buckets, or delivery streams. Treat the output according to your organization's infrastructure-data classification and access policies.

Errors and Failure Modes​

CodeMeaningGuidance
VALIDATION_ERRORA required field, region, ARN, name, VPC ID, type, limit, or field combination is invalid.Correct input; no provider call was made.
INTEGRATION_ACCOUNT_ERRORThe bound account is missing, unverified, not READY, or incomplete.Repair and verify the account.
UNSUPPORTED_OPERATIONThe operation is outside this read-only release.Select a documented operation.
AWS_NETWORK_FIREWALL_HTTP_400AWS rejected the request or exact target.Confirm region, type, name/ARN, and provider constraints.
AWS_NETWORK_FIREWALL_HTTP_403IAM denied the requested read.Add only the missing least-privilege action.
AWS_NETWORK_FIREWALL_HTTP_404The selected resource does not exist in this account and region.Verify the exact identifier and region.
AWS_NETWORK_FIREWALL_HTTP_429 / 500 / 502 / 503 / 504Throttling or transient provider pressure.The module applies bounded safe-read retries.
NETWORK_ERRORValkyrAI could not reach the AWS service endpoint.Check egress, DNS, regional availability, and retry policy.
EXECUTION_ERRORAn unexpected local failure was safely contained.Inspect server logs; secrets and provider messages remain redacted.

Provider exception text is never returned to the workflow. A safe AWS request ID is preserved when available for CloudTrail and support correlation.

Example​

This step inventories firewalls protecting two production VPCs:

{
"operation": "list_firewalls",
"region": "us-west-2",
"vpcIds": [
"vpc-0123456789abcdef0",
"vpc-0fedcba9876543210"
],
"returnAll": true,
"limit": 250
}

Expected result shape:

{
"status": "success",
"operation": "list_firewalls",
"attempts": 1,
"resultType": "firewalls",
"items": [
{
"firewallName": "prod-edge",
"firewallArn": "arn:aws:network-firewall:us-west-2:123456789012:firewall/prod-edge"
}
],
"count": 1,
"pages": 1,
"hasMore": false,
"requestId": "example-request-id"
}

A practical posture workflow can list expected firewalls by VPC, describe each firewall, compare its policy relationship and synchronization status with an approved inventory, then verify that logging destinations exist. Findings can be routed to a reviewed ticket or approval step; a separate authorized change workflow must perform any remediation because this connector never mutates Network Firewall resources.

Notes​

  • Pagination: Opaque AWS tokens are preserved. returnAll follows no more than 100 pages and returns no more than 1,000 normalized items.
  • Rate limits: All provider operations are reads. Transient reads retry with bounded delays and at most five configured attempts.
  • API limits: Each provider request uses at most 100 results. VPC filters are bounded to 100 exact identifiers, logging destinations to 100, and destination maps to 20 entries.
  • Idempotency: Every supported operation is read-only and repeatable against the current AWS state.
  • Destructive behavior: None. Firewall, policy, rule-group, logging, and tag mutation operations are intentionally unsupported.
  • Credential safety: Workflow input cannot contain AWS credentials, authorization headers, session tokens, or endpoint overrides. Errors and diagnostic strings are redacted.
  • Data minimization: Rule bodies, raw policy documents, update tokens, detailed subnet attachment payloads, and raw SDK responses are not emitted.
  • Regional scope: Names and ARNs are evaluated in the selected account and region. The connector does not perform cross-region fan-out.
  • Runtime boundary: Merged source and published documentation do not update the deployed Workflow Studio catalog until a ValkyrAI backend release exposes AwsNetworkFirewallModule through /v1/modules/metadata.