Tag Archives: announcements

Introducing context-aware rules for AWS Network Firewall

Post Syndicated from Lawton Pittenger original https://aws.amazon.com/blogs/security/introducing-context-aware-rules-for-aws-network-firewall/

AWS Network Firewall now supports context-aware rules, which match traffic by the AWS resources that send and receive it instead of by IP address. A rule can name a virtual private cloud (VPC), a subnet, a security group, or a transit gateway attachment. Rules that match on IP addresses have to keep up with every workload that scales out, is replaced, or moves. Short-lived workloads are the hardest to keep up with. A VPC-attached AWS Lambda function can scale out and start sending traffic before an updated IP list reaches the firewall. With context-aware rules, you can filter a function’s traffic by the security group attached to it.

With context-aware rules, you can:

  • Write rules that follow your workloads – A rule that names a security group applies to each new resource whose network interface has that security group attached. A rule that names a subnet or VPC applies to each new resource that you launch in it. A rule that names a transit gateway attachment applies to traffic that enters through that attachment.
  • Apply one policy across accounts – One context store tracks the resources in the accounts that attach to a shared transit gateway. A rule can name context from any of those accounts.
  • See which resources are behind each connection – Your firewall logs record the resources on each side of a flow, along with their IP addresses.

In this post, we explain how context-aware rules work, set them up across accounts, and show what the logs record.

How context-aware rules work

Context-aware rules require transit gateway-attached firewalls, and they combine a control path and a data path (Figure 1). On the control path, a context store tells the firewall which AWS resources exist. On the data path, the transit gateway adds the context of the sender to each packet. The firewall brings the two together and matches that context against your rules.

Figure 1: How context-aware rules work across accounts

A context store tracks your resources. A context store is a catalog of the AWS resources that can send and receive traffic through a transit gateway. You create it in AWS Network Manager and associate it with the transit gateway that your firewall uses. When you share the transit gateway with workload accounts through AWS Resource Access Manager (AWS RAM), those accounts create transit gateway VPC attachments to it. The context of those attachments, and of the resources behind them, then appears in the same context store. The context store is designed to keep the firewall in sync as you add and remove resources.

The transit gateway tags each packet. When traffic crosses the transit gateway, the transit gateway tags each packet with the context of the resource that sent it. That context is the sender’s VPC, subnet, transit gateway attachment, and the security groups attached to the sender. The firewall gets only the security group IDs, not their rules, so a rule that names any one of those groups matches.

The firewall matches context IDs in your rules. It reads the context on each packet and matches it against your rules. You group context IDs into a context set, a named rule variable that lists resources from the context store associated with the firewall. Then you use the set in the source or destination of a rule, in a Classic or Next Generation firewall policy.

Source context works with every protocol, because each packet carries the context of its sender. Destination context requires TCP-based rules, because the firewall learns the receiving resource from return traffic. For more details, see How context-aware rules work and Matching on destination context. AWS Transit Gateway also shares context with third-party firewalls through Gateway Load Balancer. For that setup, see Introducing resource context for firewall policies with AWS Transit Gateway.

Getting started

In this example, a central networking account owns the transit gateway and the firewall, and shares the transit gateway with workload accounts through AWS RAM. You complete steps 1 and 2 once, in the account that owns the transit gateway.

1. Create a context store. In the AWS Network Manager console, select or create a global network and register your transit gateway with it. Then create a context store and associate it with the transit gateway (). Network Firewall discovers the context store on its own, so there’s nothing to configure on the firewall.

Figure 2: A context store associated with a transit gateway

2. Give Network Firewall access to the context store. In the account that owns the context store, create the AWS Identity and Access Management (IAM) role NetworkFirewallContextStoreReadOnly. Use the trust policy and permissions in Onboarding your transit gateway to a context store. You create the role once for each account that owns a context store.

3. Create a context set. In the Amazon Virtual Private Cloud (Amazon VPC) console, under Network Firewall, create a rule group. On the Rule group variables page, choose Create context set, select your context store, and select the resources for the set. One set can mix context IDs of different resource types, from the accounts in the context store.

Figure 3: Creating a context set from the resources that the context store tracks

4. Check the sync state. Before you write rules, open the firewall’s details page and check the Context store sync state section. It shows the context store that the firewall discovered and its sync state.

Figure 4: The context store sync state on the firewall’s details page

5. Use the context set in your rules. The sample rule from Writing context-aware rules blocks SSH from PROD_RESOURCES to destinations outside your home networks. In a Next Generation firewall rule group, on the Configure rules page, use the Visual rule builder. Choose Drop and TCP. For Sources, choose Match specific criteria, select Context sets, and choose PROD_RESOURCES. For Destinations, choose Match specific criteria, select Destination IP, and enter $EXTERNAL_NET. Set the destination port to 22. Then add the rule group to your firewall policy.

Figure 5: Choosing a context set as a rule’s source in the Next Generation rule builder

The same rule in Suricata-compatible syntax follows. drop:flow is the action and its scope, tcp:all the protocol and connection state, and the rest is the source, destination, and port. In raw rules, you reference a context set with $ and its name; in the console, you pick it from a list.

drop:flow tcp:all $PROD_RESOURCES any -> $EXTERNAL_NET 22 (msg:"Block SSH from production to external"; sid:2001;)

Because the rule names resources and not addresses, it covers each new resource that you launch in those VPCs or attach that security group to.

For Classic policies, the same rule looks like this:

drop tcp $PROD_RESOURCES any -> $EXTERNAL_NET 22 (msg:"Block SSH from production to external"; sid:2001; rev:1;)

What the logs record

After you associate the transit gateway with a context store, Network Firewall adds a context object to its alert log and flow log records. The following records, shortened, show one outbound TLS connection from an application instance to example.com, through a central egress VPC with a network address translation (NAT) gateway. A rule that references the application’s security group blocks the connection and writes this alert log record. The matched list names the security group that the rule matched.

{
  "event": {
    "event_type": "alert",
    "flow_id": 314246768212473,
    "src_ip": "10.1.1.25",
    "dest_ip": "203.0.113.10",
    "dest_port": 443,
    "app_proto": "tls",
    "tls": {
      "sni": "example.com"
    },
    "context": {
      "matched": [
        "sg-0a1b2c3d4e5f60031"
      ]
    },
    "alert": {
      "action": "blocked",
      "signature_id": 2002,
      "signature": "Application A: domain not on its allow list"
    }
  }
}

The flow log record for the same flow_id lists the full context on each side. The src list holds the sender’s context IDs. Flow logs record this context for every flow, even when no rule matches it.

{
  "event": {
    "event_type": "netflow",
    "flow_id": 314246768212473,
    "src_ip": "10.1.1.25",
    "dest_ip": "203.0.113.10",
    "dest_port": 443,
    "app_proto": "tls",
    "context": {
      "src": [
        "vpc-0a1b2c3d4e5f60001",
        "subnet-0a1b2c3d4e5f60011",
        "tgw-attach-0a1b2c3d4e5f60021",
        "sg-0a1b2c3d4e5f60031"
      ],
      "dst": [
        "vpc-0a1b2c3d4e5f60003",
        "subnet-0a1b2c3d4e5f60013",
        "tgw-attach-0a1b2c3d4e5f60023"
      ]
    }
  }
}

The dst list shows how destination context works for traffic to the internet. The firewall learns the destination from the response, and the response reaches the firewall from the NAT gateway. So the destination context is the egress VPC, the NAT gateway’s subnet, and the egress VPC’s transit gateway attachment, not the internet host. You can query these fields by context ID in Amazon CloudWatch Logs Insights. For example, you can see what an application already connects to before you write its rules. For the fields, see Context in your network firewall logs.

Availability and pricing

Context-aware rules are available at no additional charge. Standard AWS Network Firewall and AWS Transit Gateway charges apply to the resources that you use. For details, see AWS Network Firewall pricing and AWS Transit Gateway pricing. They work in the AWS Regions where both Network Firewall and Transit Gateway context sharing are available.

Conclusion

In this post, we showed how you can use context-aware rules in Network Firewall to match traffic on the context of the resources that send and receive traffic. A context store tracks those resources across the accounts that share your transit gateway, and the transit gateway tags each packet with its sender’s context. Your rules and logs then use that context, so your rules can keep up as workloads change. To learn more, see Context-aware rules in AWS Network Firewall.

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


Lawton Pittenger

Lawton Pittenger

Lawton is a Worldwide Security Specialist Solutions Architect at AWS, based in New York City. He helps customers design and implement effective network security controls, and works with AWS service teams to improve security services based on customer feedback. Outside of work, he enjoys skateboarding, snowboarding, and spending time in nature.

Santosh Shanbhag

Santosh Shanbhag

Santosh is a seasoned product leader, specializing in security, data protection, and compliance. At AWS, he focuses on securing workloads through Network and Application Security services, including AWS Network Firewall and active threat defense.

Rahi Patel

Rahi Patel

Rahi is a Startups Technical Account Manager at AWS specializing in Networking. He architects cloud networking solutions, optimizing performance across global AWS deployments. Previously a network engineer with Cisco Meraki, he holds an MS in Engineering from San Jose State University. Outside work, he enjoys tennis and pickleball.

Mahesh Elireddy

Mahesh Elireddy

Mahesh is a Senior Software Development Engineer at AWS, where he has spent 10 years building the network. He has been a part of the teams that built Network Load Balancer, Gateway Load Balancer, and NAT Gateway, and now works on AWS Network Firewall. Outside of work, he likes spending time outdoors in the Pacific Northwest with his family.

Introducing AWS Network Firewall Next Generation policy

Post Syndicated from Lawton Pittenger original https://aws.amazon.com/blogs/security/introducing-aws-network-firewall-next-generation-policy/

When it comes to inspecting network traffic, many security teams want two things from a firewall. They want to allow only the traffic each application needs, and they want each allowed connection checked for known threats. Today, you can do both with AWS Network Firewall, a stateful, managed network firewall and intrusion detection and prevention service. In a Classic policy, your access rules and your threat rules run together in one stateful engine and share one rule capacity.

With Next Generation policies, access control and threat protection each get their own engine in the same firewall. A firewall engine allows the traffic you approve and drops the rest. An intrusion prevention system (IPS) engine checks the allowed traffic with AWS managed rule groups or with rules that you write. Each engine has its own rule capacity, so adding access rules doesn’t take capacity away from threat protection.

In this post, we walk through what Next Generation policies are, how they evaluate traffic, and the new concepts they introduce. We use sample records to cover what each engine logs and how to validate a policy with the new monitor mode. To put it all together, we walk through creating an example Next Generation policy.

How a Next Generation policy works

A Next Generation policy inspects traffic with two engines, in sequence. Traffic that the firewall engine allows moves to the IPS engine, and traffic that the firewall engine blocks goes no further. The firewall engine is drop by default, and the IPS engine is pass by default.

If you already write Suricata rules, the two engines will feel familiar. The firewall engine is built on Suricata 8 firewall mode, which follows each connection as it progresses and evaluates rules at each step. The IPS engine uses the Suricata compatible intrusion detection system (IDS) and IPS rules that you already know from the stateful engine in a Classic policy, with one difference: it evaluates rules in action order and doesn’t support Classic options such as strict order.

A Classic policy uses a stateless engine and then a stateful engine that evaluates access rules and threat rules together. In a Next Generation policy, both engines are stateful, so each rule is evaluated with full connection context, which helps keep traffic handling consistent and predictable. The firewall engine works up to the application layer. It follows each connection for its entire flow, from the first packet through the TCP handshake and application layer exchanges such as the TLS client hello, and evaluates your access rules along the way (Figure 1).

Figure 1: Classic and Next Generation policy engines and their rule capacity.

Figure 1: Classic and Next Generation policy engines and their rule capacity.

This separation changes how you design a policy. Because each engine has one job, you can plan access control and threat protection on their own, and different teams can work independently. For example, a networking team can manage access rules while a security team handles threat detection, and neither has to rewrite the other’s rules.

The firewall engine controls access

You configure access control by specifying an action for a protocol, along with a source and destination. Rules run in the order that you set. Traffic that no rule allows gets the policy’s firewall default action, which is drop unless you change it. In a Next Generation policy, the drop default action applies from the first packet, so for TCP traffic the firewall can drop the initial SYN. Unlike the drop established default action in a Classic policy, it doesn’t wait for a connection to be established.

A few terms explain how the firewall engine evaluates traffic. Connection states are the protocol states that a connection progresses through, such as the TCP handshake and the TLS client hello. A hook is the point at a connection state where your rules attach, so a rule’s hook sets when the firewall engine evaluates it. Each rule also has an action, such as accept, drop, or reject. Its action scope sets how much of the traffic the action applies to, from one packet or one transaction up to the whole connection, called the flow. For more details, see Firewall engine hooks.

When you build a rule in the console, you choose a protocol and then two settings: Connection state, which sets the rule’s hook, and Action scope. For example, to allow a domain over TLS, you match its server name at the Client Hello connection state with the This flow action scope.

Because the firewall engine is drop by default, a connection advances to the next connection state only while your rules keep accepting it. For example, a connection can pass the TCP handshake and still be dropped at the TLS client hello. That happens when its server name isn’t on your approved list (Figure 2).

Figure 2: A connection is accepted at the TCP handshake hook and dropped at the TLS client hello hook.

Figure 2: A connection is accepted at the TCP handshake hook and dropped at the TLS client hello hook.

In Figure 2, the rule for www.amazon.com accepts the flow when it matches the server name at the TLS client hello hook. No rule accepts example.com at that hook, so the firewall default action drops it.

You don’t have to write every rule in raw Suricata syntax. You can build rules in the console rule builder, or, as in the example later in this post, enter your domains in a domain list rule group, and Network Firewall builds the rules for you.

Action scope also sets where an accepted connection goes next. An accept with the hook scope allows the connection to advance to the next connection state, where the rules at that hook evaluate it. An accept with the flow scope lets the connection skip the remaining hooks and move to the IPS engine (Figure 3). A firewall rule can also bypass the IPS engine for specific traffic when you choose. For the valid combinations of action and scope at each type of hook, see Firewall engine actions and scopes.

Figure 3: An accept with the hook scope compared with an accept with the flow scope.

Figure 3: An accept with the hook scope compared with an accept with the flow scope.

The IPS engine looks for threats

Traffic that the firewall engine allows then reaches the IPS engine, which inspects it with Suricata compatible rules. The IPS engine is designed to look for specific threats, so it blocks only traffic that matches a threat rule. IPS rules evaluate in action order. Pass rules go first, then drop, reject, and alert rules, regardless of the order in which you define them. For the full path through both engines, see How Network Firewall filters traffic with a Next Generation policy.

We recommend that you start with the AWS managed rule groups. Because the IPS engine is built on the industry standard Suricata engine, you can also run Suricata compatible rule sets from specialized security providers, alongside rules that you write yourself.

Referenced rule groups and embedded rules

Each engine gets its rules from its own section of the policy. You can add rules in two ways and mix both in one section.

Referenced rule groups are separate resources, and they’re the only kind of rule group that Classic policies support. You create a rule group once and add it to as many policies as you need. You can also share it with other accounts through AWS Resource Access Manager (AWS RAM). For details, see Sharing AWS Network Firewall resources. When you update the rule group, each policy that references it picks up the change. You set a referenced rule group’s capacity when you create it, and you can’t change it afterward, so leave room for it to grow.

Embedded rules are new with Next Generation policies. You write them directly inside one policy, and they belong to that policy only, so you can’t share them with another policy. Use them to add rules quickly that are specific to that policy. They use that engine’s rule capacity, and you don’t set a capacity up front. Embedded rules in both engine sections share a combined limit. For all limits, see AWS Network Firewall quotas.

Read what each engine logs

Whichever way you add rules, both engines write to the same alert and flow logs, which you configure in the logging configuration. Each alert record carries new fields that show which engine wrote it and, for the firewall engine, the hook where the decision happened.

The following record came from a test, in enforce mode, of the example policy that you build later in this post. A host tried to reach example.com, which isn’t on the allow list.

{
  "firewall_name": "example-fw",
  "availability_zone": "us-east-1a",
  "event_timestamp": "1794341434",
  "event": {
    "event_type": "alert",
    "app_proto": "tls",
    "src_ip": "10.0.1.25",
    "src_port": 42698,
    "dest_ip": "203.0.113.10",
    "dest_port": 443,
    "proto": "TCP",
    "tls": {
      "sni": "example.com"
    },
    "alert": {
      "engine": "fw",
      "action": "blocked",
      "signature_id": 2201001,
      "signature": "SURICATA FW default app policy",
      "severity": 3
    },
    "firewall": {
      "hook": "tls:client_hello",
      "policy": "drop:flow,alert"
    },
    "verdict": {
      "action": "drop"
    },
    "aws_metadata": {
      "resource_arn": "arn:aws:network-firewall:us-east-1:111122223333:firewall-policy-v2/example-policy"
    },
    "timestamp": "2026-11-10T20:10:34.141643+0000"
  }
}

The following table explains the key fields in this record.

Field Value What it tells you
alert.engine fw The firewall engine wrote this record.
firewall.hook tls:client_hello The decision happened at the TLS client hello, where the client sends the server name example.com.
alert.signature SURICATA FW default app policy No rule matched, so the firewall default action applied. The default action logs its drops on its own, so you don’t need an alert rule to see what it blocks.
firewall.policy drop:flow,alert The action and scope that applied. The default action dropped the whole flow and wrote an alert.
aws_metadata.resource_arn arn:aws:network-firewall:us-east-1:111122223333:firewall-policy-v2/example-policy The policy itself is the source, because the record doesn’t come from one of your rule groups.

When a connection that the firewall engine allowed matches a threat rule, the IPS engine writes its own record. In this test, the firewall engine allowed TLS to one test server by IP address. The IPS section also held the following embedded rule, which drops TLS connections with a JA4 fingerprint that your threat intelligence flags. The fingerprint in this rule is a sample value:

drop tls $HOME_NET any -> $EXTERNAL_NET any (msg:"Example: flagged TLS client fingerprint (JA4)"; flow:to_server,established; ja4.hash; content:"t13d1516h2_aaaaaaaaaaaa_bbbbbbbbbbbb"; classtype:trojan-activity; sid:900002; rev:1;)

This is a sample rule to show the IPS engine at work. In your own policies, we recommend that you start with the AWS managed threat signature rule groups and add custom rules where you need them.

A test client with that fingerprint connected to that server without a server name, and the IPS engine wrote the following record.

{
  "firewall_name": "example-fw",
  "availability_zone": "us-east-1a",
  "event_timestamp": "1794377726",
  "event": {
    "event_type": "alert",
    "app_proto": "tls",
    "src_ip": "10.0.1.25",
    "src_port": 38342,
    "dest_ip": "198.51.100.7",
    "dest_port": 443,
    "proto": "TCP",
    "tls": {
      "version": "TLS 1.3",
      "ja4": "t13d1516h2_aaaaaaaaaaaa_bbbbbbbbbbbb"
    },
    "alert": {
      "engine": "td",
      "action": "blocked",
      "signature_id": 900002,
      "signature": "Example: flagged TLS client fingerprint (JA4)"",
      "category": "A Network Trojan was detected",
      "severity": 1
    },
    "verdict": {
      "action": "drop"
    },
    "aws_metadata": {
      "resource_arn": "arn:aws:network-firewall:us-east-1:111122223333:firewall-policy-v2/example-policy"
    },
    "timestamp": "2026-11-11T06:15:26.671435+0000"
  }
}

Field Value What it tells you
alert.engine td The IPS engine wrote this record. IPS records have no firewall object, because IPS rules don’t use hooks.
tls.ja4 t13d1516h2_aaaaaaaaaaaa_bbbbbbbbbbbb The JA4 fingerprint of the client, which matches the fingerprint in the rule.
alert.signature Example: flagged TLS client fingerprint (JA4) The IPS rule that matched, from the rule’s msg option.
alert.category A Network Trojan was detected The rule’s classtype, trojan-activity, sets this category.
verdict.action drop The IPS engine dropped the connection.
aws_metadata.resource_arn arn:aws:network-firewall:us-east-1:111122223333:firewall-policy-v2/example-policy The rule is embedded in the policy, so the record shows the policy ARN. A match from an AWS managed rule group or one of your referenced rule groups carries that rule group’s ARN instead.

To separate access control events from threat events in your queries, filter on the engine field. To find which rule group produced an event, use resource_arn. Embedded rules and the default action show the policy ARN.

Validate in monitor mode, then enforce

Each Next Generation policy has a policy mode, enforce or monitor. In enforce mode, the engines apply their actions. In monitor mode, both engines evaluate your traffic and log what they would do. Your rules and the default action don’t drop or reject traffic.

Monitor mode also turns on alert logging for your rules and the default action, so each firewall rule that would block traffic logs its matches. That makes monitor mode a lower-risk way to stage a rollout of a new policy or a change to an existing one. Monitor logs are close to enforce mode but can differ. When a firewall rule would block a connection, monitor mode lets the connection through but sends it past the IPS engine, just as a blocked connection never reaches the IPS engine in enforce mode. So the monitor logs don’t show IPS alerts for that connection. For the full list of differences, see Policy mode: enforce and monitor.

To validate a policy in monitor mode:

  1. Set Policy mode to Monitor, and confirm that alert logging is on for the firewall. Amazon Route 53 Resolved IP Validation still applies its configured action in monitor mode, so if your policy uses it, set its action to Alert.
  2. Send representative traffic for long enough to cover your normal patterns.
  3. In your alert logs, filter on engine = fw. Check the FirewallDefaultActionApplied metric in Amazon CloudWatch. Traffic that you meant to allow shouldn’t be reaching the default action.
  4. When the results look right, switch Policy mode to Enforce during a maintenance window. Changing the policy mode or the firewall default action restarts stateful inspection on the firewall, which interrupts established connections.

Example policy with a domain allow list and threat protection

The following example puts the engines, logs, and monitor mode together. It allows outbound traffic only to approved domains and checks that allowed traffic for known threats. The firewall engine holds the domain allow list, and the IPS engine runs the AWS active threat defense managed rule group. Figure 4 shows the policy and where each of the earlier log records comes from. Log record 2 comes from the sample embedded rule, which isn’t part of the policy that you create in the following steps.

Figure 4: The example policy, with the sample embedded rule behind log record 2.

Figure 4: The example policy, with the sample embedded rule behind log record 2.

To create the domain list rule group:

  1. In the Network Firewall console, choose Network Firewall rule groups, and then choose Create rule group. Choose Next Generation as the rule group version, Firewall rule group as the type, and Domain list as the format.

    Figure 5: Choosing the rule group version, type, and format for the domain list.

    Figure 5: Choosing the rule group version, type, and format for the domain list.

  2. Enter one domain per line, for example .amazon.com and checkip.amazonaws.com, and under Protocols, select HTTPS only. For HTTPS, the firewall matches the TLS Server Name Indication (SNI) without decrypting traffic. SNI is the server name that a client sends at the start of a TLS connection. To include a domain and its subdomains, start the name with a dot.
  3. For Capacity sizing, choose Allow room to grow, and then create the rule group.

To create the policy:

  1. Choose Firewall policies, and then choose Create firewall policy. Select Next Generation as the policy version and Drop as the firewall default action, so the firewall blocks traffic that you don’t allow. Set Policy mode to Monitor. We recommend rolling out a new policy in monitor mode first, then switching to enforce after you validate it. Enable Active Threat Defense is selected by default. Active threat defense is optional. Additional charges apply; for details, see AWS Network Firewall pricing.
    Figure 6: The policy details page, with Next Generation, Drop, and Monitor selected.

    Figure 6: The policy details page, with Next Generation, Drop, and Monitor selected.

  2. On the Add firewall rule groups step, add the domain list rule group that you created in the previous procedure.
  3. On the Add IPS rule groups step, the active threat defense managed rule group, listed as AttackInfrastructure, is already added. It comes from the Enable Active Threat Defense default that Figure 6 shows. Choose Add rule group to add more AWS managed rule groups, your own rule groups, or embedded rules.
  4. Create the policy, associate it with your firewall, and turn on alert and flow logging.
  5. After you validate the policy, as described in Validate in monitor mode, then enforce, switch Policy mode to Enforce.

For more detail, see Creating a rule group for a Next Generation policy and Generating firewall rules from domain names.

Already using Classic policies?

Classic Network Firewall policies remain supported, and your existing firewalls keep running as they are. Each firewall uses one policy type at a time, either a Classic policy or a Next Generation policy. For new firewalls, we recommend Next Generation policies. We’re working on migration guidance for existing policies, so you can plan a move when it suits you.

To try one now, create a test firewall with a Next Generation policy and start it in monitor mode. To compare the two policy types, see AWS Network Firewall firewall policy versions. Next Generation policies are available at no additional charge. You pay the standard Network Firewall charges for your firewall endpoints and the traffic they process. For Regions and pricing, see AWS Services by Region and AWS Network Firewall pricing.

Conclusion

In this post, we showed you how a Next Generation policy gives access control and threat protection separate engines, each with its own rule capacity, so you can grow your firewall rules and IPS rules independently. We also showed what each engine logs, how to validate a policy in monitor mode, and how to build a policy that allows only approved domains and checks the allowed traffic for threats. To learn more, see Getting started with a Next Generation policy, and to automate your policies, use the AWS Command Line Interface (AWS CLI) or the AWS SDKs.

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


Lawton Pittenger

Lawton Pittenger

Lawton is a Worldwide Security Specialist Solutions Architect at AWS, based in New York City. He helps customers design and implement effective network security controls, and works with AWS service teams to improve security services based on customer feedback. Outside of work, he enjoys skateboarding, snowboarding, and spending time in nature.

Santosh Shanbhag

Santosh is a seasoned product leader, specializing in security, data protection, and compliance. At AWS, he focuses on securing workloads through Network and Application Security services, including AWS Network Firewall and active threat defense.

Aneesh Patel

Aneesh Patel

Aneesh is a Software Development Engineer at AWS, based in Herndon, Virginia. He builds and maintains AWS Network Firewall, a managed service that helps customers protect their VPC networks. Outside of work, he enjoys snowboarding, working out, and playing video games.

AWS Network Firewall introduces automated internet firewall mode (Preview)

Post Syndicated from Lawton Pittenger original https://aws.amazon.com/blogs/security/aws-network-firewall-introduces-automated-internet-firewall-mode-preview/

AWS Network Firewall now offers automated internet firewall mode (Preview). In this mode, Network Firewall applies your centrally defined rules to traffic at the internet gateway of each of your virtual private clouds (VPCs). It also performs built-in network address translation (NAT) for outbound-only connections. A subnet that reaches the internet needs only one route, directly to the internet gateway. You no longer need to deploy firewall endpoints and NAT gateways in each VPC and configure the routes between them and the subnets. If you’re new to internet traffic inspection, you can start with AWS managed rule groups for Network Firewall. AWS security experts maintain and update these rule groups to help protect your workloads against changing threats. You can deploy these managed rule groups centrally across your environment.

With automated internet firewall mode, you can:

  • Inspect traffic at the internet gateway – Each VPC gets its own firewall for inbound and outbound IPv4 and IPv6 traffic, with built-in NAT for outbound-only IPv4 connections.
  • Manage centrally, inspect in each VPC – You define policies in AWS Network Security Manager or start from an AWS managed template. Each VPC’s traffic passes its own firewall, so each VPC you add brings its own inspection capacity. The same central policy also works for VPCs with overlapping Classless Inter-Domain Routing (CIDR) ranges.
  • Extend coverage to new VPCs – You can create a scope that includes all existing and future VPCs, so your policy applies to new VPCs when teams create them.

In this post, we explain how automated internet firewall mode works and how it fits your existing architecture. We also walk through the steps to deploy it across your environment.

How automated internet firewall mode works

In automated internet firewall mode, Network Firewall applies your rules at the internet gateway of each VPC. Before this launch, inspecting a VPC’s internet traffic meant routing each subnet through a firewall endpoint. Resources that needed outbound-only connectivity also went through a NAT gateway. This mode helps simplify that model by moving inspection to each VPC’s internet gateway. Each subnet now has one route to the internet gateway, where the firewall inspects the traffic and performs built-in NAT (Figure 1).

Figure 1: Outbound traffic before and after automated internet firewall

Figure 1: Outbound traffic before and after automated internet firewall

Each VPC gets its own firewall, not a share of one. When you use VPC endpoint associations to protect multiple VPCs with one firewall, those VPCs share that firewall’s capacity in each Availability Zone. In automated internet firewall mode, each VPC’s firewall supports throughput of up to 100 Gbps in each Availability Zone (Service quotas). It also works when VPCs have overlapping CIDR ranges, because their traffic doesn’t meet in a shared inspection network where the addresses would conflict.

The firewall inspects inbound and outbound traffic. For outbound-only connectivity, the firewall first inspects the traffic and then performs NAT, so your rules and logs see each workload’s private IP address. Built-in NAT translates outbound IPv4 connections from resources without a public IP address, and IPv6 traffic isn’t translated. If your destinations accept only allowlisted source addresses, an Amazon VPC IP Address Manager (IPAM) policy lets you choose the NAT addresses that automated internet firewall mode uses (NAT for outbound traffic).

The firewall uses Network Firewall Next Generation firewall policies. You can start from AWSManagedTemplateIGWFirewallBaseline, an AWS managed template that AWS security experts maintain. You can then add AWS managed rule groups and your own rule groups.

Automated internet firewall mode only inspects traffic that crosses the internet gateway. For traffic between VPCs and to on-premises networks over AWS Direct Connect or AWS Site-to-Site VPN, we recommend a transit gateway-attached Network Firewall.

Subnet connectivity options

Before this launch, a public subnet had a direct route to the internet gateway, and its resources used public IP addresses, so they could connect out and accept inbound connections. A private subnet had no direct route, and its resources reached the internet through a NAT gateway. With automated internet firewall mode, a subnet that reaches the internet can route 0.0.0.0/0 directly to the internet gateway, so the route table no longer separates public from private. Instead, each subnet’s connectivity type decides how its resources reach the internet. You set it in the Network Security Manager policy, not on the subnet. Table 1 maps each type to the model you know.

Connectivity type Works like What happens
Flexible (recommended) A public and a private subnet in one A resource with a public IP address, such as an Elastic IP address, gets bidirectional access, as in a public subnet. A resource without one gets outbound-only access through built-in NAT, similar to a private subnet.
Bidirectional A public subnet Resources with a public IP address connect out and accept inbound connections. Resources without one can’t reach the internet.
Outbound-only A private IPv4 subnet behind a NAT gateway, or an IPv6 subnet behind an egress-only internet gateway Unsolicited inbound connections are dropped. Resources without a public IP address connect out through built-in NAT, and resources with one keep their own address.
Excluded A subnet without a firewall Traffic bypasses the firewall and built-in NAT.

The firewall inspects traffic in each type except excluded (Figure 2). Each policy sets one default connectivity type for all subnets in scope. You can override it for specific subnets based on tags or on Amazon Resource Name (ARN). When a subnet matches more than one override, the first one in the list applies.

Figure 2: Flexible, bidirectional, and outbound-only subnets are inspected. Excluded subnets aren’t.

Figure 2: Flexible, bidirectional, and outbound-only subnets are inspected. Excluded subnets aren’t.

Connectivity types also decide which inbound connections reach your resources. The firewall inspects inbound connections to resources with a public IP address in flexible and bidirectional subnets, such as the Network Load Balancer for a non-HTTP service in Figure 3. Figure 3 also shows the outbound path, where instances without a public IP address connect out through the firewall and then built-in NAT. For web applications and APIs, we still recommend AWS WAF on Amazon CloudFront in front of an Application Load Balancer. You can set that load balancer’s subnet to excluded so Network Firewall doesn’t inspect the same request again. Keep in mind that excluded applies in both directions, so any outbound traffic from that subnet also bypasses the firewall.

Figure 3: Inbound and outbound traffic showing inbound, outbound, and excluded connections

Figure 3: Inbound and outbound traffic showing inbound, outbound, and excluded connections

Managing automated internet firewall mode

You manage automated internet firewall mode in AWS Network Security Manager. With AWS Organizations, a central security team deploys policies from the Network Security Manager administrator account to the whole organization, to organizational units (OUs), or to specific accounts. Network Security Manager also supports a single-account model, where it applies policies only to that account’s VPCs. You can start from the Network Firewall console or the Network Security Manager console, but the firewall itself is read-only outside Network Security Manager.

Network Security Manager uses three components (Figure 4):

  • Policy – Combines rules and templates with the connectivity type, enforcement mode, logging, and priority. Rules are the building blocks. A traffic inspection rule decides how the firewall handles traffic, and a firewall configuration rule sets options such as the enforcement mode or logging. A template is an ordered, reusable group of rules, such as AWSManagedTemplateIGWFirewallBaseline, that you can share across policies.
  • Scope – Selects your organization, OUs, accounts, or VPCs.
  • Deployment – Binds a policy to a scope. Network Security Manager then creates and manages a firewall in each VPC in scope.
Figure 4: A deployment binds a policy to a scope, and Network Security Manager creates a firewall in each VPC in scope

Figure 4: A deployment binds a policy to a scope, and Network Security Manager creates a firewall in each VPC in scope

This model matters most when you manage many VPCs. Because Network Security Manager applies the policy at the internet gateway, the firewall is designed so that VPC owners and subnet owners without the proper privileges can’t bypass inspection by changing routes. Subnets set to excluded and Availability Zones where automated internet firewall mode isn’t supported aren’t inspected.

Many organizations want one security baseline everywhere, while some accounts, organizational units, or applications need rules in addition to the baseline. To do this, you create two policies, each deployed to its own scope. The organization policy holds a baseline template, and the Account A policy holds the same baseline template plus Account A’s rules (Figure 5). The template lets you maintain the baseline rules once and reuse them in both policies. Where policies overlap, the policy with the lower priority number applies in full, and the policies don’t merge. In Account A, the Account A policy (priority 100) wins over the organization policy (priority 1000), so it must include the baseline template. Its enforcement mode, logging, and connectivity type also replace the organization policy’s. To learn more, see How AWS Network Security Manager works.

Figure 5: The Account A policy, priority 100, takes priority in Account A. Other accounts get the organization policy, priority 1000.

Figure 5: The Account A policy, priority 100, takes priority in Account A. Other accounts get the organization policy, priority 1000.

Getting started

We recommend starting in monitor mode, especially in VPCs with existing workloads. In monitor mode, the firewall logs what your rules would do but doesn’t drop traffic because of them. After the logs show the results you expect, switch the policy to enforce. In this example, we create a policy in monitor mode in six steps.

  1. Start from the AWS Management Console for Network Firewall. On the Firewalls page, open the Internet firewalls tab and choose Create in AWS Network Security Manager. The Quick create and deploy page opens in the Network Security Manager console. Select Network Firewall automated internet firewall as the firewall type.

    Figure 6: Create a new internet firewall

    Figure 6: Create a new internet firewall

  2. Define protections. Choose Manage templates and add AWSManagedTemplateIGWFirewallBaseline. Under Enforcement mode, select Monitor, and choose destinations for alert logs and flow logs.

    Figure 7: Define protections and set destinations for logs

    Figure 7: Define protections and set destinations for logs

  3. Enter a name for the policy and check its Policy priority. Where policies overlap, the lower number takes priority. The new policy gets a priority that evaluates after your existing policies of the same firewall type, and you can change it later in the policy editor.

    Figure 8: Set the policy details

    Figure 8: Set the policy details

  4. Set the scope. For example, you can set the scope for Accounts and OUs to include the entire organization and the scope for VPCs to include all existing and future VPCs. To learn more about scopes, see How AWS Network Security Manager works.

    Figure 9: Set the scope

    Figure 9: Set the scope

  5. Choose the Subnet connectivity type. For example, select Flex (recommended).

    Figure 10: Choose the subnet connectivity type

    Figure 10: Choose the subnet connectivity type

  6. Review your settings and choose Create and deploy. Cross-account visibility lets Network Security Manager see resources in the accounts in the scope.

    Figure 11: Review and deploy

    Figure 11: Review and deploy

Network Security Manager then creates a firewall at the internet gateway of each VPC in scope. For the full steps, including the organization baseline with account-specific rules, see Getting started with automated internet firewall.

Migrating existing VPCs to automated internet firewall mode

When you deploy automated internet firewall mode to an existing VPC, you might not need to change routes on day one. With the flexible type, the firewall inspects existing resources and keeps the addresses they already use (Figure 12):

  • Instance with an Elastic IP address – The firewall inspects its traffic, and the instance keeps its Elastic IP address.
  • Instance behind a NAT gateway – The firewall inspects the traffic after the NAT gateway translates it and doesn’t translate it again. Your rules and logs see the NAT gateway’s private IP address as the source.
  • Instance with no public IP address in a subnet that routes to the internet gateway – The firewall inspects its traffic, and built-in NAT gives it outbound-only access, which it didn’t have before. To keep resources without a public IP address isolated from the internet, set the subnet’s connectivity type to bidirectional instead. Resources with a public IP address then keep bidirectional connectivity, and resources without one can’t reach the internet.
Figure 12: Day-one source addresses in an existing VPC with Flexible subnets

Figure 12: Day-one source addresses in an existing VPC with Flexible subnets

Later, at your own pace, you can retire each NAT gateway by routing its subnets directly to the internet gateway. Built-in NAT then takes over. The source address changes to one that automated internet firewall mode assigns or one from your IPAM policy pool, so update allow lists that name the NAT gateway’s address first. Your logs then show each workload’s private IP address. If you inspect inbound or outbound internet traffic today with Network Firewall endpoints, automated internet firewall mode can take over that inspection. After you confirm that your new policy covers the same rules, you can remove the endpoints and routes that you use for internet traffic. For each architecture, see Working with existing architectures.

Availability and pricing

Automated internet firewall mode (Preview) is available in all AWS commercial Regions. For pricing, see AWS Network Firewall pricing. During the preview, some features and instance types aren’t supported. For the list, see Automated internet firewall. Features, service quotas, and console labels can change during the preview. Your use of the preview is subject to the Betas and Previews section of the AWS Service Terms.

Conclusion

In this post, we showed you how automated internet firewall mode applies Network Firewall inspection and built-in NAT at the internet gateway of your VPCs. You define and control policies centrally in Network Security Manager. It is designed so that VPC owners without the proper privileges can’t route around it, and your policy applies to new VPCs in scope when teams create them. To learn more, see Automated internet firewall in the Network Firewall Developer Guide.

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


Lawton Pittenger

Lawton Pittenger

Lawton is a Worldwide Security Specialist Solutions Architect at AWS, based in New York City. He helps customers design and implement effective network security controls, and works with AWS service teams to improve security services based on customer feedback. Outside of work, he enjoys skateboarding, snowboarding, and spending time in nature.

Akshay Choudhry

Akshay Choudhry

Akshay is a Principal Product Manager in the Networking and Security Services Team at Amazon Web Services. He’s focused on making virtual private clouds more intuitive and secure for the millions of customers running their workloads on AWS. In his free time, he enjoys exploring the outdoors, trying out new restaurants, and spending time with friends and family.

AWS completed its second ISO/IEC 42001:2023 surveillance audit

Post Syndicated from Basit Janjua original https://aws.amazon.com/blogs/security/aws-completed-its-second-iso-iec-420012023-surveillance-audit/

In November 2024, Amazon Web Services (AWS) was the first major cloud service provider to announce the ISO/IEC 42001 accredited certification for AI services, covering Amazon Bedrock, Amazon Q Business, Amazon Textract, and Amazon Transcribe.

In November 2026, AWS successfully completed its second surveillance audit for ISO 42001:2023, Artificial Intelligence Management System (AIMS), with no findings and added AWS DevOps Agent as a new service now covered under its ISO 42001:2023 certification program.

This demonstrates the continuous commitment by AWS to responsible AI practices. With this independent validation, our customers can gain assurances on our commitment to responsible AI that enables customers to build and operate AI applications responsibly using AWS services.

For a full list of AWS services that are certified under ISO and CSA STAR, see the AWS ISO and CSA STAR Certified page. Customers can also access the certifications through the AWS Management Console for AWS Artifact.

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


Basit Janjua

Basit Janjua

Basit is a Senior Security Industry Specialist at AWS. He leads the AWS assurance delivery strategy for security assurance audits and engagements across the globe. Basit has nearly 20 years of experience in information security engineering and assurance. He holds a Bachelor’s degree in Computer Science and a Master’s degree in Telecommunications, along with professional certifications including CISSP and CCSP.

Shalini Mishra

Shalini Mishra

Shalini is a Compliance Program Manager at AWS. She has over 5 years of experience leading end-to-end compliance programs across ISO, SOC, and cloud security frameworks, with deep expertise in third-party risk management and enterprise governance, driving measurable improvements in security posture and audit readiness. Shalini holds a Master of Science degree in Information Systems, CRISC and ISO 27001 lead auditor certification.

AWS achieves Spain’s national Limited Distribution (Difusión Limitada) and NATO Restricted accreditation in the AWS Europe (Spain) Region

Post Syndicated from Borja Larrumbide original https://aws.amazon.com/blogs/security/aws-achieves-spains-national-limited-distribution-difusion-limitada-and-nato-restricted-accreditation-in-the-aws-europe-spain-region/

Spanish version »

Amazon Web Services (AWS) is pleased to announce that AWS has achieved Spain’s national Limited Distribution (“Difusión Limitada”) and NATO Restricted accreditation for the AWS Europe (Spain) Region. The Difusión Limitada and NATO Restricted accreditation was granted by the Spanish Delegated Authority for the Security of Classified Information, the Secretary of State Director of Spain’s Centro Nacional de Inteligencia (CNI). The Centro Criptológico Nacional (CCN) and the Oficina Nacional de Seguridad (ONS) are working bodies of the CNI, which audited AWS against the CCN-STIC-004 policy and the applicable ONS requirements.

With this milestone, AWS becomes the first cloud provider to be accredited under NATO Restricted level, and the first to be accredited for Difusión Limitada in the AWS Europe (Spain) Region. In Spain, this was a double achievement: AWS first met the national Difusión Limitada requirements and then, in addition to this national methodology, achieved the NATO Restricted accreditation by incorporating the requirements of NATO Directive 32. This demonstrates our continued commitment to helping the public sector, defense, and NATO-affiliated customers run sensitive workloads in the cloud while meeting the highest applicable national and international security requirements.

What this covers

The Difusión Limitada and NATO Restricted accreditation by the CNI confirms that the AWS system in the AWS Europe (Spain) Region meets the procedural and security requirements for handling classified information up to the Difusión Limitada and NATO Restricted level.

What is Spain’s classified information framework?

Spain’s framework for protecting national classified information is administered by the ONS and the CCN, under the CNI. In 2026, Spain established the framework that enables handling of Difusión Limitada information in the commercial public cloud, under which this accreditation was granted. The accreditation builds on the AWS ENS High certification and the CCN’s IT Product and Service Catalogue (CPSTIC) qualifications. The scope of the accreditation covers the CPSTIC-qualified services and all AWS services certified under ENS High (see the list of AWS services in scope for ENS High). Only the services within this scope that are qualified or certified under the CCN framework (CPSTIC and ENS High) and run in the AWS Europe (Spain) Region can be used for Difusión Limitada and NATO Restricted workloads.

What is NATO Restricted?

NATO Directive 32 establishes the security requirements for handling NATO Restricted information in public cloud, and is the directive referenced by Spain’s CCN-STIC-004 policy.

Why this matters to customers

Public sector and defense organizations in Spain can use the AWS Europe (Spain) Region for national Difusión Limitada classified workloads and for NATO Restricted workloads. Under the shared responsibility model, customers that want to process classified information in the AWS Europe (Spain) Region engage the CCN and ONS to accredit their own systems, building on the AWS accreditation.

How to get started

National security and defense customers may build on the AWS Trusted Secure Enclave, Sensitive Edition (TSE-SE) to design a cloud architecture for their sensitive workloads. Accreditation documentation is available to eligible customers through AWS Artifact. Customers can also work with their AWS account teams to understand how the Difusión Limitada and NATO Restricted accreditation, and TSE-SE apply to their use cases.

To learn more about AWS compliance in Spain, see the AWS ENS compliance page and the AWS Compliance Programs page.

For more details see AWS NATO Restricted and Difusión Limitada for AWS Europe (Spain) Region web page
 


Spanish version

AWS obtiene la acreditación Difusión Limitada y NATO Restricted en la Región AWS Europa (España)

Amazon Web Services (AWS) se complace en anunciar que ha obtenido la acreditación nacional de España “Difusión Limitada” y la acreditación NATO Restricted para la Región AWS Europa (España). La acreditación Difusión Limitada y NATO Restricted ha sido concedida por la Autoridad Delegada para la Seguridad de la Información Clasificada de España, la Secretaria de Estado Directora del Centro Nacional de Inteligencia (CNI). El Centro Criptológico Nacional (CCN), y la Oficina Nacional de Seguridad (ONS), son órganos de trabajo del CNI, que auditaron a AWS conforme a la política CCN-STIC-004 y a los requisitos aplicables de la ONS.

Con este hito, AWS se convierte en el primer proveedor cloud acreditado en el nivel NATO Restricted, y en el primero acreditado para Difusión Limitada en la Región AWS Europa (España). En España ha sido un doble logro: AWS cumplió primero los requisitos nacionales de Difusión Limitada y, sobre esta metodología nacional, obtuvo la acreditación NATO Restricted incorporando los requisitos de la Directiva 32 de la OTAN. Esto demuestra nuestro compromiso continuo de ayudar al sector público, a la defensa y a los clientes vinculados a la OTAN a ejecutar cargas de trabajo sensibles en la nube cumpliendo los requisitos de seguridad nacionales e internacionales más exigentes aplicables.

Qué abarca

La acreditación Difusión Limitada y NATO Restricted del CNI confirma que el sistema de AWS en la Región AWS Europa (España) cumple los requisitos procedimentales y de seguridad para tratar información clasificada hasta el nivel Difusión Limitada y NATO Restricted.

¿Cuál es el marco español de información clasificada?

El marco español de protección de la información clasificada nacional lo administran la ONS y el CCN, bajo el CNI. En 2026, España estableció el marco que permite tratar información Difusión Limitada en la nube pública comercial, en virtud del cual se ha concedido esta acreditación. La acreditación se basa en la certificación ENS categoría Alta de AWS y en las cualificaciones del Catálogo de Productos y Servicios de Seguridad TIC (CPSTIC) del CCN. El alcance de la acreditación incluye los servicios cualificados en CPSTIC y todos los servicios de AWS certificados en el ENS categoría Alta (consulte la lista de servicios de AWS en el alcance del ENS categoría Alta). Solo pueden utilizarse para cargas de trabajo Difusión Limitada y NATO Restricted los servicios de este alcance cualificados o certificados en el marco del CCN (CPSTIC y ENS categoría Alta) que se ejecuten en la Región AWS Europa (España).

¿Qué es NATO Restricted?

La Directiva 32 de la OTAN establece los requisitos de seguridad para tratar información NATO Restricted en la nube pública, y es la directiva a la que hace referencia la política española CCN-STIC-004.

Por qué es importante para los clientes

Las organizaciones del sector público y de defensa en España pueden utilizar la Región AWS Europa (España) para cargas de trabajo clasificadas nacionales Difusión Limitada, así como para cargas de trabajo NATO Restricted. Conforme al modelo de responsabilidad compartida, los clientes que quieran tratar información clasificada en la Región AWS Europa (España) deben dirigirse al CCN y a la ONS para acreditar sus propios sistemas, apoyándose en la acreditación de AWS.

Cómo empezar

Los clientes de seguridad nacional y defensa pueden apoyarse en AWS Trusted Secure Enclave, Sensitive Edition (TSE-SE) para diseñar una arquitectura cloud para sus cargas de trabajo sensibles. La documentación de la acreditación está disponible para los clientes elegibles a través de AWS Artifact. Los clientes también pueden trabajar con sus equipos de cuenta de AWS para entender cómo se aplican a sus casos de uso la acreditación Difusión Limitada y NATO Restricted y TSE-SE.

Para más información sobre el cumplimiento de AWS en España, consulte la página de cumplimiento ENS de AWS y la página de Programas de cumplimiento de AWS.

Para más detalles, consulte la página web de AWS sobre NATO Restricted y Difusión Limitada para la Región AWS Europa (España)

If you have feedback about this post, submit comments in the Comments section below. If you have questions about this post, contact AWS Support.


Borja Larrumbide

Borja Larrumbide

Borja is a Security Assurance Manager for AWS in Iberia. He has a bachelor’s degree in computer science from Boston University (USA) and has worked in companies such as Microsoft and BBVA in different roles and sectors. Borja is a seasoned security assurance practitioner with many years of experience engaging key stakeholders at national and international levels. His areas of interest include security, privacy, risk management, and compliance.

AWS Weekly Roundup: Local Zone in Bogotá, 30-minute Lambda timeout, and more (November 24, 2026)

Post Syndicated from Daniel Abib original https://aws.amazon.com/blogs/aws/aws-weekly-roundup-local-zone-in-bogota-30-minute-lambda-timeout-and-more-november-24-2026/

Some limits shape architecture more than any feature does. AWS Lambda launched in 2014 with a 60-second timeout, moved to 5 minutes in 2015 and to 15 minutes in 2018, and then stayed there for eight years. Last week the limit doubled, and in the same week Lambda learned to run on GPUs and gave platform teams their own runtimes. That is a lot of Lambda for one week.

Two other threads ran through the week. A new AWS Local Zone in Bogotá brought AWS infrastructure closer to users in Colombia. And AWS Security Token Service (AWS STS), Amazon Cognito, and Amazon CloudFront each shipped a piece of identity for agents: who an agent is when it shows up at your door, and how little it should be allowed to do. Now, let’s get into this week’s AWS news…

Headlines
AWS Local Zone in Bogotá, Colombia – AWS opened a new Local Zone in Bogotá, so you can now run applications that need single-digit millisecond latency closer to users in Colombia. AWS Local Zones place compute, storage, and networking near large metropolitan areas with the same APIs and tools as a Region, for workloads like real-time gaming, live streaming, and financial transactions. The Bogotá Local Zone supports Amazon EC2 C7i, M7i, and R7i instances, Amazon EBS gp3, gp2, and io1 volumes with local snapshots, Amazon S3 One Zone-Infrequent Access, Amazon ECS, Amazon EKS, AWS Direct Connect, and Application Load Balancer. To start, enable us-east-1-bog-1a in AWS Global View.

AWS Lambda now supports a 30-minute timeout for on-demand Event Functions – You can now configure any Event Function with a timeout of up to 30 minutes (1,800 seconds), double the previous limit, for synchronous, asynchronous, and event source mapping invocations. On Lambda Managed Instances, synchronous invocations also go to 30 minutes, while asynchronous and event source mapping invocations keep the 90-minute timeout from September. Standard Lambda pricing applies, in all commercial Regions. Agentic requests that chain model and tool calls, media transcoding, and file conversion are the workloads AWS calls out. Before raising the value, read the considerations in the Compute blog post: a service that invokes your function synchronously applies its own timeout, client read and socket timeouts need to be longer, and a NAT gateway drops idle connections after 350 seconds, so long calls need keep-alives. For longer work, durable functions still run for up to a year, and now emit OpenTelemetry traces.

AWS Lambda now supports GPU instances for Event Functions on Lambda Managed Instances – You can now run GPU-accelerated inference, media processing, rendering, and scientific computing as Lambda functions, packaged as OCI container images, with no GPU drivers, CUDA versions, or AMIs to reconcile. In the walkthrough, four concurrent requests shared one copy of the model on a single GPU and finished in about the same time as one. It’s optimized for inference with custom models, on G-series instances from G4dn to G6e. You pay the EC2 instance fee (Savings Plans and Reserved Instances apply), a 9.75% management fee for GPU instances, and $0.20 per million requests.

Last week’s launches
Here are some launches and updates from this past week that caught my attention:

Amazon Polly now supports voice cloning – You can now create a custom voice in Amazon Polly from a few minutes of recordings of a consenting speaker, running on the Polly generative engine. It launches in seven languages, including English, Spanish, and Portuguese, and each cloned voice speaks the language it was recorded in. Polly doesn’t keep the recordings or train on them. Creating a voice is free, and you pay for the speech you synthesize. It’s a gated release, so request access through your account team. The ML blog post covers brand-voice use cases for contact centers, voice agents, and content.

AWS Lambda now supports customer-managed runtimes – You can now manage a Lambda runtime as its own resource, separate from function deployment. Platform teams package approved SDKs, certificates, and security or monitoring agents as an OCI image in Amazon ECR, and functions pick up updates as Lambda recycles execution environments, with no per-function redeploys. Updates can be staged, with health metrics and rollback. There’s no additional charge, and the Compute blog walkthrough shows the platform-team workflow.

AWS STS announces GetScopedCredentials to scope down permissions at runtime – You can now take the temporary credentials a workload already holds and derive narrower ones, cutting permissions, session duration, or both. The result keeps the caller’s original identity, and permissions only ever narrow, so a sub-agent can never end up with more access than whoever created it. Access to the API is controlled with IAM policies, and every call lands in AWS CloudTrail. It’s available in all commercial Regions and beyond, including GovCloud (US) and China.

Amazon Cognito now supports dynamic client registration – You can now let MCP clients and AI agents register themselves at runtime (RFC 7591) instead of creating an app client in advance for each one. You choose between requiring an access token with a registration scope or opening registration to any client, and dynamically registered clients carry a client ID prefix so you can filter and manage them with the rest. It’s available on the Essentials and Plus plans, and client ID metadata documents arrived the same week.

Amazon CloudFront Functions now supports network calls – You can now call your own APIs from a function with cf.fetch() and act on the response, so authorization, personalization, or fraud checks that used to need Lambda@Edge or a trip to the origin can run at the edge. AWS’s own example: check an AI agent’s permissions and usage budget before the request reaches your API or MCP server. Network calls cost $0.10 per million on top of invocation charges and are included in the Pro flat-rate plan and above. The Networking blog post also covers cf.beacon() for background analytics.

Amazon Aurora DSQL now supports multi-Region peering across continents – You can now build a multi-Region Amazon Aurora DSQL cluster with peers on different continents, such as US East (N. Virginia) and Europe (Ireland), and read and write to one strongly consistent database from both. It was a busy week for DSQL: PL/pgSQL functions and procedures arrived, and storage upgrades brought up to 50% higher write throughput at no additional cost.

For a full list of AWS announcements, be sure to keep an eye on the What’s New with AWS page.

Other AWS news
Here are some additional posts and resources that you might find interesting:

How the BMW Group governs hundreds of agents across thousands of developers – With more than 12,500 developers in R&D, BMW treats governance as deterministic code outside the agent’s reasoning loop, mostly in the CI/CD pipeline, so neither the agent nor its prompts can override it.

AI coding agents on Amazon EC2 Mac: How Cognition scales Devin for macOS – Cognition starts a fresh macOS VM for each Devin session in under a minute on Amazon EC2 Mac hosts across six Regions. The detail worth stealing: sessions are decoupled from hosts, and Cognition reports that about 90% release their VM when idle and resume from a snapshot in seconds.

How Klaviyo processes 3 billion daily events at scale with Amazon MSK Express – Timely reading for Black Friday week. Klaviyo moved from RabbitMQ to Amazon MSK Express brokers to absorb roughly 7 times normal event volume during Black Friday and Cyber Monday. Running one set of processors across three priority topics, instead of separate infrastructure per level, cut costs by roughly 30%, according to the team.

Upcoming AWS events
Check your calendar and sign up for upcoming AWS events:

AWS re:Invent – It’s next week: join the community in Las Vegas from November 30 to December 4, or register for the free livestream to follow the keynotes and selected sessions remotely.

AWS Community Days – Find community-led technical talks, workshops, and hands-on learning near you. Check each organizer’s page for current dates and registration details.

Join the AWS Builder Center to connect with builders, share solutions, and access content that supports your development. Browse here for upcoming AWS-led in-person and virtual events and developer-focused events.

That’s all for this week. Check back next Monday for another Weekly Roundup!

– Daniel Abib

This post is part of our Weekly Roundup series. Check back each week for a quick roundup of interesting news and announcements from AWS!

Introducing AWS WAF simplified pricing

Post Syndicated from Fenil Patel original https://aws.amazon.com/blogs/security/introducing-aws-waf-simplified-pricing/

Starting today, AWS WAF pricing is easier to predict. Your bill is now based on three dimensions: the resources you protect, the traffic AWS WAF inspects, and the level of protection you apply to that traffic.

Existing AWS WAF customers move to the new pricing on February 1, 2027. Until then, you keep your current pricing, and you don’t need to do anything at launch. This post explains what’s changing, how to estimate your costs under the new model, and where to find full pricing details and examples on the AWS WAF pricing page.

For new or smaller workloads, the Free plan of CloudFront flat-rate pricing plans is another way to start. If your application serves fewer than 1 million requests per month, the Free plan costs $0 per month for each CloudFront distribution. It includes AWS WAF protection against common web threats, DDoS protection, and the CloudFront CDN, with no overage charges.

Why the pricing is changing

Under the previous model, adding a protection often meant adding a charge, so every security decision was also a billing decision. The new pricing separates those two questions and makes the trade off between cost and security posture easy to see. Turning on a rule, the Bot Control common protection, or the Anti-DDoS rule group doesn’t add a subscription or a separate per-request charge. Those requests bill at the base request rate.

Capacity also stops affecting your rate. Each protection pack (web ACL) now includes up to 2,500 web ACL capacity units (WCUs), up from 1,500, and going past your included capacity no longer raises what you pay per request. The premium request fee applies only to the traffic you choose to send through advanced protections.

You can estimate costs before writing a single rule, and those estimates hold even as your rules change. Security rules change often. A new CVE or a shift in bot behavior can require a configuration update the same day. Adding, reordering, or removing rules doesn’t change your rate.

What this means for existing customers

If you already use AWS WAF, your account stays on current pricing until February 1, 2027. If you hold an AWS WAF private pricing agreement, it stays in force until it expires.

You don’t have to work out the math yourself. The AWS WAF pricing page includes worked examples that show how the three fees add up for common workloads. If you have questions about how the new pricing applies to your account, contact your AWS account team or open a Support case.

For AWS Shield Advanced subscribers, nothing changes. Your Shield Advanced subscription, its price, and your included AWS WAF entitlement stay the same. AWS WAF remains included up to 1,500 WCU per protection pack (web ACL), the resources Shield Advanced protects stay unmetered, and AWS WAF base requests remain free up to 50 billion per calendar month.

Customers on a CloudFront flat-rate pricing plan also see no change. AWS WAF stays included in your plan, and your plan’s included requests stay the same.

How the new pricing works

AWS WAF bills three fees. The resource fee is an hourly charge for each resource associated with a protection pack (web ACL). It covers resources that AWS WAF can protect, such as Amazon CloudFront distributions, Application Load Balancers, and Amazon API Gateway APIs. The base request fee applies to each request AWS WAF inspects. The premium request fee applies on top of the base request fee, to the requests that advanced protections evaluate, such as Bot Control targeted protections, Fraud Control, API Security, and AI Security. AWS WAF also launches two new managed rule groups today, API Security and AI Security. Both use the same premium request fee, with no separate subscription or rate. For the current list of advanced protections, see the AWS WAF Developer Guide.

Fee What it’s charged for Rate
Resource fee Each resource associated with a protection pack (web ACL), prorated hourly $0.01 per hour (about $7.30 per month)
Base request fee Each request that AWS WAF inspects $0.60 per million requests
Premium request fee Requests evaluated by advanced protections, in addition to the base request fee $5.00 per million requests

Requests evaluated by one or more advanced protections are billed $5.60 per million: the $0.60 base request fee plus the $5.00 premium request fee. AWS WAF charges the premium request fee once per request, however many advanced protections evaluate it. A request that Bot Control targeted protections, API Security, and AI Security evaluate is still billed $5.60 per million. A request that an earlier rule blocks before it reaches an advanced protection pays only the base request fee. For instance, a request blocked by a custom rule before it reaches Bot Control pays $0.60 per million, not $5.60.

Figure 1 shows where each previous charge lands under the new pricing model. AWS WAF also inspects request bodies up to the maximum size that each associated resource type supports, at no extra charge. For the current limits by resource type, see Considerations for managing body inspection in AWS WAF.

Figure 1: Mapping of previous AWS WAF pricing components to the new three-dimension model

Figure 1: Mapping of previous AWS WAF pricing components to the new three-dimension model

See your traffic with the Security analytics dashboard

The new pricing also includes the Security analytics dashboard. The dashboard shows full traffic metrics for your protected applications over a rolling 21 day window. You can use it to see the requests your protection packs (web ACLs) inspect and how your rules act on them, which helps you tune the protections and understand what drives your request fees. The dashboard is included at no additional cost.

Estimating your bill

Figure 2 shows how the three dimensions add up for three example workloads.

Example 1: One protected resource. One Application Load Balancer serving 20 million requests per month.

  • Resource fee: 1 resource × $0.01 per hour × 730 hours = $7.30
  • Base request fee: 20 million × $0.60 per million = $12.00
  • Total: $19.30 per month

Example 2: A larger footprint. 40 resources serving 150 million requests per month.

  • Resource fee: 40 × $7.30 = $292.00
  • Base request fee: 150 million × $0.60 per million = $90.00
  • Total: $382.00 per month. At this size, the resource fee is the larger share.

Example 3: Advanced protections. 5 resources, 300 million requests, 30 million of them evaluated by advanced protections.

  • Resource fee: 5 × $7.30 = $36.50
  • Base request fee: 300 million × $0.60 per million = $180.00
  • Premium request fee: 30 million × $5.00 per million = $150.00
  • Total: $366.50 per month

 

Figure 2: How the three dimensions add up for three example workloads

Figure 2: How the three dimensions add up for three example workloads

To estimate your own bill, start with how many resources each protection pack (web ACL) is associated with, since that drives the resource fee. For request volumes, AWS WAF publishes Amazon CloudWatch metrics for each protection pack (web ACL) and each protected resource, including the requests your advanced protections evaluate. The Security analytics dashboard gives you the same traffic view without building your own reports.

A few architectural choices can also help. Where it fits your architecture, protecting traffic at Amazon CloudFront can cost less than protecting many downstream resources one by one. If you serve many customer domains, Amazon CloudFront SaaS Manager lets you manage them as tenants of one multi-tenant distribution, so you can apply one protection pack across them. Scope-down statements send advanced protections only the traffic that warrants them, such as login or checkout paths.

Availability and getting started

The new AWS WAF pricing is available starting today. To get started, open the AWS WAF console, review your protection packs (web ACLs) and their resource associations, and review the examples on the AWS WAF pricing page.

Frequently asked questions

Does AWS WAF charge for requests it blocks? Yes. AWS WAF bills each request it inspects, including the requests it blocks. The protected resource bills those requests as usual, except Amazon CloudFront, which doesn’t charge for requests that AWS WAF blocks (learn more).

If a request passes through two protection packs (web ACLs), is it billed twice? Yes. For example, if a request passes a protection pack (web ACL) on a CloudFront distribution and another on the Application Load Balancer behind it, each protection pack (web ACL) bills it.

Does the Security analytics dashboard cost extra? No. The dashboard is included with AWS WAF at no additional cost.

Does pricing change for AWS Marketplace managed rule groups or AWS Shield Advanced? No. Pricing for AWS Marketplace managed rule groups and AWS Shield Advanced stays the same, and resources protected by Shield Advanced stay on their current pricing.

Is there a free tier? AWS WAF does not have a standalone free tier. If you serve your application through CloudFront and it handles fewer than 1 million requests per month, the CloudFront flat-rate Free plan includes AWS WAF at $0 per month. For plan details, see CloudFront flat-rate pricing plans.

What if my application needs more than 2,500 WCU? Open an AWS Support case to request a capacity increase.

Conclusion

The new AWS WAF pricing makes cost easier to plan around, so it does not become a blocker to security best practices. Your bill follows three things you can measure: the resources you protect, the requests AWS WAF inspects, and the requests that advanced protections evaluate. Adding, changing, or reordering rules doesn’t change your rate, and turning on Bot Control common protections or the Anti-DDoS rule group doesn’t add a subscription. The Security analytics dashboard gives you 21 days of traffic visibility at no additional cost.

To see what the change means for you, review the examples on the AWS WAF pricing page, or model a new workload in the AWS Pricing Calculator.

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


Fenil Patel

Fenil Patel

Fenil Patel is a Solutions Architect on the AWS Edge Services team. He helps customers build fast, secure, and resilient applications using Amazon CloudFront, AWS WAF, AWS Shield, and AWS Global Accelerator. He specializes in web acceleration, perimeter security, and CDN migrations.

Eitav Arditti

Eitav Arditti

Eitav is a Senior Solutions Architect at AWS and a technology leader with over 15 years of experience in the tech industry. He specializes in edge computing, serverless, and platform engineering, and works with engineering teams to design secure, globally scalable architectures on CloudFront and AWS WAF. His current focus is on internet-scale systems—from global content delivery to edge security.

Alok Rana

Alok Rana

Alok is a Finance Business Partner at AWS, supporting the Perimeter Protection portfolio, including AWS WAF and AWS Shield. He brings experience in strategic finance, product pricing, deal strategy, and P&L management, plus Transaction Services work at EY and PwC. He partners with Sales, Product, and Engineering teams to drive growth, shape pricing strategy, and support strategic customer engagements.

Introducing API and AI security on AWS, from discovery to protection

Post Syndicated from Gopinath Durairaj original https://aws.amazon.com/blogs/security/introducing-api-and-ai-security-on-aws-from-discovery-to-protection/

APIs have run digital businesses for more than a decade. For a while, there seemed to be nothing new left to say about them. That changed in 2026, when AI endpoints joined them. Teams now run large language model (LLM) inference endpoints, Model Context Protocol (MCP) servers, and Agent2Agent (A2A) servers beside their REST APIs, on services such as Amazon Bedrock, Amazon Bedrock AgentCore, and Amazon Elastic Kubernetes Service (Amazon EKS), and more companies sell their API as the product itself. On the other end, AI agents read API descriptions, pick the tools they need, and chain calls with no person clicking through an app.

APIs have always had two kinds of callers: other services and people who use an app. Now there’s a third: AI agents that act on a person’s behalf. It feels like everyone has a personal AI agent that can call APIs for them. Who knew curl would be important again?

Today, we’re launching capabilities across AWS WAF, Amazon CloudFront, Application Load Balancer, and Amazon API Gateway that help you discover and protect the APIs and AI endpoints that services, apps, and AI agents call:

  • API Portal, a new feature in Amazon API Gateway, discovers your APIs and AI endpoints.
  • API Security, a new managed rule group in AWS WAF, protects your APIs.
  • AI Security, a new managed rule group in AWS WAF, protects your AI endpoints.

All three are generally available today. You can enable discovery in API Portal for one account or for your organization in AWS Organizations. The two rule groups protect the resources that you associate with your protection pack (web ACL). They work together: API Portal shows which discovered endpoints AWS WAF protects, and the security events that AWS WAF detects appear on each managed API’s detail page.

Same APIs, new callers, new attack surface

Your APIs are the same APIs they always were. What changed is how you expose them, who calls them, and what threatens them.

How you expose them.

A new MCP server or LLM endpoint takes minutes to stand up. It can be placed behind a load balancer or a CloudFront distribution without ever passing through your API gateway, so it’s missing from the API registry and the security review. An agent that can reach it doesn’t need your documentation, either, because the endpoint describes itself: an MCP client asks the server for its tools with tools/list, and an A2A client reads the agent card that the server publishes.

Who calls them.

The following table compares the three kinds of callers that reach your APIs today.

Caller

What normal looks like

What abuse looks like

What it means for protection

Service to service

Predictable, authenticated calls that repeat the same pattern

A stolen API key, or a partner that scrapes beyond its contract

Track rate and behavior for each API key and endpoint

Person to service, through an app

Sessions and UI-driven calls at a human pace

Account takeover and scripted checkouts

Browser-based signals, such as CAPTCHA and browser fingerprints, apply here

AI agent to service, for a person

Human intent with machine behavior, from an HTTP client or an automated browser

An agent with stolen credentials, or a bot that poses as an agent

Browser signals only go so far, so you need visibility into the API itself

What threatens them. The APIs behind your web and mobile apps were built for one client: your own app. Your app calls them in the right order, at a human pace, with input it already validated. Legitimate agents now call those same APIs directly, and so do attackers and fraudsters. None of them have to follow the rules that your app follows.

What we’re launching

Here’s how we respond to those changes, as shown in Figure 1. In the figure, services, people, and AI agents call your APIs through their entry points. There, API Portal maps your endpoints, and AWS WAF runs API Security and AI Security on the same traffic to stop threats.

Figure 1: API Portal inventories the APIs and AI endpoints that services, people, and AI agents call. AWS WAF protects the entry points in front of them

Figure 1: API Portal inventories the APIs and AI endpoints that services, people, and AI agents call. AWS WAF protects the entry points in front of them

  • API Portal builds an inventory of your APIs from their configuration and live traffic, identifies which of them are AI endpoints (LLM inference, MCP, and A2A), and shows you what to protect. It does this by analyzing configuration and traffic across your API entry points: CloudFront, Application Load Balancer, and API Gateway.
  • API Security covers three kinds of API abuse: broken object level authorization, authentication attacks such as tampered tokens and credential stuffing, and reconnaissance such as probing for undocumented routes. It does this with rules that work from a single request and with behavioral detections that learn your traffic.
  • AI Security identifies your AI traffic (LLM inference, MCP, and A2A), validates MCP and A2A requests against their protocol, and checks prompts and responses through Amazon Bedrock Guardrails for prompt attacks, harmful content, and sensitive information.

All three work with Amazon CloudFront, Amazon API Gateway REST APIs, and Application Load Balancer. For the current list of supported resources, protocols, and endpoint types, see AWS WAF API Security and AWS WAF AI Security rule group in the AWS WAF Developer Guide.

The three capabilities live in two places. API Portal is in the Amazon API Gateway console. That’s where it can be found, not what it covers: it discovers APIs behind CloudFront, Application Load Balancer, and API Gateway alike. API Security and AI Security are in the AWS WAF console.

Discover: You can’t secure an invisible API

Ask a platform team how many APIs they run, and you’ll get a number from a registry. Ask what’s answering requests on the internet right now, and the number changes. The MCP server that a team set up for a hackathon isn’t in the registry. Neither is the v1 endpoint that nobody turned off. Both still answer requests.

API Portal builds the inventory from both live traffic and API configuration. You enable discovery in API Portal for one account or for your organization in AWS Organizations, and you can exclude resources that you don’t want in the inventory. It reads the service logs and configuration records of your API entry points. There’s nothing to attach, no logs to forward, and no traffic to reroute. It lists the endpoints that receive traffic, by host, path, and HTTP method. Every endpoint starts as a shadow API: deployed and reachable, but not yet governed. When you promote it, it becomes a managed API. For APIs you manage, API Portal also flags zombie APIs, which have no traffic and no configuration change for a set period, and orphaned APIs, whose owning account was closed or removed from your organization. Retire a zombie API that nothing needs, and resolve the ownership of an orphaned one. For the classification rules, see the API Portal Developer Guide.

API Portal also discovers your AI endpoints. It reports each endpoint’s type, such as an LLM inference endpoint, an MCP server, or an A2A server. It finds them in the traffic at the same entry points (CloudFront, Application Load Balancer, and API Gateway) and lists them in the same inventory as your other APIs, so you don’t build a separate view for them. Combined, one row can show a shadow MCP server that nobody manages yet. Figure 2 shows the inventory.

Figure 2: The API inventory in API Portal lists the endpoints discovered behind API Gateway and Application Load Balancer, with each endpoint's AWS WAF status, classification, and AI workload type

Figure 2: The API inventory in API Portal lists the endpoints discovered behind API Gateway and Application Load Balancer, with each endpoint’s AWS WAF status, classification, and AI workload type

“We can manage our API environment more effectively when we have a clear picture of what’s running across AWS. API Portal gives us that visibility without requiring teams to change how they deploy APIs or route traffic, helping us create a more complete view across the enterprise.”
— Mike Hasani, Senior Software Engineer, Principal Financial Group

Some abuse shows in one request. Some appears only over time.

Two requests show why protecting an API takes two kinds of detection. Here’s the first one:

GET /v1/orders/48213 HTTP/1.1
Host: orders.example.com
Authorization: Bearer eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiJhZG1pbiIsInJvbGUiOiJhZG1pbiJ9.

This JSON Web Token (JWT) declares alg: none. It asks your API to skip signature verification, and a correctly built client doesn’t send that. The API Security managed rule group blocks the request before it reaches your origin, from the first request and with no learning period. The same rules catch other token tampering, such as pointing the token at a signing key that the attacker controls. These rules check the structure of a token in the Authorization header. They don’t verify its signature, so your application still has to validate the token. For the full list of rules and what each one does by default, see API Security managed rule group in the AWS WAF Developer Guide.

Here’s the second one:

GET /accounts/1337 HTTP/1.1

Nothing is wrong with this request, and the caller’s token is valid. It’s abuse only if the caller doesn’t own account 1337, and no single request can tell you that. This is broken object level authorization (BOLA), the first entry in the OWASP API Security Top 10.

So, the managed rule group also learns. It builds a baseline from your own traffic and looks for callers who don’t fit it. There’s nothing to set up for this. You don’t turn on logging or mirror traffic.

The hard part is to avoid flagging your own scripts. For example, a nightly export job reads thousands of records on a steady machine schedule. On those two signs alone, it looks like an attacker. So a detection reaches high confidence only when different kinds of signs agree, and at least one is something your own traffic never does. For example, the caller reaches records through a sequence of calls that your app never makes, or your API keeps denying it access. High confidence also needs a caller that AWS WAF can identify from a credential on the request, such as a token. A caller that AWS WAF knows only by IP address stays at medium confidence. Figure 3 compares a nightly export job with an attacker on these signs.

Figure 3: Volume and timing alone don't reach high confidence. A sign that your own traffic never shows has to agree with them

Figure 3: Volume and timing alone don’t reach high confidence. A sign that your own traffic never shows has to agree with them

The behavioral detections cover more than object access. They also flag credential stuffing, where one source presents an unusual number of different credentials in the Authorization header, and probing, where a caller keeps requesting routes or parameters that your traffic never uses.

The same thinking applies to the response, what your APIs send back. The behavioral detections take account of the status codes that your application returns, such as a caller’s rate of denied or failed requests. A caller stands out when, for example, its successful calls turn into a run of authorization failures. API Security doesn’t inspect the content of responses. Figure 4 shows the APIs view of the protection pack (web ACL) dashboard in the AWS WAF console.

Figure 4: The APIs view of the protection pack (web ACL) dashboard shows API Security detections over time, the detections that matched the most requests, and how AWS WAF handled the labeled requests.

Figure 4: The APIs view of the protection pack (web ACL) dashboard shows API Security detections over time, the detections that matched the most requests, and how AWS WAF handled the labeled requests.

Every detection is a label under awswaf:managed:aws:api-security:. A label starts with a stage (attack, recon, or warning) and names the finding. Behavioral detections also end with a confidence (high, medium, or low). Each rule has its own default action. The single-request rules that identify token tampering and unsafe methods block, and the posture and schema discovery rules count. Behavioral detections block at high confidence and count at medium and low confidence, at either stage. Detections that work from a single request have no confidence. For example, attack:alg_none:jwt_header and attack:object_level:high block, and recon:path_schema counts. AWS WAF also repeats a caller’s finding as an actor_identity label on that caller’s later requests across the whole protection pack (web ACL), for about five minutes after the last detection. At high confidence, the rule group blocks those requests by default. At medium and low confidence it counts them, and your own rules can act on the label.

AI Security understands the protocols that agents speak

LLM inference endpoints, MCP servers, and A2A servers are APIs, too. API Portal shows you which of your endpoints they are, and the API Security managed rule group already inspects their requests like any other API path.

The AI Security managed rule group adds checks made for agent traffic. It first recognizes the traffic and labels each request as LLM, MCP, A2A, or not recognized, so the checks that follow fit each endpoint type. It runs in the same AWS WAF protection pack (web ACL) as your other rules, with no new service to deploy.

Its first layer checks each MCP and A2A request against the protocol version that the request declares in its MCP-Protocol-Version or A2A-Version header. It supports MCP versions 2025-06-18, 2025-11-25, and 2026-07-28, and A2A version 1.0. For the current list, see AI Security managed rule group. These protocol compliance checks are deterministic and run entirely in AWS WAF. They come in two levels. Baseline covers the violations that let a request slip past routing or inspection, as the example that follows shows, and blocks by default. Strict adds malformed requests that are worth flagging but are usually an outdated client, and counts by default. Each failed check also adds its own label, so you can see exactly which check failed. Here’s the kind of trick that Baseline catches. The header tells every component in front of the MCP server that the request only lists tools. The body calls a tool that reads a file:

POST /mcp HTTP/1.1
Host: tools.example.com
Content-Type: application/json
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/list
Mcp-Name: read_file

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "read_file",
    "arguments": { "path": "/etc/passwd" }
  }
}

A gateway or authorizer that trusts the header treats the request as read-only, and the server runs the tool. AWS WAF blocks the request at the API entry point, because the header and the body disagree about the method.

Its second layer checks content through Amazon Bedrock Guardrails. You don’t create or configure a guardrail for this. You turn on the option in the rule group and choose a service role, and AWS WAF assumes that role to call Bedrock Guardrails with your account’s identity. Bedrock Guardrails returns a score for each check. AWS WAF groups the scores into three levels (high, medium, and low), and the rule group has one rule for each check at each level, so you choose the action for each one. AWS WAF picks the checks for each endpoint type and each direction, as the following table shows. Response checks run only when you turn on response inspection. They cover the response body up to the body size that AWS WAF inspects for that resource, and content beyond that size isn’t checked.

Bedrock Guardrails check

What it looks for

On requests

On responses

Prompt attack

Jailbreaks, prompt injection, and attempts to extract the system prompt

Yes

MCP and A2A only

Content filter

Hate, insults, sexual content, violence, and misconduct

LLM and A2A only

No

Sensitive information

Personal data such as card numbers, US Social Security numbers, email addresses, and bank account numbers, plus credentials such as passwords and AWS access keys

No

Yes

By default, AWS WAF blocks a high-severity prompt attack, on the request or the response. Everything else counts and adds a label that names what matched, such as a prompt injection or a card number. You can change the action for any rule. If Bedrock Guardrails can’t check a request, AWS WAF adds a label that says why and lets the request through. The label is guardrails:not_assessed when the content can’t be assessed, such as an empty prompt. It’s guardrails:call_failed when the call to Bedrock Guardrails fails, plus a second label with the reason, such as guardrails:call_failed:throttling. Like every label, these appear in your AWS WAF logs and CloudWatch metrics. For how labels work, see Web request labeling in AWS WAF. To fail closed when the call to Bedrock Guardrails fails, set the Guardrails_CallFailed rule to block. Throttling then blocks requests, too. Content checks run in the supported Regions listed in AWS WAF AI Security rule group. Figure 5 follows one request through these checks.

Figure 5: AWS WAF recognizes agent traffic and checks its protocol itself, and calls Amazon Bedrock Guardrails to check the prompt on the way in and the answer on the way out

Figure 5: AWS WAF recognizes agent traffic and checks its protocol itself, and calls Amazon Bedrock Guardrails to check the prompt on the way in and the answer on the way out

The AI Security labels follow the same steps, under awswaf:managed:aws:ai-security:. For example, traffic:recognized_mcp says what the traffic is, protocol_compliance_level:baseline:mcp is the level you act on, protocol_compliance_check:mcp_method_mismatch names the check that failed, and request:guardrails:prompt_attack:severity:high carries the Bedrock Guardrails result. For the full label list, supported protocols, and configuration, see AI Security managed rule group. Figure 6 shows the AI endpoints view of the protection pack (web ACL) dashboard.

Figure 6: The AI endpoints view of the protection pack (web ACL) dashboard shows AI Security detections over time, the Amazon Bedrock Guardrails findings that matched the most requests, and how AWS WAF handled AI traffic

Figure 6: The AI endpoints view of the protection pack (web ACL) dashboard shows AI Security detections over time, the Amazon Bedrock Guardrails findings that matched the most requests, and how AWS WAF handled AI traffic

Every detection is a label, and labels work with the rest of AWS WAF

Every detection from the API Security and AI Security rule groups is also a label on the request. Any rule that runs later in your protection pack can match those labels and combine them with labels from other managed rule groups. Examples are AWS WAF Bot Control, AWS WAF Fraud Control account takeover prevention, and the Amazon IP reputation list. That list draws on MadPot, the threat intelligence tool that Amazon uses to protect customers from cybercrime. Use request labels in your own rules. Labels from response checks, such as sensitive information in a response, drive the AI Security rule group’s own actions and appear in your CloudWatch metrics.

Here are four examples of what that makes possible:

  • Rate limits keyed on labels. One probe for your API schema can be noise. Fifty from the same caller in 5 minutes is reconnaissance. A rate-based rule scoped to the reconnaissance labels counts only those requests.
  • No unsigned agents on your MCP server. If your MCP server is only for agents you work with, block requests without an access token or a verified Web Bot Auth signature. Then match the Bot Control bot name label for the operators you trust. Application Load Balancer JWT verification, CloudFront Functions, Lambda@Edge, or your MCP server still validates the token itself.
  • Two weak signals that add up. A low-confidence API Security label or a Bot Control signal by itself isn’t enough to block. Block only the requests that carry both.
  • Tighter limits on sensitive paths. Bot Control targeted protection labels callers by confidence. Use those labels to set a lower rate limit on /checkout than on the rest of your API.

The following rule shows the first example. For each IP address, it counts the requests that carry an API Security reconnaissance label. When an address sends more than 50 requests in 5 minutes, the rule blocks them. Place it after the API Security managed rule group so that its labels are available.

{
  "Name": "RateLimitAPISecurityRecon",
  "Priority": 40,
  "Statement": {
    "RateBasedStatement": {
      "Limit": 50,
      "EvaluationWindowSec": 300,
      "AggregateKeyType": "IP",
      "ScopeDownStatement": {
        "LabelMatchStatement": { "Scope": "NAMESPACE", "Key": "awswaf:managed:aws:api-security:recon:" }
      }
    }
  },
  "Action": { "Block": {} },
  "VisibilityConfig": { "SampledRequestsEnabled": true, "CloudWatchMetricsEnabled": true, "MetricName": "RateLimitAPISecurityRecon" }
}

Labels don’t have to stop at AWS WAF. With custom request headers and dynamic label interpolation, AWS WAF can forward the matched labels to your origin. Your application then sees what AWS WAF saw and can show less data, require step-up authentication, or log the request for review. For how it works, see Do more with AWS WAF labels using dynamic label interpolation.

We keep adding labels, so the documentation holds the current lists. See API Security labels, AI Security labels, and AWS WAF Bot Control rule group.

See what the rule groups found, and act on it

Every label is also an Amazon CloudWatch metric, with no extra setup, and appears in your AWS WAF logs. The protection pack (web ACL) dashboard in the AWS WAF console shows them as traffic arrives. In API Portal, each managed API’s detail page shows the security events that AWS WAF detected on it, as shown in Figure 7.

Figure 7: Each managed API's detail page in API Portal shows the events that AWS WAF detected on it

Figure 7: Each managed API’s detail page in API Portal shows the events that AWS WAF detected on it

The managed rule groups enforce their own detections at your API entry points. To write a rule of your own, start from a label. Scope a rate-based rule to the paths it appears on, key it on the IP address or TLS fingerprint, and start in count mode.

When a detection type spikes, your existing alerting can act on it. That can be a CloudWatch alarm, or the observability or security platform that already reads your metrics and logs. For log destinations, see Logging AWS WAF protection pack (web ACL) traffic.

How we test API Security

No single test shows whether a detection works, so we combine several for API Security:

  • Automated red teaming – LLM-powered agents run continuously against deliberately vulnerable test APIs that we maintain. They probe, adapt, and chain steps the way an attacker does.
  • A growing attack suite – Each working exploit that the agents find becomes a repeatable test case. We replay the suite against the managed rule group when it changes.
  • Realistic legitimate traffic – We replay traffic such as batch jobs, seasonal spikes, and power users next to the attacks, so we measure false positives together with detections.

Results from our test environment don’t transfer directly to yours, because your APIs and the attacks against them differ. The numbers that matter come from your own traffic, and the next section shows how to get them. API Security is designed to detect and block callers who walk object IDs to harvest other users’ records, and tokens whose structure shows tampering. It also flags credential stuffing against the Authorization header and callers who probe for routes that your API doesn’t serve. Efficacy and expansion work for API Security, like AWS WAF security in general, is a continuous effort. For the current list of detections, see API Security managed rule group in the AWS WAF Developer Guide.

Check what gets blocked on your own traffic

The managed rule groups apply their default actions from the moment you add them. To see what a rule group finds before it blocks anything, first add it with all rule actions overridden to count, review the results, and then remove the override. Later, to review one rule, override only that rule to count. AWS WAF still evaluates an overridden rule and adds its label, so you see what it would have blocked on your own production traffic.

Behavioral detections need time to learn your traffic. For the learning period, see Testing and deploying AWS WAF API Security. For a step-by-step evaluation, see Testing and tuning your AWS WAF protections.

Availability

API Portal, API Security, and AI Security are generally available today. Detection of data exfiltration and sensitive data exposure in responses for API Security is coming soon.

Pricing

Each capability is priced by the service it runs in. For API Portal, see Amazon API Gateway pricing. For the API Security and AI Security managed rule groups, see AWS WAF pricing. For the content checks that AI Security runs through Bedrock Guardrails, see Amazon Bedrock pricing.

Get started

To get started, complete the following steps:

  1. In API Portal, enable discovery for one account or for your organization in AWS Organizations, and exclude any resources that you don’t want in the inventory. This step doesn’t need AWS WAF. As the inventory builds, look for endpoints you didn’t expect, such as shadow APIs and AI endpoints, and add them to your managed APIs.
  2. In the AWS WAF console, add the API Security managed rule group to the protection pack in front of your APIs. Start with all rule actions overridden to count, review what it finds on your own traffic, and then remove the override.
  3. If you run AI endpoints, add the AI Security managed rule group to the same protection pack. To turn on the Bedrock Guardrails checks, choose a service role that AWS WAF can assume to call Bedrock Guardrails, and turn on response inspection if you want responses checked and your protection pack (web ACL) protects CloudFront or an Application Load Balancer. Start with the four rules that block by default overridden to count, review what they find on your own traffic, and then remove the overrides one rule at a time.
  4. After the first baseline is available, the behavioral detections label abuse and block it at high confidence. Watch the labels in your CloudWatch metrics, and in your AWS WAF logs if you turn on logging.
  5. Use those labels in your own rules, such as a lower rate limit on your most sensitive paths.

For step-by-step instructions, see Adding the API Security managed rule group and Adding the AI Security managed rule group in the AWS WAF Developer Guide.

Best practice: Put Amazon CloudFront in front of your APIs

Put Amazon CloudFront in front of your API Gateway APIs, your Application Load Balancers, and any other endpoint that is public on port 80 or 443, and associate your protection pack (web ACL) with the CloudFront distribution. That includes APIs that run outside AWS, with another cloud provider or on premises: CloudFront works with any HTTP or HTTPS origin, so those APIs get the same delivery, acceleration, and protection. The same applies to your MCP servers, A2A servers, and LLM endpoints, whether you host them on Amazon Bedrock AgentCore Gateway, on Amazon EKS, or elsewhere. With this setup:

  • AWS WAF inspects requests at the edge, before they reach your origin.
  • AWS WAF sees the caller’s own IP address.
  • AWS WAF mitigates attacks close to their source.
  • For origins in AWS, CloudFront VPC origins mean your Application Load Balancer or private API Gateway REST API isn’t exposed directly to the public internet and is reached through CloudFront.

For more information, see Use AWS WAF protections and Restrict access with VPC origins in the Amazon CloudFront Developer Guide, and the posts Introducing Amazon CloudFront VPC origins and Accessing private Amazon API Gateway endpoints through custom Amazon CloudFront distribution using VPC Origins.

Conclusion

Your APIs are the same APIs they always were. The callers changed, and so did the attack surface. With API Portal, you can see the APIs and AI endpoints that the internet is calling. With API Security and AI Security in AWS WAF, you can protect them at their entry points, without changes to your backend code.

AWS built the building blocks for what comes next: an inventory from traffic, labels that you can act on, and protection where requests first arrive. As agents and the protocols they speak change, those building blocks are where new protection shows up. For the most up-to-date information, see AWS WAF API Security and AWS WAF AI Security in the AWS WAF Developer Guide.

To get started, enable discovery in API Portal, and add the API Security and AI Security managed rule groups in the AWS WAF console.

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


Gopinath Durairaj

Gopinath is a product leader who built enterprise technology businesses across cybersecurity, cloud infrastructure, AI / ML and networking. He currently leads web application security product strategy at AWS, a portfolio that includes AWS WAF, API security, and security for AI-powered applications.

Eitav Arditti

Eitav is a Senior Solutions Architect at AWS and a technology leader with over 15 years of experience in the tech industry. He specializes in edge computing, serverless, and platform engineering, and works with engineering teams to design secure, globally scalable architectures on CloudFront and AWS WAF. His current focus is on internet-scale systems—from global content delivery to edge security.

Gabe Sin

Gabe is a Senior Product Manager at AWS on the Amazon API Gateway team, focused on API management. Before AWS, he led product and strategy at a cryptocurrency exchange, where he built the company’s end-to-end analytics infrastructure on AWS, bringing the same visibility and governance to data that he now brings to APIs.

Aykut Tuzunkan

Aykut is a Senior Technical Program Manager at AWS, based in Seattle, with more than 15 years of experience across edge security, distributed networks, and infrastructure capacity. He owns AWS WAF’s cross-org programs, which cover protection for web applications, APIs, bots, and AI traffic. He focuses on adding new protections to AWS WAF and strengthening the ones customers rely on.

Scope down permissions of existing sessions using AWS STS GetScopedCredentials

Post Syndicated from Vaishnavi Merugu original https://aws.amazon.com/blogs/security/scope-down-permissions-of-existing-sessions-using-aws-sts-getscopedcredentials/

When you build AI agents, you often want each agent or sub-agent to have only the permissions its tasks require, rather than the full permissions of the session that started it. GetScopedCredentials is a new AWS Security Token Service (AWS STS) API that you can use to scope down the permissions of existing temporary security credentials. You can assign each agent, sub-agent, or process its own set of credentials that keep the caller’s AWS Identity and Access Management (IAM) identity but carry reduced permissions, a shorter session duration, or both.

You can call GetScopedCredentials with the temporary security credentials you already use, such as those from aws login, an Amazon Elastic Compute Cloud (Amazon EC2) instance profile, or an AWS Lambda function. In each call, you pass a scope down policy, a shorter session duration, or both. A scope down policy is an inline policy that describes the maximum permissions for the new credentials. The resulting permissions are the intersection of your session’s effective permissions and the scope down policy, so they can only be reduced. Similarly, the session duration you request can’t exceed the remaining duration of the calling session. You can also call GetScopedCredentials again with the resulting credentials to scope down permissions or reduce session duration even further.

GetScopedCredentials is designed as a building block. Because it scopes down permissions on the credentials you already have, you can build it into agent frameworks, services that issue credentials to other components, continuous integration and deployment (CI/CD) pipelines, and your own applications. You can also call it again with scoped-down credentials, so an orchestrating agent can give each sub-agent narrower access than its own.

In this post, we walk through a few common use cases to get you started, show you how to call GetScopedCredentials, and explain how to manage access to it.

Example use cases

You can use GetScopedCredentials whenever a workload needs narrower access than the session that starts it. Examples include limiting what AI agents can do, scoping down permissions based on runtime context, and granting just-in-time access. We cover two of the most common use cases in more detail in this section.

Limit what AI agents can do

When you pass credentials to an agent, the agent can use any permission those credentials carry. An agent decides which actions to take at runtime, often based on prompts or tool output. If its credentials are overly permissive, an agent that makes a mistake can act beyond the task you gave it.

Before you pass credentials to an agent, you can use GetScopedCredentials to scope down permissions to only what its tasks require, such as read access to a single Amazon Simple Storage Service (Amazon S3) bucket. You could also take the opposite approach and keep most of its permissions while removing only the actions the agent should never perform, such as deleting resources. An orchestrating agent can do the same for each sub-agent it starts. Because a scope down operation can only narrow permissions, a sub-agent never has more access than the agent that started it. To help ensure that your agents only have access to the scoped-down credentials, run them in isolated or sandbox environments such as AWS Strands Box.

Scope down permissions based on runtime context

Many workloads run under a single IAM role but need different, narrower permissions for each task they perform. The right set of permissions for a task often depends on information the workload learns only at runtime, such as who sent a request.

Consider a multi-tenant application that stores each tenant’s files under a separate prefix in one S3 bucket. This application uses a single IAM role to serve all its tenants, so the role can access every tenant’s prefix. However, each request should reach only the files of the tenant who sent it, and the application learns which tenant that is only after it authenticates the request. At that point, a trusted credential broker in the application takes the tenant details from the authenticated session and calls GetScopedCredentials with a scope down policy that allows access only to that tenant’s prefix. It passes only the scoped-down credentials to the worker that handles the request, so Amazon S3 denies that worker access to other tenants’ prefixes even though the original role covers them all.

How to call GetScopedCredentials

This section walks through the process of scoping down permissions for an existing session. Before you call GetScopedCredentials, make sure you have valid temporary security credentials and that they have the permissions to call the API. The following identity based policy grants that permission.

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": "sts:GetScopedCredentials",
    "Resource": "*"
  }]
}

To call GetScopedCredentials, use the latest version of the AWS Command Line Interface (AWS CLI) or the AWS SDK for your programming language.

Step 1: Define a scope down policy

Write a scope down policy that describes the maximum permissions the resulting credentials should have. At launch, GetScopedCredentials accepts one inline scope down policy of up to 2,048 characters. You can write a scope down policy in many ways, such as authoring a policy from scratch, reusing or modifying an existing policy, or asking an AI assistant to draft one. This section covers two such approaches.

Option A: Write the policy yourself

If you know which actions and resources your task needs, write the policy directly. The following sample policy allows the resulting credentials to only read objects from a single S3 bucket.

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": "s3:GetObject",
    "Resource": "arn:aws:s3:::amzn-s3-demo-bucket/*"
  }]
}

Make sure to include every action the task needs, including dependent actions. For example, if your task uses Amazon Athena to query data in Amazon S3, the policy must also allow s3:GetObject on that data, because Athena reads it with your credentials.

To keep most of the calling session’s permissions and remove only a few sensitive ones, use an Allow statement with NotAction. This statement doesn’t grant additional access, because a scope down policy can only reduce permissions. The resulting credentials keep the calling session’s permissions except the actions you list, which makes this a quick way to set guardrails without listing each action a task needs. The following sample policy blocks identity and account management, assuming other roles, and deleting some critical resources.

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "NotAction": [
      "iam:*",
      "organizations:*",
      "account:*",
      "sts:AssumeRole*",
      "s3:DeleteBucket",
      "ec2:TerminateInstances",
      "rds:DeleteDBInstance",
      "dynamodb:DeleteTable"
    ],
    "Resource": "*"
  }]
}

Option B: Generate the policy with IAM Policy Autopilot

You can also use IAM Policy Autopilot to generate a scope down policy. IAM Policy Autopilot is an open source tool from AWS that analyzes the AWS SDK calls in your code and identifies the permissions it requires to run successfully. You can run it from the command line or as a Model Context Protocol (MCP) server in your AI coding assistant. To install it, see the Getting Started instructions for IAM Policy Autopilot.

We’ll use the following Python code to generate a scope down policy using IAM Policy Autopilot. It records a report’s status in an Amazon DynamoDB table.

import json
import logging
import os

import boto3
from botocore.exceptions import ClientError

logger = logging.getLogger()
logger.setLevel(logging.INFO)

dynamodb = boto3.client("dynamodb")
table_name = os.environ["TABLE_NAME"]


def _response(status_code, message):
    return {"statusCode": status_code, "body": json.dumps({"message": message})}


def handler(event, context):
    try:
        request = json.loads(event.get("body") or "{}")
        report_id = request["reportId"]
    except (json.JSONDecodeError, KeyError, TypeError):
        return _response(400, "Request body must be JSON with a reportId")

    if not isinstance(report_id, str) or not report_id:
        return _response(400, "reportId must be a non-empty string")

    try:
        dynamodb.put_item(
            TableName=table_name,
            Item={
                "reportId": {"S": report_id},
                "status": {"S": "READY"},
            },
            ConditionExpression="attribute_not_exists(reportId)",
        )
        return _response(200, "Report status saved")
    except ClientError as error:
        code = error.response["Error"]["Code"]
        if code == "ConditionalCheckFailedException":
            return _response(409, "Report status already exists")

        logger.error("PutItem failed: %s", code)
        return _response(500, "Unable to save the report status")

Save the code as report_status.py and run the following command. If the generated policy exceeds the 2,048 character limit, set the max-policy-size and allow-overpermissive-wildcards-to-limit-total-output-size options to 2048. IAM Policy Autopilot then replaces groups of actions with wildcards to fit that size and warns you if it can’t.

iam-policy-autopilot generate-policies ./report_status.py \
  --region us-west-2 \
  --account 123456789012 \
  --service-hints dynamodb \
  --max-policy-size 2048 \
  --allow-overpermissive-wildcards-to-limit-total-output-size 2048 \
  --pretty

IAM Policy Autopilot returns the following policy.

{
  "Id": "IamPolicyAutopilot",
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "dynamodb:PutItem",
        "dynamodb:WriteDataForReplication"
      ],
      "Resource": [
        "arn:aws:dynamodb:us-west-2:123456789012:table/*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "kms:Decrypt"
      ],
      "Resource": [
        "arn:aws:kms:us-west-2:123456789012:key/*"
      ],
      "Condition": {
        "StringEquals": {
          "kms:ViaService": [
            "dynamodb.us-west-2.amazonaws.com"
          ]
        }
      }
    }
  ]
}

IAM Policy Autopilot generates a starting policy that can include wildcards, either because specific resources can’t be inferred from the code, such as with the table/* and key/* resources in this example, or because an optional parameter that limits policy size replaced actions with wildcards. Review the generated policies and replace the wildcards with the actions and resources your task should access.

However you create the policy, save it as scope-down-policy.json. If you want to continue calling GetScopedCredentials with the resulting credentials, also include the sts:GetScopedCredentials action in the Allow block of the permission policy.

Step 2: Call GetScopedCredentials

Pass the scope down policy you created to GetScopedCredentials. The following command also uses the optional duration-seconds parameter to limit the resulting session duration and the optional scoped-session-description parameter to record context for the scoped-down credentials. If you omit the duration-seconds parameter, the credentials keep the calling session’s remaining duration.

aws sts get-scoped-credentials \
  --policy '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"s3:GetObject","Resource":"arn:aws:s3:::amzn-s3-demo-bucket/*"}]}' \
  --duration-seconds 300 \
  --scoped-session-description report-status-job \
  --region us-west-2

The response includes a new set of temporary security credentials, a SessionInfo element, and some helpful information about session size and contents.

{
  "Credentials": {
    "AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
    "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY,
    "SessionToken": "IQoJb3JpZ2luX2VjEHMaCXVzL...",
    "Expiration": "2026-10-12T03:00:00Z"
  },
  "SessionInfo": {
    "Arn": "arn:aws:sts::111122223333:assumed-role/Developer/jane",
    "ScopedSessionId": "AROADBQP57FF2AEXAMPLE:jane"
  },
  "SessionTokenUtilization": 17,
  "SessionTokenSize": 724,
  "ScopedPoliciesCount": 1
}

Notice that the Amazon Resource Name (ARN) in the SessionInfo element matches the ARN of your calling session. The scoped-down credentials retain the identity of the calling session, including the role session name, session tags and context keys.

The ScopedPoliciesCount value in the response shows how many scope down policies apply to the session. It increases only when a recursive call adds a new scope down policy and not when a call only shortens the session duration.

Each GetScopedCredentials call is logged in AWS CloudTrail. The following event, shortened for readability, shows the call from this example.

{
    "eventVersion": "1.11",
    "userIdentity": {
        "type": "AssumedRole",
        "principalId": "AROADBQP57FF2AEXAMPLE:janee",
        "arn": "arn:aws:sts::111122223333:assumed-role/Developer/jane",
        "accessKeyId": "ASIAI44QH8DHBEXAMPLE",
        ...
    },
    "eventTime": "2026-10-12T02:55:00Z",
    "eventSource": "sts.amazonaws.com",
    "eventName": "GetScopedCredentials",
    "awsRegion": "us-west-2",
    ...
    "requestParameters": {
        "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"s3:GetObject\",\"Resource\":\"arn:aws:s3:::amzn-s3-demo-bucket/*\"}]}",
        "scopedSessionDescription": "report-status-job",
        "durationSeconds": 300
    },
    "responseElements": {
        "credentials": {
            "accessKeyId": "ASIAIOSFODNN7EXAMPLE",
            "sessionToken": "IQoJb3JpZ2luX2VjEHMaCXVzL...",
            "expiration": "2026-10-12T03:00:00Z"
        },
        "sessionInfo": {
            "scopedSessionId": "AROADBQP57FF2AEXAMPLE:jane",
            "arn": "arn:aws:sts::111122223333:assumed-role/Developer/jane"
        },
        "sessionTokenUtilization": 17,
        "sessionTokenSize": 724,
        "scopedPoliciesCount": 1
    },
    "readOnly": false,
    ...
}

The scopedSessionDescription value in the CloudTrail event records the text you passed to the API call earlier. Later calls made with the scoped-down credentials show the scoped down session’s access key ID in userIdentity.accessKeyId, which can be used to trace back to its immediate parent session.

Step 3 (optional): Scope down the credentials again

You can call GetScopedCredentials recursively with the scoped-down credentials to narrow permissions or reduce session duration even further. You can apply a maximum of three scope down policies to a session, and each new scope down policy intersects with all prior ones. Recursive calls that only shorten the session duration and don’t add a scope down policy don’t count toward this limit. For a recursive call to succeed, every earlier scope down policy must allow the sts:GetScopedCredentials action.

Managing access to GetScopedCredentials

You can control access to the sts:GetScopedCredentials action in all relevant policy types. You can also use the sts:DurationSeconds condition key to limit the session duration of scoped-down credentials, and global condition keys such as aws:PrincipalArn, aws:PrincipalTag, and aws:SourceVpce to restrict who can call the API and from where.

Availability and request quota

GetScopedCredentials is available in all AWS commercial Regions, AWS GovCloud (US) Regions, and the China Regions. The API has a dedicated request quota of 200 requests per second per account in each Region at launch. You can use scoped-down credentials with most AWS services. For a list of services that aren’t supported, see the GetScopedCredentials API reference.

Conclusion

GetScopedCredentials gives you a building block for reducing permissions at runtime. This is particularly helpful when you want to give each agent, sub agent or workload only the access it needs.

For more information about GetScopedCredentials, see the GetScopedCredentials API reference. To learn how permissions are evaluated for scoped-down credentials, see Permissions for GetScopedCredentials and Policy evaluation for requests within a single account. Now go build!

If you have feedback about this post, submit comments in the Comments section below. If you have questions about this post, start a new thread on AWS re:Post or contact AWS Support.


Vaishnavi Merugu

Vaishnavi Merugu

Vaishnavi is a Senior Technical Product Manager in AWS Identity. Her work focuses on products that simplify identity and access management for customers. Outside of work, she enjoys traveling and exploring new cultures and food.

Ryan Peng

Ryan Peng

Ryan is a Software Development Engineer in AWS Identity and Access Management (IAM), where he builds the short-term credential vending systems that customers rely on to grant and constrain access to their AWS resources. Most recently, he has focused on how workloads and AI agents can run with the narrowest set of permissions they need. Outside of work, Ryan enjoys watching and playing sports, and staying active outdoors.

Chinese-nexus actor’s Cairn AI agents found a zero-day on their own

Post Syndicated from CJ Moses original https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/

Amazon Threat Intelligence is sharing findings from an investigation into a Chinese-nexus threat actor using autonomous AI agents to conduct hacking operations with minimal human involvement. The actor gave the agents a simple goal: “obtain shell access.” During the campaign, the agents found a zero-day in an open-source application and used it to gain full control of a server. These findings show that agentic offensive operations are already happening, and defenders should prepare for the speed and persistence these tools enable.

Discovery

On September 10, 2026, Amazon Threat Intelligence identified a server with a publicly hosted instance of Cairn, an open-source autonomous AI penetration-testing framework, running without authentication. Because the operator left the server publicly accessible, the operational history of the platform was visible to anyone on the internet, including project configurations, actor prompts, and AI output. The operator wrote prompts in Simplified Chinese, and the timestamps in executed scripts were configured to China Standard Time.

Analysis of the instance revealed a campaign targeting IP addresses associated with universities in East Asia outside mainland China over an approximately 48-hour period beginning September 8, 2026.

Cairn and an overview of this campaign

Cairn was built as a research and problem-solving engine for defenders. Operating it is simple. Given a starting point and an objective in plain language, it coordinates multiple AI agents to find a path to that goal. That same ease of use makes it attractive to threat actors. In this campaign, the actor provided a list of targeted IP addresses with variations of the goal to “obtain shell access.” Based on those inputs, the AI agents planned, executed, and adjusted their approach as they learned, without the operator choosing each next step.

The campaign included several operations that varied widely in complexity and outcome. The following operations show both the persistence and the capability of autonomous AI agents.

Persistence against a hardened target

The most extensive operation targeted a Redis (remote dictionary server) instance at one university that was configured to allow access without authentication. Redis is a database that keeps frequently used data in memory so applications can retrieve it quickly, which can make it a valuable foothold inside a network. Over roughly 16 hours and 148 sequential actions, the agents worked through a long list of known techniques for taking control of an open Redis server. These included abusing Redis’s replication feature to load unauthorized code, escaping its scripting sandbox, writing to its configuration files, and corrupting its memory. The agents also attempted Log4Shell injection against another service running on the same system.

When those attempts failed, the agents mapped the internal Docker network topology through a server-side request forgery (SSRF) vulnerability in a co-located Qdrant instance and launched credential sprays against PostgreSQL, SSH, and several other services. None of these attempts succeeded.

A separate operation ran for more than 6 hours and targeted a university GPU server, which is a group of high-performance computers built for computing-intensive research. The agents first built a list of about 80 real usernames by researching the university’s public presence, including faculty directories, lab websites, archived web pages, and academic papers. Then, they tested more than 30,000 credential combinations against the server’s remote login (SSH), and, on other systems across the university network, an admin dashboard, a network storage device, a VPN server, and the university’s campus portal. They never found a working login.

Neither operation succeeded, yet together they show that the agents kept adapting for nearly a full day without human direction.

Zero-day discovery

Against a target running an open-source medical imaging AI application, the outcome was different. The agents identified the application’s framework, mapped its API endpoints, and found an upload endpoint with a filename parameter. They tested that parameter for path traversal, and the parameter was vulnerable. In about 11 minutes, the agents went from mapping the application’s API to arbitrarily writing files on the server.

In a later session, the agents used the same vulnerability to write a Python reverse shell payload to sitecustomize.py, a file Python automatically imports at interpreter startup. The agents then triggered a training API endpoint to spawn a new Python process. The new process imported the payload and established a reverse shell running as root.

At the time of discovery, this path traversal vulnerability in the medical imaging application did not correspond to any assigned security advisory and was unpatched. Amazon Threat Intelligence assesses with high confidence that it was a zero-day based on the absence of any corresponding fix, issue, advisory, or prior mention in vulnerability databases for the affected open-source project.

Subsequent use

In another session, the threat actor stepped in. After the agents discovered the zero-day, the actor then provided the agents with a proxy that tunneled into a second university network. The server that the proxy connected to was running the same vulnerable software, and we infer the actor had used the zero-day to compromise it and establish the tunnel. The actor directed the agents to use the tunnel to target other machines in that network.

Attribution

Amazon Threat Intelligence assesses with moderate confidence that this is a Chinese-nexus threat actor based on the Simplified Chinese prompts, the China Standard Time script timestamps, and the targeting of universities likely of strategic interest to China.

Actions taken by AWS

Amazon Threat Intelligence notified the project’s maintainers of the vulnerability, and they released a fix and a GitHub Security Advisory.

The affected organizations were non-AWS customers that AWS had no direct path to notify. Instead, AWS worked with a government partner to notify the organizations about the activity.

Adoption is growing

Gambit Security was one of the first organizations in the industry to document the use of Cairn by a threat group. Its research describes a separate, financially motivated actor using Cairn to target online retailers. Together, these cases show that this autonomous AI agent framework is being adopted in both espionage and criminal operations. Additional details are available in Gambit Security’s report.

What this means for defenders

The operational tempo in these cases compresses the window available for defensive response. An agent that discovers and exploits a zero-day in minutes completes its activity faster than many security operations centers can manually triage an alert. The agents that failed against the hardened Redis target ran continuously for 16 hours without breaks, sleep, or working-hour constraints. To keep pace, organizations should prioritize high-confidence detections that trigger automated response, with humans overseeing outcomes rather than reviewing every individual action.

Behind the scenes, AWS active defense systems use global honeypots (decoy systems that attract threat actors) and network traffic analysis to identify actors that are scanning for vulnerable systems, and then help restrict that activity at the network level. These protections are built into the AWS network at no extra cost to customers.

Indicators of compromise

The following addresses appear in records dated September 8 to 10, 2026.

142[.]4.98.145

142[.]4.107.34

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


CJ Moses

CJ Moses

CJ Moses is the CISO of Amazon Integrated Security. In his role, CJ leads security engineering and operations across Amazon. His mission is to enable Amazon businesses by making the benefits of security the path of least resistance. CJ joined Amazon in December 2007, holding various roles including Consumer CISO, and most recently AWS CISO, before becoming CISO of Amazon Integrated Security September of 2023.

Prior to joining Amazon, CJ led the technical analysis of computer and network intrusion efforts at the Federal Bureau of Investigation’s Cyber Division. CJ also served as a Special Agent with the Air Force Office of Special Investigations (AFOSI). CJ led several computer intrusion investigations seen as foundational to the security industry today.

CJ holds degrees in Computer Science and Criminal Justice, and is an active SRO GT America GT2 race car driver.

Announcing custom execution roles for AWS CloudFormation StackSets

Post Syndicated from Tanvi Ravindra Malali original https://aws.amazon.com/blogs/devops/announcing-custom-execution-roles-for-aws-cloudformation-stacksets/

With AWS CloudFormation StackSets, you can create, update, and delete stacks across many accounts and Regions from a single operation. By default, StackSets creates an execution role with AdministratorAccess in each target account, which requires no additional setup. With custom execution role templates, you can define the IAM role that StackSets uses in each member account instead.

This provides two capabilities. First, you can scope the execution role’s permissions to only what your workload needs. Second, service-managed stack sets can deploy templates that use nested stacks, macros, and transforms.

Note: Switching to a custom execution role does not remove the default AdministratorAccess execution role from member accounts. For true least-privilege access, delete the default role in each member account after you confirm the custom role works.

How it works

When you create or update a stack set with an execution role template, StackSets validates it and stores it. For each target member account, StackSets then deploys the template as a small bootstrapping stack that creates the IAM role. StackSets uses the name you passed in the ExecutionRoleName parameter for all subsequent operations. The StackSetExecutionRoleName output is used only to validate that the role the template provisioned matches that name.

The bootstrapping stack is created once per member account, always in the home Region of the partition (us-east-1 for commercial, cn-north-1 for China). It is named stacksets-exec-role-stack-<region>-<stackset-id>-<short-uuid>. From that point on, every create, update, and delete operation StackSets runs in that member account uses your custom role.

Templates with nested stacks, macros, and transforms

With a custom execution role, service-managed stack sets can deploy workload templates that use nested stacks (AWS::CloudFormation::Stack), CloudFormation transforms (such as AWS::Serverless-2016-10-31), and custom macros. Previously, these features were not supported in service-managed stack sets.

This capability applies to the workload template you deploy with your stack set, not to the execution role template itself. The execution role template must still follow the requirements in the next section, including no nested stacks and no transforms.

For a workload template that uses transforms or macros, such as a SAM template, pass both CAPABILITY_NAMED_IAM and CAPABILITY_AUTO_EXPAND when creating the stack set:

aws cloudformation create-stack-set \
--stack-set-name my-sam-stack-set \
--template-body file://my-sam-template.yaml \
--permission-model SERVICE_MANAGED \
--execution-role-template-body file://execution-role-template.yaml \
--execution-role-name stacksets-exec-custom-my-role \
--capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND

Prerequisites

Before you configure a custom execution role template, make sure:

  • Your StackSet uses the service-managed permissions model. Custom execution role templates are not supported with self-managed permissions.
  • Activate trusted access with AWS Organizations. This creates the AWSServiceRoleForCloudFormationStackSetsOrgAdmin service-linked role in your management account.
  • You have your management account ID available for use in the trust policy.

Execution role template requirements

Your execution role template must meet all four of the following requirements. If any requirement is not met, CreateStackSet or UpdateStackSet returns a validation error.

1. A single IAM role resource

The template must contain exactly one resource, and that resource must be of type AWS::IAM::Role. Templates with multiple resources or non-IAM resources are rejected.

Note: Name the role with the required prefix stacksets-exec-custom- (for example, stacksets-exec-custom-my-role). The service’s default execution role is named stacksets-exec-<hash>, so this prefix is what lets StackSets tell a custom role from a default one by name alone. Roles without this prefix fail validation. Use the same role name across all stack instances. Don’t vary it per account or Region.

2. A trust policy for the StackSets service-linked role

The IAM role must include an AssumeRolePolicyDocument that grants assume-role access to the StackSets service-linked role in your management account. The trust policy must contain exactly one Statement and exactly one AWS principal, in this format:

arn:aws:iam::<management-account-id>:role/aws-service-role/stacksets.cloudformation.amazonaws.com/AWSServiceRoleForCloudFormationStackSetsOrgAdmin

Replace <management-account-id> with your organization’s management account ID.

If your organization uses a delegated administrator account for StackSets, the trust policy must still reference the organization management account rather than the delegated administrator account.

You can optionally strengthen the trust policy with a condition on your organization ID:

AssumeRolePolicyDocument:
  Version: "2012-10-17"
  Statement:
    - Effect: Allow
      Principal:
        AWS: arn:aws:iam::123456789012:role/aws-service-role/stacksets.cloudformation.amazonaws.com/AWSServiceRoleForCloudFormationStackSetsOrgAdmin
      Action: sts:AssumeRole
      Condition:
        StringEquals:
          aws:SourceOrgID: o-exampleorgid

3. A required output

The template must define a CloudFormation output with the key StackSetExecutionRoleName, and its value must be the name of the IAM role created by the template. StackSets uses this output to validate that the role name the template provisioned matches the ExecutionRoleName you passed when you created or updated the stack set. If the output is missing or the key is misspelled, the template fails validation.

4. No nested stacks or transforms

The template must not include:

  • Nested stack resources (AWS::CloudFormation::Stack).
  • CloudFormation transforms, such as AWS::Serverless-2016-10-31 or custom macros.

A working example

The following least-privilege template creates an execution role scoped to S3 bucket operations on buckets matching a naming prefix, plus the CloudFormation actions StackSets needs to drive stack operations in the member account.

AWSTemplateFormatVersion: "2010-09-09"
Description: Custom execution role for CloudFormation StackSets
Resources:
  StackSetExecutionRole:
    Type: AWS::IAM::Role
    Properties:
      RoleName: stacksets-exec-custom-my-role
      AssumeRolePolicyDocument:
        Version: "2012-10-17"
        Statement:
          - Effect: Allow
            Principal:
              AWS: arn:aws:iam::123456789012:role/aws-service-role/stacksets.cloudformation.amazonaws.com/AWSServiceRoleForCloudFormationStackSetsOrgAdmin
            Action: sts:AssumeRole
      Policies:
        - PolicyName: StackSetExecutionPolicy
          PolicyDocument:
            Version: "2012-10-17"
            Statement:
              - Effect: Allow
                Action:
                  - s3:CreateBucket
                  - s3:DeleteBucket
                  - s3:PutBucketPolicy
                  - s3:GetBucketPolicy
                Resource: "arn:aws:s3:::amzn-s3-demo-*"
              - Effect: Allow
                Action: cloudformation:*
                Resource: "*"
Outputs:
  StackSetExecutionRoleName:
    Value: !Ref StackSetExecutionRole
    Description: Name of the execution role used by StackSets

This template is an illustrative example. The cloudformation:* permissions on all resources are the minimum StackSets needs to drive stack operations in each member account. Narrowing them below this can cause stack operations to fail. Adjust the S3 statement to match the resources your workload uses.

Replace 123456789012 with your management account ID. Using !Ref on the role returns the role name dynamically, so you don’t need to repeat it in the output.

Creating a StackSet with a custom execution role template

Supply the template to CreateStackSet in one of two ways:

  • ExecutionRoleTemplateBody – the template body as an inline string (JSON or YAML).
  • ExecutionRoleTemplateUrl – the Amazon Simple Storage Service (Amazon S3) URL of the template file.

Specify either one of these. If you provide both, the operation returns an error.

Console view of the StackSet creation wizard showing the custom execution role template options, with the default option selected.

Figure 1: Console view of the configurable options when creating a StackSet custom execution role

Using the AWS CLI

aws cloudformation create-stack-set \
--stack-set-name my-stack-set \
--template-body file://my-stackset-template.yaml \
--permission-model SERVICE_MANAGED \
--execution-role-template-body file://execution-role-template.yaml \
--execution-role-name stacksets-exec-custom-my-role \
--capabilities CAPABILITY_NAMED_IAM

The --execution-role-name value must match the RoleName in your execution role template, and it must start with stacksets-exec-custom-. StackSets validates this prefix and returns an error if it does not match.

Custom execution role templates always require CAPABILITY_NAMED_IAM. This flag acknowledges that the templates create named IAM resources. The execution role template always creates a named IAM resource, because it must use the required stacksets-exec-custom- prefix through an explicit RoleName. If your workload template also uses transforms (such as AWS::Serverless-2016-10-31) or macros, add CAPABILITY_AUTO_EXPAND as well. Capabilities apply at the stack set level and pass down to each stack instance.

With an S3-hosted template:

aws cloudformation create-stack-set \
--stack-set-name my-stack-set \
--template-body file://my-stackset-template.yaml \
--permission-model SERVICE_MANAGED \
--execution-role-template-url https://s3.amazonaws.com/amzn-s3-demo-bucket/execution-role-template.yaml \
--execution-role-name stacksets-exec-custom-my-role \
--capabilities CAPABILITY_NAMED_IAM

Note: If you use an S3 URL, your credentials must have read access to the S3 object. The URL can be in path style (https://s3.amazonaws.com/my-bucket/key.yaml) or virtual-hosted style (https://my-bucket.s3.region.amazonaws.com/key.yaml).

Using the CloudFormation console

The create StackSet wizard defaults to Use default execution role, which is the AdministratorAccess role. To attach a custom execution role, select Set execution role and either paste an S3 URL or upload a local template file.

The console also asks for an IAM execution role name in a separate field. StackSets uses the name you enter in this field as the execution role name, not the RoleName value in the template. Make sure the name in the field still starts with the required stacksets-exec-custom- prefix.

StackSet creation wizard on the CloudFormation console defaulting to the AdministratorAccess execution role, with the Set execution role option available to add a custom role.

Figure 2: The StackSet creation wizard defaulting to the AdministratorAccess execution role, with the option to set a custom execution role

Updating the execution role template

To update the execution role template for an existing stack set, call UpdateStackSet with a new ExecutionRoleTemplateBody or ExecutionRoleTemplateUrl. The same validation requirements apply. When you update the execution role template, StackSets updates the role on every existing stack instance. You can’t specify deployment targets in the same call.

The --execution-role-name value is required only when you transition from the default execution role to a custom execution role. On subsequent updates to the execution role template, it’s optional.

aws cloudformation update-stack-set \
--stack-set-name my-stack-set \
--execution-role-template-body file://updated-execution-role-template.yaml \
--use-previous-template \
--capabilities CAPABILITY_NAMED_IAM

On the console, you can also change the execution role name without replacing the template. Select the Use current execution role tile to keep the existing template, and enter a new role name in the IAM execution role name field.

Console showing the Use current execution role tile selected, which keeps the existing template and changes only the execution role name.

Figure 3: Keeping the current execution role template and changing only the execution role name

On the console, choose the Replace current execution role tile and either paste an S3 URL or upload a new template file.

Console showing the Replace current execution role tile selected, with options to provide an S3 URL or upload a local template file.

Figure 4: Replacing the execution role template by providing an S3 URL or uploading a local template file

Setting up an output bucket

StackSets always stores the validated execution role template in a service-owned bucket. You can also configure a bucket you own, and StackSets writes a copy of the template there. This is useful when you want direct visibility into the stored template.

To configure a custom output bucket:

  • Create an S3 bucket in the same Region as your stack set.
  • Update the bucket policy to allow the CloudFormation service principal (cloudformation.amazonaws.com) to perform s3:PutObject on the bucket path.
  • Pass the bucket name using --stack-set-output-bucket on create-stack-set or update-stack-set.
  • StackSets writes the copy at s3://<bucket>/aws-cloudformation-stacksets/<stack-set-id>/output.json, where the colons in the stack set ID are replaced by periods.

Reverting to the default execution role

To revert a StackSet to the default AdministratorAccess execution role, set UseAdminExecutionRole to true:

aws cloudformation update-stack-set \
--stack-set-name my-stack-set \
--use-admin-execution-role \
--use-previous-template

Reverting switches StackSets back to the default AdministratorAccess execution role, but it does not remove the custom execution role or its bootstrapping stack from member accounts. There is no automated cleanup today. Delete them manually in each member account if you no longer need them.

On the console, choose the Use default execution role tile during update.

Console view of the Use default execution role tile selected when updating a stack set.

Figure 5: Reverting to the default AdministratorAccess execution role by selecting the Use default execution role tile when updating a stack set

Viewing the current execution role template

Call DescribeStackSet to see the configured execution role template. If an output bucket is configured, the response includes the StackSetOutputBucketPath field, which points to the stored template in S3.

aws cloudformation describe-stack-set \
--stack-set-name my-stack-set

On the console, go to StackSet details, and under StackSet info expand Execution role template. The View in S3 button opens the stored template in a new tab. During update, the Use current execution role tile shows the template currently in use.

StackSet info tab on the console showing the configured execution role template with a View in S3 button, alongside the stack set ARN, admin role ARN, permission model, drift status, and stack set status.

Figure 6: The StackSet info tab showing the configured execution role template, where the View in S3 button opens the stored template in a new tab

If you configure a custom output bucket, StackSetOutputBucketPath in the DescribeStackSet response is configuration. It shows where StackSets writes the output file, not whether the write succeeded. Check S3 directly to confirm the object is present.

Common validation errors

CreateStackSet and UpdateStackSet validate your execution role template against the preceding requirements and return a ValidationException when something doesn’t match. Most error messages restate a requirement: more than one resource, a missing output key, a role name that doesn’t start with stacksets-exec-custom-, and so on. Three are easier to miss:

  • The account ID in the trust policy principal Amazon Resource Name (ARN) must be your organization’s management account, even when you’re using a delegated administrator.
  • The IAM role in the template must not set a Path property (other than /). This requirement isn’t obvious from the role’s shape.
  • When you update the execution role template, you can’t also specify deployment targets. StackSets always reprovisions the role in every existing stack instance.

For the full list of error strings and causes, see the Troubleshooting section of the User Guide.

If the execution role stack fails to create in a specific member account, that account’s stack instance deployment fails. Other accounts in the same deployment aren’t affected. Check the stack events in the failing member account for details, then retry by creating new stack instances for those accounts.

Get started

With custom execution role templates, you can keep the cross-account convenience of StackSets while bringing your permissions in line with least-privilege guidance. To learn more about the service, see the AWS CloudFormation product page.

 


About the authors

Tanvi Ravindra Malali

Tanvi Ravindra Malali

Tanvi Malali is a Delivery Consultant on the AWS Industries Healthcare team, where she helps healthcare customers design and deliver production workloads on AWS. She is a member of the AWS Technical Field Community for Infrastructure as Code. Tanvi is based in New York.

Idriss Laouali Abdou

Idriss Laouali Abdou

Idriss Abdou is a Sr. Product Manager Technical on the AWS Infrastructure-as-Code team based in Seattle. He focuses on improving developer productivity through CloudFormation and StackSets Infrastructure provisioning experiences. Outside of work, you can find him creating educational content for thousands of students, cooking, or dancing.

Track AWS CloudFormation StackSets deployments with progress visibility

Post Syndicated from Idriss Laouali Abdou original https://aws.amazon.com/blogs/devops/track-aws-cloudformation-stacksets-deployments-with-progress-visibility/

Today, AWS CloudFormation StackSets adds deployment progress visibility, a stage-by-stage view of where each stack set operation stands. You can see how much work is complete, and which accounts and stack instances need attention. Whether you target tens of accounts or thousands, you can follow a deployment while it runs and act on results without waiting for it to finish.

With AWS CloudFormation, you model and provision your cloud infrastructure as code, writing templates in JSON or YAML or generating them with tools like the AWS Cloud Development Kit (CDK). CloudFormation StackSets extends this to many accounts and AWS Regions. With a stack set, you can deploy the same template, such as a networking baseline or security controls, to every account and Region you target in one operation. Each deployment of the template to one account and Region is a stack instance. With service-managed stack sets, StackSets works with AWS Organizations to provision the access it needs in each target account for you.

In this post, we’ll explore how to read deployment progress on the CloudFormation console and through the API. Whether you’re a platform engineer rolling out an organization-wide baseline or a developer building automation around StackSets, we’ll show you how to:

  • Follow a large deployment as it moves through each stage.
  • Find out why a deployment that reports success did not deploy any stacks.
  • Check progress from scripts and automation.
  • Review how each stage ended after the deployment completes.

The walkthrough shows how stage-level progress gives you confidence that a rollout is on track at every stage.

Key capabilities

Deployment progress adds the following to stack set operations that start after launch.

  • Two stages for every operation. Each stack set operation reports role provisioning and stack deployment separately, each with its own status and percentage complete.
  • Counts for each stage. Role provisioning reports accounts that succeeded, failed, completed, and are pending. Stack deployment reports stack instances that succeeded, failed, completed, are pending, were skipped, and were cancelled.
  • Progress for each Region. The console shows a Deployment by Region table, and describing an operation returns stack deployment progress for each Region.
  • Results after completion. Progress remains available after the operation finishes. You can review how each stage ended at any time.
  • Additive API change. The new fields are additive. Existing integrations continue to work without changes.

How it works

When you start a stack set operation, its overall status works as it does today. Deployment progress adds detail under StatusDetails.Stages in the DescribeStackSetOperation and ListStackSetOperations responses, and on the Progress tab of each operation on the CloudFormation console. The stage statuses are separate from the overall operation status.

To open it on the console, choose View progress report for an operation on your stack set’s Operations tab. If the operation’s details page is already open, choose the Progress tab.

The following image shows the Operations tab for a stack set. The View progress report link for a completed CREATE operation is highlighted in the Actions column.

Operations tab with View progress report highlighted

Figure 1: Choose View progress report for an operation on the Operations tab

The following image shows the details page for the same operation while it was running, with the Progress tab highlighted next to the Stack instances tab.

Operation details page with the Progress tab highlighted

Figure 2: Alternatively, on an operation’s details page, choose the Progress tab

The Progress tab has up to three sections. Role provisioning shows the status and the succeeded, failed, pending, and total account counts. Deployment shows the status and the succeeded, failed, pending, cancelled, skipped, and total stack instance counts. Deployment by Region shows the same stack instance counts for each Region, and notes whether Regions are processed one at a time or in parallel. While an operation runs, a progress bar shows the Deployment percentage complete. When the operation finishes, the stage status replaces the progress bar. For operations on a self-managed stack set, the console leaves out the Role provisioning section and shows only Deployment and Deployment by Region. For other operations that don’t provision roles, such as updates, the Role provisioning section shows NOT_APPLICABLE. The completed count appears only in the API response, where it is the sum of succeeded, failed, skipped, and cancelled.

Role provisioning prepares access in each target account of a service-managed stack set. When StackSets has resolved the target accounts, the stage reports counts of succeeded, failed, completed, and pending accounts, and its percentage complete. In the API response, operations that don’t provision roles, including operations on self-managed stack sets, report this stage as NOT_APPLICABLE.

Stack deployment deploys your template as a stack instance in each account and Region. It begins after role provisioning finishes, and its counts appear once the stage starts. Two counts tell you why a stack instance was not deployed:

  • Skipped stack instances belong to accounts that did not complete role provisioning, or to suspended accounts. Because an operation has one stack instance per account in each Region, 4 accounts that did not complete role provisioning in a 3-Region operation give 12 skipped stack instances.
  • Cancelled stack instances were not attempted because the operation exceeded its failure tolerance or was stopped.

Completed is the sum of succeeded, failed, skipped, and cancelled, and pending is the total minus completed. The percentage complete is completed divided by total, rounded down to the nearest tenth. There is no separate in-progress count. StatusDetails also reports the total number of target accounts and stack instances once StackSets has resolved the operation’s targets.

Each stage reports one of these statuses: NOT_APPLICABLE, NOT_STARTED, IN_PROGRESS, SUCCEEDED, PARTIAL_SUCCESS, or FAILED. The two stages can end differently. For example, role provisioning can end in PARTIAL_SUCCESS while stack deployment ends in SUCCEEDED, because stack deployment succeeded for every stack instance that was not skipped.

Behavior by operation type

Operation Role provisioning Stack deployment
Create operations on a service-managed stack set, including auto-deployments Reported Reported
Update and delete operations on a service-managed stack set, and all operations on a self-managed stack set NOT_APPLICABLE Reported
Drift detection NOT_APPLICABLE NOT_APPLICABLE

This table reflects behavior at launch. To write automation that keeps working as StackSets adds features, read the role provisioning status in each response rather than inferring it from the operation type.

DescribeStackSetOperation includes stack deployment progress for each Region in RegionalStatusDetails. ListStackSetOperations returns the overall stages without the regional breakdown. Both stage progress and the Regional breakdown remain available after the operation finishes.

Scenario 1: Follow a large deployment as it runs

You’re a platform engineer rolling out a baseline from a service-managed stack set to 240 accounts in 3 Regions, which is 720 stack instances. The operation has been running for about 20 minutes and you want to know how far it has come.

On the console

  1. Open the CloudFormation console and choose StackSets.
  2. Choose your stack set, then choose the Operations tab.
  3. Choose View progress report for the running operation.

The following image shows the Progress tab for the operation while it runs, with the Deployment progress bar at 90 percent and progress for each Region.

Progress tab while a CREATE operation runs, with Deployment at 90 percent

Figure 3: Progress tab for a running operation

The overall status is still RUNNING, and the Progress tab shows what that status covers. Role provisioning has succeeded for all 240 accounts. The Deployment progress bar is at 90 percent, with 651 stack instances succeeded, none failed, and 69 pending. Deployment by Region shows the status for each Region. The US East (N. Virginia) Region (us-east-1) is done, the Europe (Ireland) Region (eu-west-1) has 5 stack instances pending, and the US West (Oregon) Region (us-west-2) has 64 pending. You can let the operation continue with confidence that it is progressing.

With the AWS Command Line Interface

aws cloudformation describe-stack-set-operation \
    --stack-set-name demo-operation-progress-visibility \
    --operation-id 01234567-890a-bcde-f012-34567890abcd

Sample output (abbreviated):

{
  "StackSetOperation": {          
    "OperationId": "01234567-890a-bcde-f012-34567890abcd",
    "Action": "CREATE",
    "Status": "RUNNING",
    "StatusDetails": {
      "Stages": {
        "RoleProvisioning": {
          "Status": "SUCCEEDED",
          "SucceededAccountsCount": 240,
          "FailedAccountsCount": 0,
          "PendingAccountsCount": 0,
          "CompletedAccountsCount": 240,
          "PercentageCompleted": 100
        },
        "StackInstancesDeployment": {
          "Status": "IN_PROGRESS",
          "SucceededStackInstancesCount": 651,
          "FailedStackInstancesCount": 0,
          "PendingStackInstancesCount": 69,
          "CompletedStackInstancesCount": 651,
          "SkippedStackInstancesCount": 0,
          "CancelledStackInstancesCount": 0,
          "PercentageCompleted": 90.4
        }
      },
      "TotalAccountsCount": 240,
      "TotalStackInstancesCount": 720,
      "FailedStackInstancesCount": 0
    },
    "RegionalStatusDetails": {
      "eu-west-1": {
        "Stages": {
          "RegionalStackInstancesDeployment": {
            "Status": "IN_PROGRESS",
            "SucceededStackInstancesCount": 235,
            "FailedStackInstancesCount": 0,
            "PendingStackInstancesCount": 5,
            "CompletedStackInstancesCount": 235,
            "SkippedStackInstancesCount": 0,
            "CancelledStackInstancesCount": 0,
            "TotalStackInstancesCount": 240,
            "PercentageCompleted": 97.9
          }
        }
      },
      "us-east-1": { ... "Status": "SUCCEEDED", "PercentageCompleted": 100 ... },
      "us-west-2": {
        "Stages": {
          "RegionalStackInstancesDeployment": {
            "Status": "IN_PROGRESS",
            "SucceededStackInstancesCount": 176,
            "FailedStackInstancesCount": 0,
            "PendingStackInstancesCount": 64,
            "CompletedStackInstancesCount": 176,
            "SkippedStackInstancesCount": 0,
            "CancelledStackInstancesCount": 0,
            "TotalStackInstancesCount": 240,
            "PercentageCompleted": 73.3
          }
        }
      }
    }
  }
}

The API reports the percentage rounded down to the nearest tenth (651 of 720 is 90.4 percent). The console progress bar shows 90%.

Scenario 2: Find out why nothing deployed

You start a create operation that targets 4 accounts in 3 Regions, which is 12 stack instances. The operation finishes in seconds with an overall status of SUCCEEDED, but no stacks appear in the target accounts.

The following image shows the Progress tab after the operation finished. Role provisioning shows FAILED for all four accounts, and Deployment shows SUCCEEDED with all 12 stack instances skipped.

Progress tab after role provisioning failed in all four accounts

Figure 4: Progress tab after role provisioning failed in every target account

The Progress tab shows what happened. Role provisioning is FAILED, with all 4 accounts failed. Deployment is SUCCEEDED because no stack instance failed, but all 12 stack instances are skipped. Deployment by Region shows 4 skipped stack instances in each Region. Role provisioning did not complete in any account, so StackSets had nothing to deploy. In this example, all four target accounts were suspended.

Sample output (abbreviated):

"StatusDetails": {
  "Stages": {
    "RoleProvisioning": {
      "Status": "FAILED",
      "SucceededAccountsCount": 0,
      "FailedAccountsCount": 4,
      "PendingAccountsCount": 0,
      "CompletedAccountsCount": 4,
      "PercentageCompleted": 100
    },
    "StackInstancesDeployment": {
      "Status": "SUCCEEDED",
      "SucceededStackInstancesCount": 0,
      "FailedStackInstancesCount": 0,
      "PendingStackInstancesCount": 0,
      "CompletedStackInstancesCount": 12,
      "SkippedStackInstancesCount": 12,
      "CancelledStackInstancesCount": 0,
      "PercentageCompleted": 100
    }
  },
  "TotalAccountsCount": 4,
  "TotalStackInstancesCount": 12,
  "FailedStackInstancesCount": 0
}

To see the status reason for each account, list the operation’s results:

aws cloudformation list-stack-set-operation-results \
    --stack-set-name demo-operation-progress-visibility \
    --operation-id <operation-id> \
    --query "Summaries[?Status=='FAILED'].{Account:Account,Region:Region,Reason:StatusReason}"

Your next step is to review the affected accounts, for example confirming whether they are active in AWS Organizations, and then run the operation again for them.

Scenario 3: Check progress from scripts and automation

You run StackSets operations from a pipeline and want a short progress line in your build logs. ListStackSetOperations returns the same stage details for recent operations, without the Regional breakdown:

aws cloudformation list-stack-set-operations \
    --stack-set-name demo-operation-progress-visibility \
    --query "Summaries[?Status=='RUNNING'].{Id:OperationId,Stages:StatusDetails.Stages}"

For one operation, you can extract the stack deployment percentage directly:

aws cloudformation describe-stack-set-operation \
    --stack-set-name demo-operation-progress-visibility \
    --operation-id 01234567-890a-bcde-f012-34567890abcd \
    --query "StackSetOperation.StatusDetails.Stages.StackInstancesDeployment.PercentageCompleted"

Sample output, for the operation in Scenario 1:

90.4

For operations that start after launch, every stage is present in the response, with NOT_APPLICABLE or NOT_STARTED when it is not active. Your automation reads the same structure for every operation type. AI agents that call the CloudFormation API on your behalf can read the stage status to tell whether a stage is active. Operations that ran before launch don’t include Stages in their response, so check that the field exists before you read it, for example when you list older operations.

Scenario 4: Review how each stage ended

The operation from Scenario 1 has finished. You want to confirm the result before you move on.

The following image shows the Progress tab after the operation completed, with both stages and all three Regions showing SUCCEEDED.

Progress tab after the operation completed

Figure 5: Progress tab for the completed operation

The overall status is SUCCEEDED. Role provisioning succeeded for all 240 accounts. Deployment shows SUCCEEDED in place of the progress bar, with all 720 stack instances succeeded and none failed, pending, cancelled, or skipped. Deployment by Region shows 240 succeeded stack instances in each of the 3 Regions. Because progress remains available after the operation finishes, you can come back to these results later.

Best practices

  • Use the counts to decide your next step. Failed stack instances point to the template or the resources it creates. Skipped stack instances point to role provisioning, or a suspended account. Cancelled stack instances point to the failure tolerance, or a stopped operation.
  • Check role provisioning and the overall status. If role provisioning fails for every target account, StackSets skips every stack instance. As Scenario 2 shows, stack deployment and the overall operation still report SUCCEEDED, even though no stacks were deployed. A FAILED role provisioning status with a skipped count equal to the total tells you this happened.
  • Use DescribeStackSetOperation when you need the Regional breakdown, and ListStackSetOperations for a quick view across recent operations.
  • Treat NOT_APPLICABLE in the API response as expected for the operation type, for example role provisioning on self-managed stack sets or both stages for drift detection.
  • Totals and pending counts appear only after StackSets resolves the operation’s targets. Handle their absence early in an operation, and for operations that ran before launch, which don’t include Stages.

Getting started

Deployment progress is available at no additional charge in all AWS Regions where CloudFormation StackSets is supported. On the CloudFormation console, choose View progress report for a stack set operation on the Operations tab. You can also call DescribeStackSetOperation or ListStackSetOperations with the AWS Command Line Interface (AWS CLI) or AWS SDKs. To use the new fields from the command line, use AWS CLI version 2. They are not available in AWS CLI version 1. In code, use an AWS SDK version released on or after November 18, 2026.

Conclusion

Deployment progress shows where each StackSets deployment stands, stage by stage and Region by Region. You can follow a rollout across thousands of accounts, find the accounts and stack instances that need attention while it runs, and review how each stage ended afterward. Existing integrations continue to work without changes.

For a full description of each stage, status, and count, including how they differ by operation type, see Monitor StackSet operation progress in the AWS CloudFormation User Guide. If you’re building automation, the DescribeStackSetOperation and ListStackSetOperations pages in the AWS CloudFormation API Reference list every new response field. To learn more about modeling and provisioning infrastructure as code across accounts and Regions, visit the AWS CloudFormation product page.


About the authors

Idriss Laouali Abdou

Idriss Laouali Abdou

Idriss is a Senior Product Manager at AWS, working on delivering the best experience for AWS IaC customers. Outside of work, you can either find him creating educational content helping thousands of students, cooking, or dancing.

Nitin Patil

Nitin Patil

Nitin is a Software Development Engineer at AWS who has worked in the AWS IaC space for the past five years, mostly on CloudFormation StackSets. Outside of work, you can find him exploring new cafes, playing badminton, or gathered around a board game.

What’s new in AWS Transform – continuous modernization for re:Invent 2026

Post Syndicated from Nithin Moorthy original https://aws.amazon.com/blogs/devops/whats-new-in-aws-transform-continuous-modernization-for-reinvent-2026/

Since general availability in August 2026, platform teams have used continuous modernization through AWS Transform to keep tech debt from piling up. To see what customers have achieved, read the success stories on the AWS Transform – continuous modernization page.

Ahead of re:Invent 2026, we’re making the experience faster to start, easier to act on, and easier to extend. Setup takes a few steps, each issue shows up once across your estate, and remediations arrive as one pull request per repository. You can now bring your own skills (transformation definitions), have one generated when none fits, and ask chat about your estate or have it act for you. A new integration with AWS Health takes you from a planned lifecycle event (PLE), such as an AWS Lambda runtime reaching end of support, straight to the affected code.

Get started in a few steps

Getting your first findings used to mean creating personal access tokens, configuring AWS Identity and Access Management (IAM) roles, and picking analyses before you saw any findings.

Continuous modernization now connects to GitHub, GitLab, and Bitbucket through OAuth, so there are no tokens to manage. It also creates its execution role for you during onboarding.

As soon as your repositories are connected, continuous modernization recommends analyses for your estate. These include comprehensive tech debt for outdated dependencies and end-of-support runtimes, or modernization readiness for repositories that could move to containers or serverless. You choose which ones to run, and recommended analyses are scheduled by default, so your findings stay current without anyone rerunning them.

The continuous modernization Get started page, which connects your source and turns on recommended analyses.

Figure 1: The continuous modernization Get started page, which connects your source and turns on recommended analyses.

Recommended analyses scheduled to run automatically after you connect your source.

Figure 2: Recommended analyses scheduled to run automatically after you connect your source.

Start from what AWS Health already knows

AWS Health notifies you about planned lifecycle events (PLEs) that affect your account, such as a Lambda runtime reaching end of support or an Amazon Elastic Kubernetes Service (Amazon EKS) version upgrade. It tells you what’s changing and by when. Continuous modernization now integrates with AWS Health to find and fix the affected code.

Planned lifecycle events from AWS Health, grouped by change deadline

Figure 3: Planned lifecycle events from AWS Health, grouped by change deadline

Findings from the AWS Health analysis, each mapped to a recommended transformation

Figure 4: Findings from the AWS Health analysis, each mapped to a recommended transformation

Continuous modernization maps each PLE to the affected repositories and findings. For most PLEs, one remediation covers every affected repository. It applies the matching skill, such as an AWS managed Lambda runtime upgrade, and opens one pull request per repository. The deadline and affected resources stay with the work, so you can track each PLE until it’s cleared.

The integration uses the AWS Health API, which requires AWS Business Support+, AWS Enterprise Support, or AWS Unified Operations. In Regions without these plans, Business, Enterprise On-Ramp, or Enterprise Support also works. For details, see Integrating AWS Health with other systems using the AWS Health API.

Know exactly what to tackle first across your organization

Until now, an issue showed up as a separate finding in every repository it touched, so dozens of repositories using the same deprecated library meant dozens of findings to triage.

The redesigned Findings page grouping each issue with its affected repositories, severity, and recommendation

Figure 5: The redesigned Findings page grouping each issue with its affected repositories, severity, and recommendation

Continuous modernization now groups findings that share an underlying issue, so each issue appears once with every affected repository listed under it. On the redesigned Findings page, each group shows its severity, scope, safety bar status, and recommended AWS managed transformation or specialized skill. Select the groups you want to fix and choose Create remediation plan.

Resolve issues across your organization in one pass

Until now, each finding was remediated in its own pull request, so a repository with five findings meant five pull requests.

Now you can remediate a group of findings together, whether continuous modernization created the group or you did. It combines each repository’s findings into a single pull request, so app teams review and merge once per repository instead of once per finding.

A remediation plan that combines issue groups into one pass with one pull request per repository

Figure 6: A remediation plan that combines issue groups into one pass with one pull request per repository

Remediate with your own skills

Most platform teams have standards that no general-purpose tool knows about, such as an approved logging framework, a required security configuration, or an internal API you’re retiring.

You can now run your own skills from the console, alongside AWS managed ones:

  • Custom analysis scans your repositories against your rules and reports findings. It runs on AWS managed infrastructure or in your own account.
  • Custom remediation applies your skills to resolve those findings. It runs on infrastructure in your own account, such as AWS Batch.
Running a custom analysis and selecting your own transformation definition from the console

Figure 7: Running a custom analysis and selecting your own transformation definition from the console.

When no skill fits, one gets generated

Between AWS managed skills and your own, most findings have a recommended remediation ready. Most estates still have a long tail, such as an internal framework, an unusual build setup, or a library few others use.

When no skill fits a finding, continuous modernization now generates one, and nothing runs until you review the skill and what it will change. Then you choose one of the following options:

  • Use it once to remediate this finding.
  • Publish it to the skills registry in your AWS account, so it’s ready the next time the issue appears.
A generated skill shown with its target, approach, and validation for review before anything runs

Figure 8: A generated skill shown with its target, approach, and validation for review before anything runs

Ask about your estate in plain language

Not every question fits a filter. In chat, you can ask about your findings, analyses, and remediations in plain language. For example:

  • “What changed since the last analysis?”
  • “Why did the remediation on checkout-service fail?”
  • “Plan my week.” Chat summarizes failed work to unblock, remediations ready to start, and findings with no automated remediation.

Chat can also take action: start or schedule an analysis, start a remediation and check its progress, or dismiss findings in bulk. Every action shows a confirmation card first and runs with your own permissions. To ask about something specific, choose Ask about this on any finding, analysis, or remediation.

Chat answering a question about your estate and offering to start the remediation

Figure 9: Chat answering a question about your estate and offering to start the remediation

Take your results anywhere

You can now download the artifacts from any analysis, such as its report. Share them with stakeholders, keep them as audit and compliance evidence, or feed them into your own dashboards and ticketing tools.

See it in action at re:Invent 2026

Try these new features today, and then join us in Las Vegas to see them live and talk with the team. Choose a session ID for times and repeats.

  • MAM230 (breakout): From CI/CD to CI/CD/CM: Continuous modernization for AI-generated code.
  • MAM350 (code talk): Continuous tech debt analysis and remediation, from findings to fixes.
  • MAM344 (breakout): From migration to continuous modernization: reduce tech debt at scale.
  • DVT309 (workshop): Your runtime is being deprecated. Your weekend isn’t.
  • DVT323 (chalk talk): Tech debt anonymous: bring your worst code to this chalk talk.
  • MAM205 (chalk talk): Move code modernization at scale from one-time to continuous.
  • DVT301 (builders’ session): Bring your tech debt: build a custom transformation that fixes it.

Get started

Tech debt builds up one outdated dependency at a time. Continuous modernization now sets up in a few steps, shows each issue once, fixes it in one pull request per repository, and starts from what AWS Health already knows. To get started, use the following resources:

Have an AWS Health event waiting? Open Scheduled changes in the AWS Health Dashboard and choose Upgrade with Continuous Modernization.


About the authors

Nithin Moorthy

Nithin Moorthy

Nithin is a Senior Product Manager–Technical at AWS working on AWS Transform custom and continuous modernization. Both use agentic AI to help developers modernize code across their entire application portfolio. Nithin focuses on helping customers modernize their applications faster and keep them current over time.

Venugopalan Vasudevan

Venugopalan Vasudevan

Venugopalan (Venu) is a Principal Specialist Solutions Architect at AWS. He leads generative AI initiatives across the AI-driven software development lifecycle, agentic AI for application modernization, and frontier engineering, with a focus on Kiro and AWS Transform. He helps customers adopt and scale AI-powered developer and modernization solutions to ship faster and keep their applications current.

Announcing in-place upgrades from Standard brokers to Express brokers for Amazon MSK

Post Syndicated from Ankita Mishra original https://aws.amazon.com/blogs/big-data/announcing-in-place-upgrades-from-standard-brokers-to-express-brokers-for-amazon-msk/

Amazon Managed Streaming for Apache Kafka (Amazon MSK) now supports in-place upgrades from Standard brokers to Express brokers. With in-place upgrade, you can modernize your existing MSK Provisioned cluster to Express brokers through a fully managed workflow, designed to minimize application changes while helping to maintain high availability throughout. Express brokers deliver increased stability at higher throughputs, scale up to 20 times faster, and recover up to 90% faster than standard Apache Kafka brokers. The in-place upgrade is a direct path to those benefits. Until now, adopting Express brokers meant standing up a new MSK Provisioned cluster and migrating both your data and your applications to it. That cut-over added weeks or months of cross-team coordination and put application availability at risk. The in-place upgrade removes that work entirely. Amazon MSK modernizes your existing cluster to Express brokers through a fully managed workflow, with no new cluster, no application changes, and no downtime, turning a multi-month migration into a few hours.

With the in-place upgrade, Amazon MSK adds Express brokers to your existing cluster and moves topics for you, preserving both the cluster endpoint and your Kafka topic offsets. As partitions move, MSK reassigns their replicas to the Express brokers and transfers partition leadership through Kafka’s standard leader-election process. Producers and consumers continue using the same topics and the same cluster endpoint without interruption. Applications can continue serving traffic throughout the migration, delivering a zero-downtime client experience. Because the upgrade uses Kafka-native protocols that preserve topic offsets, your stateless and stateful applications (including Apache Flink and Kafka Streams) can resume from their exact position, with no reprocessing, errors, or duplicates. The upgrade can be reversed until you decommission the Standard brokers, keeping you in control throughout the process.

Prerequisites

In-place upgrade to Express brokers is available for MSK Provisioned clusters configured with Standard brokers, in all AWS Regions where MSK Express brokers are supported. Before you begin, confirm your cluster meets the following requirements. These are also validated when you assess upgrade readiness with the API, described in the next section:

  • Kafka version: The cluster must run Apache Kafka version 3.9 with KRaft metadata management.
  • Three Availability Zones: The cluster must be deployed across three Availability Zones.
  • No tiered storage support: Clusters with tiered storage enabled are not supported.
  • Topic and broker configuration requirements: Express brokers enforce a set of best-practice configurations to maintain stability and high availability. Before initiating upgrade, confirm your cluster meets the following Express requirements:
    • replication.factor=3.
    • min.insync.replicas=2.
    • unclean.leader.election.enable = false.
    • segment.ms set to at least 60,000 milliseconds.
    • max.message.bytes set to no more than 8 MiB.
    • max.compaction.lag.ms set to at least 24 hours.
    • A supported broker instance type.
    • Per-broker partition counts within the Express broker partition quota.

The upgrade process

The following steps use the AWS Command Line Interface (AWS CLI). You can also perform them programmatically with the AWS Management Console or SDK. To perform the upgrade with an AI agent, use the managing-amazon-msk Agent Skill, which powers agents to manage the upgrade process end to end. All sections of this post can be automated with the managing-amazon-msk Agent Skill.

You can upgrade your existing Standard brokers on M5, M7g or M8g instances to Express brokers on M7g or M8g instances. Express brokers on AWS Graviton4-based M8g instances deliver up to 15% lower compute costs, up to 45% lower P99 produce latency, and 2x faster recovery when consumers fall behind, than Express brokers on M7g. You also no longer pay the broker-side cost when moving data across Availability Zones, which reduces total cross-AZ data transfer costs by 50%.

Pre-upgrade: Assess upgrade readiness

To confirm your cluster is ready for in-place upgrade to Express brokers, use the CreateAssessment API. The assessment validates your broker and topic configurations against Express requirements and returns its findings, including any changes to make first. Address any changes that the assessment flags as blockers before you initiate the upgrade. When you initiate the upgrade, MSK automatically re-validates your configuration and proceeds only after all checks pass.

Create the assessment

To create an assessment, specify the target Express instance type. Express brokers are available in the M7g and M8g instance families. You choose the family, and the upgrade keeps your broker size and broker count. For example, if you are on Standard kafka.m5.large, specify express.m7g.large or express.m8g.large. Clusters with Standard brokers on M8g instances can also upgrade to Express brokers on M8g instances:

aws kafka create-assessment \
--region "$AWS_REGION" \
--cluster-arn "$CLUSTER_ARN" \
--assessment-type UPDATE_BROKER_TYPE \
--assessment-parameters TargetInstanceType=express.m8g.large

Check the assessment status

To check the assessment status, use the following and wait until Status shows COMPLETE (assessments typically finish in about two minutes):

aws kafka describe-assessment \
--region "$AWS_REGION" \
--cluster-arn "$CLUSTER_ARN" \
--assessment-arn "$ASSESSMENT_ARN"

List assessment findings

To read the findings after the assessment is complete, use:

aws kafka list-assessment-findings \
--region "$AWS_REGION" \
--cluster-arn "$CLUSTER_ARN" \
--assessment-arn "$ASSESSMENT_ARN"

ERROR findings are blocking and must be resolved before initiating the upgrade. WARNING and INFO findings are informational. Resolve any blocking findings before continuing.

Performing the upgrade

The in-place upgrade to Express brokers is a managed workflow that you drive at your own pace.

Step 1: Initiate the upgrade

To initiate the upgrade using the CLI, use the UpdateBrokerType API. It takes four inputs:

  • --cluster-arn, the ARN of the cluster you’re upgrading.
  • --current-version, the cluster’s current version (to get it, use the DescribeCluster API).
  • --target-instance-type, a combined string naming your current Standard instance type and the target Express instance type, joined with a hyphen. For example, to upgrade a cluster from kafka.m7g.large Standard brokers to express.m8g.large Express brokers, set the target to kafka.m7g.large-express.m8g.large.
  • --topic-reassignment, how to move topics to Express brokers:
    • AUTO: Amazon MSK manages the topic migration for you. It validates your configuration, provisions Express brokers matching the count and size of your Standard brokers and moves every topic from Standard to Express in safe, managed batches. Your applications keep producing and consuming against the same cluster endpoint throughout. After all topics are on Express and you have validated your applications, you complete the upgrade to decommission the Standard brokers.
    • MANUAL: Amazon MSK provisions the Express brokers but moves no topics until you reassign them yourself, giving you a controlled, topic-by-topic experience. You move and validate topics at your own pace, as described in Step 2.

For example:

aws kafka update-broker-type \
--cluster-arn "$CLUSTER_ARN" \
--current-version "$CURRENT_VERSION" \
--target-instance-type "$TARGET_INSTANCE" \
--topic-reassignment AUTO

Step 2: Move topics (controlled mode only)

When you initiate in controlled mode (--topic-reassignment MANUAL), MSK adds the Express brokers but moves no topics until you drive the reassignments. Wait until the cluster returns to Active with both Standard and Express brokers. Then move topics with the StartTopicReassignment API.

You can selectively move topics with the --topics-to-include and --topics-to-exclude wildcard patterns, and set the direction with --target-instance-type. To move topics to Express brokers, pass your Express instance type ($EXPRESS_INSTANCE, for example express.m8g.large). To move topics back to your Standard brokers, pass your Standard instance type ($STANDARD_INSTANCE, for example kafka.m7g.large). Start with lower-risk topics, validate application performance on Express, then continue.

To complete a migration, all topics (including internal topics) must be moved to the Express brokers. After you finish testing with application topics, confirm you also move internal topics to Express brokers.

Move a specific set of topics onto Express:

For example, to move the orders.* topics to Express brokers:

aws kafka start-topic-reassignment \
--cluster-arn "$CLUSTER_ARN" \
--target-instance-type "$EXPRESS_INSTANCE" \
--topics-to-include 'orders.*'

This moves every topic whose name matches the include pattern onto Express brokers. Patterns are regular expressions, so orders.* can match many topics. It does not name a single topic.

Hold specific topics back from Express:

To move all orders.* topics except the payments topics to Express brokers:

aws kafka start-topic-reassignment \
--cluster-arn "$CLUSTER_ARN" \
--target-instance-type "$EXPRESS_INSTANCE" \
--topics-to-include 'orders.*' \
--topics-to-exclude 'orders\.payments.*'

This moves topics such as orders.created and orders.shipped onto Express, and the orders.payments topics stay on Standard. MSK applies the exclude patterns after the include patterns, so a topic that matches both stays where it is. You can move the held-back topics later in a separate reassignment.

Move all topics at once:

You can also move all topics at once to Express brokers. This is useful if you’ve tested a subset of topics on Express, and are ready to complete moving the remaining topics:

aws kafka start-topic-reassignment \
--cluster-arn "$CLUSTER_ARN" \
--target-instance-type "$EXPRESS_INSTANCE" \
--topics-to-include '.*'

This broad include pattern moves every topic, you can narrow the pattern (or exclude) to move topics incrementally.

Stop in-flight reassignment:

To stop a reassignment, you need its topic reassignment operation ARN. The StartTopicReassignment API returns it in the response. You can also get it from the ListTopicReassignments API, which lists every reassignment on the cluster with its operation ARN and status.

aws kafka list-topic-reassignments --cluster-arn "$CLUSTER_ARN"

Pass the ARN to stop-topic-reassignment:

aws kafka stop-topic-reassignment \
--cluster-arn "$CLUSTER_ARN" \
--topic-reassignment-operation-arn "$OP_ARN"

This stops the in-progress reassignment identified by its operation ARN. Topics that already moved stay on Express brokers. Only one reassignment can run on a cluster at a time, so wait until list-topic-reassignments shows the status as STOPPED. Then start a new reassignment with the same start-topic-reassignment command and patterns you used before. The new reassignment gets its own operation ARN, so use that new ARN if you need to stop it later. To move topics back to Standard instead, set --target-instance-type to $STANDARD_INSTANCE, as shown in the following rollback example.

Roll back process:

To roll back a set of topics by name or wildcard, pass the Standard instance type (for example, kafka.m7g.large) in the --target-instance-type:

aws kafka start-topic-reassignment \
--cluster-arn "$CLUSTER_ARN" \
--target-instance-type "$STANDARD_INSTANCE" \
--topics-to-include 'orders.*'

Targeting the Standard instance type moves the matching topics back to Standard while the rest stay on Express. Move topics again after the issue is resolved and you’re ready to move the topics back to Express. To roll back all topics from Express brokers to Standard brokers, first use the StartTopicReassignment API with .* as the topic wildcard and your Standard instance type as the target instance type:

aws kafka start-topic-reassignment \
--cluster-arn "$CLUSTER_ARN" \
--target-instance-type "$STANDARD_INSTANCE" \
--topics-to-include '.*'

Then, decommission the Express brokers by calling UpdateBrokerType with the Standard instance type as the target instance type:

aws kafka update-broker-type \
--cluster-arn "$CLUSTER_ARN" \
--current-version "$CURRENT_VERSION" \
--target-instance-type "$STANDARD_INSTANCE"

Step 3: Monitor progress

Track the overall upgrade on the Cluster operations tab on the console, or with the DescribeClusterOperation API, passing the operation ARN returned by update-broker-type. In Amazon CloudWatch, graph PartitionCount, BytesInPerSec, and BytesOutPerSec by broker ID to watch partitions and throughput shift from the Standard brokers to the Express brokers.

To check whether the upgrade operation is in progress, complete, or failed, use:

aws kafka describe-cluster-operation --cluster-operation-arn "$OPERATION_ARN"

To show migration progress per topic, so you can see which topics have moved to Express and which are still in flight, use:

aws kafka list-topic-reassignments --cluster-arn "$CLUSTER_ARN"

To list each broker node with its BrokerNodeType, so you can identify which brokers are Standard and which are Express as leadership shifts, use:

aws kafka list-nodes --cluster-arn "$CLUSTER_ARN"

The upgrade takes a few hours depending on cluster size and data volume.

Step 4: Validate applications on Express

After every topic has moved to Express brokers, check your workload before you complete the upgrade. The Standard brokers stay in the cluster during this step, so you can still move topics back to them if you find an issue.

To confirm that all partitions have moved, run list-topic-reassignments. Then check that LeaderCount is 0 on every Standard broker. After that:

  • Verify that topics, partitions, and consumer groups are present.
  • Confirm cluster health: ActiveControllerCount is 1 and OfflinePartitionsCount is 0.
  • Confirm producer and consumer throughput and performance align with pre-upgrade baselines.
  • Confirm stateful applications (for example, Apache Flink and Kafka Streams) remain healthy and continue processing after partition leadership moves to Express brokers.

If a topic has problems, move it back to Standard with the rollback commands in Step 2. Run this check for at least one full processing cycle of your workload before you continue.

Step 5: Complete the upgrade

MSK waits for you to confirm before it removes the Standard brokers. When your validation is done, choose Complete Upgrade on the console, or call UpdateBrokerType again with only the Express instance type:

aws kafka update-broker-type \
--cluster-arn "$CLUSTER_ARN" \
--current-version "$CURRENT_VERSION" \
--target-instance-type "$EXPRESS_INSTANCE"

Amazon MSK decommissions the Standard brokers, and the cluster returns to the ACTIVE state as an Express-only cluster. This step is final: once the Standard brokers are removed, reverting to Standard requires creating a new cluster and migrating to it with Amazon MSK Replicator. After the upgrade completes, update or retire any monitoring alerts and dashboards that are specific to your former Standard brokers.

Step 6: Post-upgrade optimization

After the upgrade, intelligent rebalancing is paused on your cluster. New Express clusters have it turned on by default, but upgraded clusters do not. With intelligent rebalancing, you can scale your clusters up or down by editing the broker count in your clusters in a single action, and Amazon MSK will keep partitions evenly distributed across brokers. Because MSK provisions one Express broker for each Standard broker, your cluster may have more capacity than your workload needs. Turn on intelligent rebalancing first, then use your post-upgrade metrics to right-size the cluster by reducing the broker count or changing the instance size as required.

Additionally, Express brokers surface an improved bootstrap endpoint for client connections. The boot-XXX.clustername.kafka.us-east-1.amazonaws.com endpoints are managed by MSK Express and improve distribution of connections for metadata requests across your brokers. You can update applications to use these new endpoints at any time to improve reliability and connection distribution. Your applications configured with broker ID-based bootstrap endpoints (for example, b-1.clustername.kafka.us-east-1.amazonaws.com) will continue to function after the upgrade, so this step is optional.

Additional considerations

Beyond these prerequisites, plan for the following during the upgrade window:

  • Billing: During the upgrade, MSK adds Express brokers to your existing cluster, matching the size and count of your Standard brokers. For example, for a cluster with 3 kafka.m5.large Standard brokers MSK adds 3 express.m7g.large Express brokers during the upgrade. Because both broker sets are provisioned throughout the upgrade period, you are charged for both broker types until the upgrade completes. There is no additional charge for the upgrade itself.
  • Restricted operations: Some cluster modification operations, such as version upgrades, broker configuration changes, and authentication or monitoring changes, are blocked during the upgrade to prevent configuration mismatches between broker types. Kafka read and write, topic create and delete, and broker reboots continue to work. MSK pauses migration during scaling operations and resumes automatically afterward.
  • Monitoring metrics: Standard and Express brokers emit different CloudWatch metrics. Plan to update dashboards and alarms as topics move to Express. In particular, replace KafkaDataLogsDiskUsed with StorageUsed, and retire Amazon Elastic Block Store (Amazon EBS) storage metrics such as BurstBalance.

Get started with Express brokers on Amazon MSK

The in-place upgrade from Standard brokers to Express brokers gives you a straightforward path to the performance, faster scaling, and lower operational overhead of Express brokers, without application changes, cross-team coordination, or reprocessing state. Amazon MSK handles the broker provisioning, topic movement, and offset preservation for you, whether you let MSK move every topic automatically or move topic by topic. What used to take months of migration effort can now complete in hours.

To move even faster, you can use the managing-amazon-msk skill with your AI coding agent (such as Kiro or any MCP-compatible agent) through the AWS MCP server. The skill assesses your cluster’s compatibility with Express requirements and provides commands to resolve any issues, generates a proof-of-concept package to validate Express performance for your workload, and recommends a right-sized Express cluster footprint.

In-place upgrade to Express brokers is available for MSK Provisioned clusters configured with Standard brokers, in all AWS Regions where MSK Express brokers are supported. To get started, see the Amazon MSK Developer Guide.

 


About the authors

Ankita Mishra

Ankita Mishra

Ankita is a Product Manager for Amazon Managed Streaming for Apache Kafka. She works closely with AWS customers to understand their needs for real-time analytics and high throughput, low latency streaming workloads. Working backwards from their needs, she helps drive the MSK roadmap and deliver new innovations that help AWS customers focus on building novel streaming applications.

Ravindranath Kakarla

Ravindranath Kakarla

Ravindranath is a Senior Software Development Engineer for Amazon Managed Streaming for Apache Kafka. He builds the systems that run customers’ real-time, high-throughput streaming workloads, and recently led the launch of in-place migration from Standard to Express brokers. He also works on cross-region disaster recovery and data distribution, helping customers replicate their streaming data across AWS Regions. Working backwards from customer needs, he focuses on making MSK resilient and simple to operate, so customers can focus on building novel streaming applications.

Ashley Millette

Ashley Millette

Ashley is a Specialist Solutions Architect for Streaming and Analytics at AWS. She partners with customers to design and implement real-time data streaming architectures using services like Amazon MSK helping them build scalable, cost-effective pipelines that turn data in motion into actionable insights. She is passionate about simplifying complex streaming workloads and enabling customers to modernize their data infrastructure with confidence.

Simon Peyer

Simon Peyer

Simon is a Solutions Architect at AWS based in Switzerland. He is a practical doer and passionate about connecting technology and people using AWS Cloud services. A special focus for him is data streaming and automations. Besides work, Simon enjoys his family, the outdoors, and hiking in the mountains.

Your AWS Security, Identity, and Governance guide to re:Invent 2026

Post Syndicated from Brandon Carroll original https://aws.amazon.com/blogs/security/your-aws-security-identity-and-governance-guide-to-reinvent-2026/

The AWS Security, Identity, and Governance team invites you to join us at re:Invent in Las Vegas from November 30 to December 4, 2026. You know all too well that AI agents now act on their own across the systems you run, and that changes what identity, detection, network protection, and governance have to cover. re:Invent is the week to see how AWS is building security for that shift and to talk it through with the people building it.

Security sessions run every day of the week, nearly 120 of them across breakouts, chalk talks, workshops, code talks, builders’ sessions, and lightning talks. On Thursday, December 3, the Wynn hosts a full day of advanced security sessions in one venue. The sessions are built around five themes this year. They cover securing the agentic enterprise, building securely at the speed you ship, running one security operating model everywhere you run, regulatory confidence and digital sovereignty, and building a culture of security.

Keynotes

AWS leaders use the keynotes to announce new services, launches, and updates that will shape the year ahead in cloud. Many security launches debut during keynote week, and the keynotes set the context for the sessions you’ll attend in the security track. The Thursday keynote runs from 8:30 to 10:00 AM at The Venetian and is also streamed online.

Thursday, December 3: A full day of security deep dives at the Wynn

Security sessions start Monday morning and run through Friday. Thursday is different. 78 security sessions, most of them at the 300 level or above, fill the Wynn from 8:00 AM to 5:30 PM, so you can spend the whole day in one building without crossing the Strip. Rooms are on the Convention Promenade, the Upper and Lower Convention Promenades, and Level 1, and the Cristal 2 Content Hub runs lightning talks and theater sessions all day. The day includes 12 workshops, 11 builders’ sessions, and 22 chalk talks, so most of it is hands-on or interactive.

Three main stage talks from AWS security leaders run through the day in Bandol 1.

Time Talk Speaker
11:00 AM The Future of Security Chet Kapoor, AWS VP of Security, Search, and Observability
1:00 PM The Old Security Playbook Is Dead Amy Herzog, AWS Chief Information Security Officer
3:00 PM Operationalizing security for the future with best practices today Eric Brandwine, VP/Distinguished Engineer, AWS Security

Chet opens with how AWS is building security for a time when systems and threats both move at machine speed, and how customers secure their agent workloads. Amy follows with what happens when the window between a vulnerability existing and being exploited shrinks from years to minutes. She shares how AWS changed its own practices to stop AI-enabled threat actors and what you can change in your own operations. Eric closes the day by showing how to take the latest AWS security innovations from announcement to adoption across your organization, with the architectural patterns, operational practices, and mental models AWS teams use to raise their security bar.

Between sessions, stop by the Security Lounge in the Convention Lounge at the Wynn to recharge, meet other security practitioners, and visit kiosks from select AWS security partners.

Security sessions all week

You don’t have to wait for Thursday. Security sessions run every day, with 12 on Monday, 16 on Tuesday, 9 on Wednesday, and 3 on Friday, not counting repeats. Monday and Friday sessions are all at the Wynn. Tuesday and Wednesday sessions are spread across the Wynn, MGM Grand, and Caesars Palace, so check the venue when you build your agenda.

Sessions for every security domain

Whatever part of security you work in, the catalog has sessions for it. Here are a few to start with in each domain, and the full list can be found in the session catalog.

Application security and AWS Continuum

AWS Continuum runs through the application security sessions this year.

  1. SEC427 is a Monday 12:00 PM code talk that threat models an agentic development workflow from user story to deployment with AWS Continuum.
  2. SEC312 is a Tuesday 3:30 PM workshop where you run an on-demand penetration test against a live application with AWS Continuum.
  3. SEC311 is a Thursday 1:00 PM builders’ session that wires AWS frontier agents into an automated find-and-fix security loop.
  4. SEC384 is a Thursday 2:30 PM breakout on how AWS Continuum discovers, validates, and fixes code vulnerabilities in one workflow. SEC304 and SEC426 go deeper on AWS Continuum on Tuesday and Thursday.

Threat detection and incident response

  1. SEC323 is a Tuesday 3:30 PM workshop where you recover from a simulated ransomware event and prove the restore is clean.
  2. SEC405 is a Thursday 12:00 PM builders’ session that takes a vulnerable application from discovery to fix with Amazon Inspector, AWS Continuum, and Amazon GuardDuty.
  3. SEC501 is a Thursday 1:00 PM breakout that goes inside the research behind the GuardDuty detection engine.
  4. SEC390 is a Thursday 4:00 PM breakout on how Woodside handed SOC monitoring to AWS Security Incident Response to focus on threat hunting.

Identity and access management

  1. SEC388 is a Monday 10:00 AM breakout where the National Institutes of Health shares how it manages identity lifecycle across clouds.
  2. SEC424 is a Tuesday 2:30 PM chalk talk on how IAM evaluates your policies on every request.
  3. SEC362 is a Thursday 8:00 AM workshop where you build authentication, authorization, and audit for AI agents.
  4. SEC419 is a Thursday 11:30 AM chalk talk on OAuth delegation patterns for agents with Amazon Bedrock AgentCore Identity.

Cloud governance

  1. SEC302 is a Monday 10:00 AM breakout on building a governance foundation for AI workloads that grows with autonomous agents.
  2. SEC349 is a Thursday 8:30 AM workshop where you build a layered controls stack for a fleet of agents.
  3. SEC374 is a Thursday 1:30 PM breakout on how Moeve turned natural language into enforced governance controls.
  4. SEC351 is a Friday 9:00 AM breakout on running governance across AWS and other clouds as one operation.

Network and application protection

  1. SEC364 is a Tuesday 1:00 PM breakout on how Coupang secures its software and AI supply chains with AWS Network Firewall.
  2. SEC303 is a Wednesday 10:00 AM breakout on the network security capabilities AWS built for agentic workloads.
  3. SEC363 is a Thursday 12:00 PM breakout on what’s new in Amazon Route 53 Resolver DNS Firewall.
  4. SEC313 is a Thursday 2:30 PM builders’ session where you set up the AWS Network Firewall proxy for secure egress.

Data protection

  1. SEC206 is a Thursday 1:00 PM breakout on meeting digital sovereignty requirements with the AWS European Sovereign Cloud.
  2. SEC207 is a Thursday 2:30 PM lightning talk where Capital One explains how it runs payment cryptography in the cloud.
  3. SEC316 is a Thursday 4:00 PM builders’ session where teams race through post-quantum migration challenges.
  4. SEC204 is a Friday 11:30 AM breakout where AWS and DXC Technology share how to prepare for post-quantum cryptography at scale.

AI security

  1. SEC328 is a Tuesday 11:30 AM chalk talk on enforcing AI guardrails across your organization without slowing teams down.
  2. SEC237 is a Thursday 8:30 AM breakout on how AWS foundational security extends into AI services.
  3. SEC343 is a Thursday 12:00 PM builders’ session where you watch an MCP tool poisoning attack and build the defenses against it.
  4. SEC341 is a Thursday 3:00 PM workshop where you layer defenses for an AI agent from the prompt to tool execution.

Culture of security

Three sessions focus on how security teams work in the agentic era.

  1. SEC425 is a Wednesday 9:00 AM breakout on how AWS uses automated reasoning and neurosymbolic AI to prove security properties.
  2. SEC342 is a Thursday 11:30 AM breakout on the lessons the AWS Office of the CISO learned from Project Glasswing.
  3. SEC350 is a Thursday 4:00 PM chalk talk on building trust between people when agents work on your behalf.

Session types

Sessions come in several formats, and most security sessions sit under the Security, Identity, and Compliance (SEC) topic in the event catalog. If you attend in person, lightning talks are walk-up only. For every other format, you can reserve a seat in the event portal (login required) or join as a walk-up based on availability.

Format What to expect
Breakout sessions 60-minute presentations led by AWS security experts and customers
Chalk talks 60-minute interactive sessions where AWS experts whiteboard and take your questions
Code talks 60-minute sessions built around live coding and technical implementation
Builders’ sessions 60-minute small-group sessions where you build alongside an AWS expert
Workshops 120-minute hands-on sessions where you work directly with AWS services
Lightning talks 20-minute talks on a single focused topic

Security, Identity, and Governance track sessions

You can find all of the Security, Identity, and Governance track sessions listed on the agenda page. Dates and venues can change, so check the event portal for the latest details.

Beyond the sessions

Security kiosks in the AWS Village

If you’d like to speak to AWS experts on something you’re working on, or find out the ins and outs of a specific AWS security service, find the security kiosks in the AWS Village in the Expo. Here you can talk with AWS experts about identity and access management, threat detection and response, governance and compliance, application security, and network security. The Expo opens Monday, November 30 at 4:00 PM and runs daily through Thursday, December 3.

Security meetups

Join a security meetup on Tuesday, Wednesday, or Thursday, most of them at the Wynn. Meetups are small-group conversations with AWS experts, with no slides, on topics such as detection and response at machine speed, data protection and the post-quantum shift, and identity for humans, workloads, and AI agents.

Receptions

There are several Security, Identity & Governance receptions over the course of the week so be sure to speak with you AWS account manager and ask for the details. Most of these events require pre-registration so don’t wait!

First time at re:Invent?

For those of you that have never attended a re:Invent before, these four tips will help.

  1. Pick up your badge on Sunday if you can, since badge pickup opens before the first sessions.
  2. Download the AWS Events mobile app to build your agenda.
  3. While the vast majority of Security sessions are located at the Wynn, plan your route between venues, since walking between hotels on the Strip takes longer than it looks.
  4. On Thursday, plan to spend your day at the Wynn, where every security session that day takes place.

See you in Las Vegas

Start building your security agenda today in the re:Invent security catalog. Recordings of many breakout sessions will be posted on the AWS Events YouTube channel after the event.

See you in Las Vegas.

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


Brandon Carroll

Brandon Carroll

Brandon is a Senior Technical Product Marketing Manager at AWS, where he leads go-to-market for network security services including AWS Network Firewall. He holds CCIE Security #23837 and wrote Securing the AWS Cloud (Wiley, 2025), one of six books he has authored on networking and security.

Introducing the new AWS WAF security analytics dashboard

Post Syndicated from Praveen Hosur Narayana Gupta original https://aws.amazon.com/blogs/security/introducing-the-new-aws-waf-security-analytics-dashboard/

When blocked requests spike or a customer reports being locked out, a security team has to work out what is happening, where it is happening, and if AWS WAF is making the right call. Currently, that usually means opening each protection pack (web ACL) in turn, across domains, AWS Regions, and Amazon CloudFront distributions, or querying AWS WAF logs. In 2024, we introduced the AWS WAF traffic overview dashboard, which gives you a near real-time view of each protection pack (web ACL). Today, we’re introducing the AWS WAF security analytics dashboard: a single global page that you can use to investigate traffic across all of your protection packs (web ACLs), Regional resources, Amazon CloudFront distributions and then act on what you find. The dashboard can help you investigate and contain threats faster and reduce false positives that block real customers. You don’t need to build or maintain your own log analytics pipeline to do it.

In this post, we introduce the new dashboard and walk you through two use cases: investigating a traffic spike, and tuning your rules to reduce false positives.

Introduction to the security analytics dashboard

To open the dashboard, go to the AWS WAF console and choose Security analytics in the navigation pane. The dashboard shows request data across all protection packs (web ACLs) in your account. You can narrow it to specific protection packs (web ACLs) and set the time range. As shown in the following figure, at the top of the page, you can see total requests split by action (Allow, Block, CAPTCHA, and Challenge). The Requests chart shows how the traffic changes over time. Below that, traffic breakdown widgets show the top values for each dimension. The dashboard is built on full-fidelity request data, not samples.

Figure 1: The security analytics dashboard across all protection packs

Dimensions

You can filter, group, and break down traffic by dimensions that include, but aren’t limited to, the following:

  • Who’s sending traffic – Client IP, country, Autonomous System Number (ASN), user-agent, and JA4 TLS fingerprints
  • What they’re requesting – Host, path (URI), protected resource (Amazon CloudFront distribution, AWS Application Load Balancers, and others), Region, or protection pack (web ACL)
  • How AWS WAF responded – Action, rule triggered, labels, or response code

We’ll continue to add dimensions to the security analytics dashboard over time. The rest of this post refers to the preceding dimensions by the names used here. Two dimensions deserve a closer look:

  • Host – Many customers think about their applications by domain rather than by protection pack (web ACL). Grouping or filtering by Host will show you which of your domains are under attack or if a spike is hitting www, the API, or a staging site, even when one protection pack (web ACL) protects several domains or one domain spans several protection packs (web ACLs).
  • Labels – Labels are metadata that AWS WAF rules add to the requests they inspect. AWS Managed Rules for AWS WAF add them (for example, Bot Control labels for bot category, verification status, and signals such as non_browser_user_agent), and you can create rules to add custom labels. Because labels are recorded even when a rule only counts, filtering by a label shows you what a rule detected across all of your protection packs (web ACLs), without changing how your traffic is handled.

Controls

The dashboard is built around a few controls:

  • Filter requests – Combine conditions on any dimension, using Equals or Does not equal. Filters apply to the whole dashboard: the action split, the Requests chart, every widget, and the request list update to match. Your dashboard view is saved in your browser.
  • Group by – Split the Requests chart by any dimension, such as Host, Rule triggered, Country, or JA4, to see how traffic changes over time.
  • Show only, Exclude, and Block – Select any value in any widget to focus on it, remove it from view, or block it. For example, you can block a high-risk or unexpected IP address, or block traffic from a country, directly from the dashboard.
  • Requests and detections – Review the individual requests behind the charts. For each request, see HTTP request fields such as host, path, headers, user agent, and JA4 fingerprint. You can also see which detections and labels matched and whether each action was enforced or only counted . Previously, this level of detail meant working from a limited sample of requests or setting up and querying your own AWS WAF logs. Now it’s available directly on the dashboard.

Together, these controls help you answer questions such as:

  • What share of traffic across all your protection packs (web ACLs) and domains is being blocked, challenged, or allowed, and how is it changing?
  • Which rules are doing the most work, and are any of them blocking legitimate users?
  • Which IP addresses, ASNs, JA4 fingerprints, or countries are behind a spike, and what are they targeting?
  • How much of your traffic comes from bots, and are the bots verified?

Use case 1: Investigate a traffic spike

Suppose you receive an alert that blocked requests have increased. To investigate:

  1. Go to the Security analytics page in the AWS WAF console and select All protection packs.
  2. Assess the scope: The action split shows the overall block rate. Group the Requests chart by Host to see which domains are affected and check the Protection pack widget to see whether one application or several are involved. A campaign hitting your storefront, API, and media domains at the same time calls for a different response than a problem on a single endpoint.
  3. Identify the source: Group the Requests chart by Rule triggered to see which rules are mitigating the traffic and when they started firing. Then check the source and request dimensions. If one IP address sends a disproportionate share of requests, or many IP addresses share one JA4 fingerprint, the traffic likely originates from a single automated actor.

    Figure 2: Requests grouped by Rule triggered, showing which rules fired and when

  4. Confirm with request-level evidence: When you find an unexpected value, select it and choose Show only to filter the entire dashboard to it.
  5. Then confirm what you’re seeing in Requests and detections. Expanding a request shows all its details, including the HTTP request fields. For example, a curl user agent with no Accept-Language header, coming from a cloud hosting ASN, is likely automated traffic.

    Figure 3: Show only, exclude, or block it

After you confirm the source, choose a response that fits the traffic:

  1. One clear source: Choose Block this IP address directly from the dashboard. Use a geographic block only if you don’t expect legitimate customers from that country.
  2. Traffic spread across multiple IP addresses: Add a rate-based rule with a custom aggregation key such as JA4, or use AWS WAF Bot Control.
  3. Known bad actors and application-layer floods: Add the Amazon IP reputation list and the Anti-DDoS managed rule group.
  4. Faster detection time: Create Amazon CloudWatch alarms on AWS WAF metrics. For details, see Monitoring with Amazon CloudWatch.

When the change is in place, return to the dashboard to confirm that requests from that source now show the Block action.

Use case 2: Tune your rules and reduce false positives

Rules can fail in two ways: by blocking legitimate users, or by only counting traffic that they should stop. Filters and labels help you find both.

If you suspect that a rule is blocking a broad population, such as many distinct clients sending only a few requests each, enter Rule triggered = <rule name> in Filter requests. The dashboard shows only the requests that the rule acted on. Review the Country, Host, and Path (URI) breakdowns to understand who the blocked clients are and what they requested. If the blocked clients look like your typical customers, with common browsers, expected countries, and checkout or login paths, consider adding a scope-down statement to the rule or changing the action to Challenge.

Figure 4: The dashboard filtered to a single rule with Filter requests

Evaluate rules before you enforce them: When you evaluate a managed rule group in Count mode, filter by its labels to see exactly which requests each rule matched. For example, filter by a Bot Control label such as awswaf:managed:aws:bot-control:bot:unverified, then check Host, Path (URI), and User-Agent to see what those bots are after. Use Exclude on labels for known-good traffic, such as bot:verified search engine crawlers, to keep them out of your review.

On the Detections tab of Requests and detections, rows marked Counted, not enforced show what a rule would block. If the matches aren’t partners or monitoring tools, consider changing the rule action to Block.

Figure 5: Record details for a single request, including host, JA4 fingerprint, and protection pack

After you change a rule, compare the same time window on the dashboard to confirm that the rule now affects only the traffic you intended.

Conclusion

The traffic overview dashboard shows you what changed in each protection pack (web ACL). The security analytics dashboard helps you understand why it changed, and lets you act on it from the same page, across all of your protection packs (web ACLs), domains, Regions, and Amazon CloudFront distributions. Filters, grouping, and labels explain the traffic, and request-level evidence helps you act with more confidence. Together, they can help you investigate faster, reduce how often real users are blocked by mistake, and confirm that each rule changes affect the traffic you intend.

The security analytics dashboard is available at no extra cost in all AWS Regions where AWS WAF is offered, and shows up to 21 days of request data. To get started, open the AWS WAF console and choose Security analytics.

If you have feedback about this post, submit comments in the Comments section below.

Related reading

To learn more about visibility and bot management in AWS WAF, see the following resources:

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.

Praveen Hosur Narayana Gupta

Praveen Hosur Narayana Gupta

Praveen is a Solutions Architect at AWS specializing in Edge, Networking, and Security services. He helps customers build secure, high-performance applications and protect them from Bots and DDoS attacks. Outside work, he’s an avid bird watcher and wildlife photographer.

Mohit Mysore

Mohit Mysore

Mohit is a Senior Technical Account Manager at AWS specializing in network and edge security. He helps customers protect their applications and strengthen their security posture at scale. Outside work, he enjoys traveling, watching soccer and Formula 1, and spending time with his family.

Kaustubh Phatak

Kaustubh Phatak

Kaustubh is a product leader specializing in AI/ML systems and enterprise security solutions. He has led cross-functional teams in deploying AI-powered products at scale, working closely with security architects and CISOs to address the intersection of AI innovation and cybersecurity risk. His work focuses on translating complex technical capabilities into business value, particularly in emerging technology domains where traditional frameworks don’t apply.

Introducing Amazon EMR Serverless Flex: Run non-urgent Spark jobs at a discount

Post Syndicated from Neil Mukerje original https://aws.amazon.com/blogs/big-data/introducing-amazon-emr-serverless-flex-run-non-urgent-spark-jobs-at-a-discount/

With Amazon EMR Serverless, you can run Apache Spark applications without provisioning or managing clusters. You submit jobs, EMR Serverless allocates the compute, scales it during execution, and releases it when the job finishes. There are no clusters to tune and no idle capacity to pay for. Since launch, customers have used EMR Serverless to run production extract, transform, and load (ETL) pipelines, machine learning (ML) feature engineering, and large-scale data transformations, replacing Spark clusters that required dedicated engineering effort to operate.

Customers also have workloads that aren’t time-sensitive. On EMR on EC2 or self-managed Spark clusters on EC2, teams use Amazon Elastic Compute Cloud (Amazon EC2) Spot Instances to run these workloads on spare compute capacity at a lower cost. For top EMR customers, EC2 Spot Instances are a key cost-optimization lever, with many running a portion of their workloads on spare capacity. For customers looking to modernize from clusters to serverless to lower their operational overhead, the absence of an equivalent option on EMR Serverless meant they could only move part of their platform. The time-sensitive workloads came over, but the cost-optimized workloads running on spare capacity stayed on EC2 Spot Instances. Spare capacity support on EMR Serverless has been one of the most requested features, with customers telling us it’s a prerequisite for full migration.

Today we are launching Amazon EMR Serverless Flex, a new execution option that runs Spark batch jobs on spare compute capacity at a fixed 60 percent discount compared to standard pricing. With Flex, EMR Serverless now offers two execution options: Standard for workloads that need predictable start times and dedicated resources, and Flex for workloads where cost matters more than execution-time predictability. Customers who previously split their Spark platforms between EMR Serverless and EMR on EC2 or self-managed clusters on Spot Instances can now consolidate onto a single serverless platform. Customers who didn’t consider EMR Serverless at all, because spare capacity support was missing, can now evaluate EMR Serverless as a full replacement for their cluster-based deployments.

Why Flex matters for your Spark platform

When we talk to customers running Spark at scale, we see a common pattern: two tiers of workloads with different cost and reliability requirements.

Time-sensitive production workloads – ETL pipelines that feed dashboards, ML models, and downstream applications on a schedule. These need fast startup, dedicated compute, and predictable completion times. On EMR Serverless, these run on the Standard execution option.

Non-urgent batch workloads – Pre-production validation, test and development runs, backfills, nightly batch transformations, one-time data loads, and recurring reports with generous processing windows. These jobs are cost-sensitive but time-flexible. They need to finish, but not on a strict deadline.

On EMR on EC2 or self-managed Spark clusters on EC2, customers often deploy non-urgent workloads on Spot Instances. But without a spare-capacity option on EMR Serverless, moving to serverless meant giving up the cost lever on non-urgent batch workloads.

What it takes to run Spark on spare capacity today

On EMR on EC2, running Spark on Spot Instances is a shared responsibility between the service and the customer.

What the EMR service provides: EMR on EC2 provides the infrastructure features for running workloads on spare capacity:

  • Instance fleets with Spot allocation strategies (capacity-optimized) that spread capacity requests across instance types and Availability Zones.
  • Graceful decommissioning that gives Spark time to migrate shuffle data and finish running tasks when a Spot Instance receives a 2-minute termination notice.
  • Spark resilience enhancements (decommission-aware task scheduling, exclusion of decommissioning nodes, and shuffle block tracking) that help Spark recover from node loss without getting stuck on fetch failures.

What customers implement: Based on best practices that have evolved over the years, here’s what teams have built and maintained on top of the preceding EMR features:

  • Instance fleet diversification – Select the right mix of instance types across instance variants (m5, m5a, m5d, r5, r5a, r5d) that meet vCPU and memory requirements. Use the Spot Instance Advisor to target types with lower interruption rates. Configure allocation strategies and fallback behavior.
  • Multi-AZ placement – Launch clusters targeting multiple Availability Zones to tap into the capacity in the entire AWS Region.
  • Driver protection with YARN node labels – Configure YARN node labels to pin the Spark driver to On-Demand core nodes, keeping it off Spot task nodes. If the driver lands on a Spot Instance and that instance is reclaimed, the entire job fails. Setting this up requires YARN label configuration, node-label expression settings in Spark, and ongoing validation.
  • Configuring resilience and decommissioning settings – Tune decommissioning timeouts, understand how the Spark resilience enhancements work, and configure them correctly for each workload.
  • Ongoing tuning and debugging – Monitor interruption rates by instance type, adjust fleet composition as Spot pricing shifts, debug capacity-related job failures, and maintain the configuration as EMR release versions change.

What Flex handles for you

EMR Serverless Flex applies all of these spare-capacity best practices on your behalf. You add one parameter to your job submission with no fleet configuration or YARN tuning. EMR Serverless takes on the responsibility of running your workloads on spare capacity:

  • AZ selection – EMR Serverless evaluates spare capacity pools across Availability Zones in the AWS Region and places workers where capacity is most available.
  • Instance diversification – EMR Serverless spreads executors across multiple instance types and generations so that reclamation of one instance type doesn’t hit all workers at once.
  • Driver protection – The Spark driver runs on a dedicated Standard worker that isn’t subject to spare capacity reclamation. The driver holds job state (the directed acyclic graph, stage progress, and task assignments) so protecting it prevents job failure, without YARN node labels to configure.
  • Decommission-aware scheduling and worker exclusion – When a Flex worker receives a 2-minute reclamation notice, EMR Serverless stops scheduling new tasks on that worker and excludes it from future assignments. The Spark resilience enhancements that EMR developed for handling node loss (decommission-aware task scheduling, proactive worker exclusion, and shuffle block tracking) are applied automatically.
  • Automatic task retry – Spark’s built-in fault tolerance retries affected tasks on healthy Flex workers. The job continues without manual intervention.
  • Shuffle offload with Serverless Storage (optional) – With EMR Serverless Storage, shuffle data is written to remote storage instead of local disk. When a reclaimed executor’s tasks are retried, the new executor reads the stored upstream shuffle output instead of recomputing it, reducing the fetch-failure problem for shuffle-heavy jobs.

All existing EMR Serverless capabilities (AWS Lake Formation fine-grained access control, AWS Graviton support, AWS Glue Data Catalog integration, and data source connectors) work the same with Flex jobs.

What happens when you run a Flex job

Here is the life cycle of a Flex job from submission to completion:

  1. Job submission – You submit a Spark job with Flex enabled. EMR Serverless accepts the job and begins acquiring spare compute capacity.
  2. Capacity acquisition – EMR Serverless selects an Availability Zone within the chosen Region where spare capacity is most available and requests workers across a diverse set of instance types and generations. The Spark driver starts on a dedicated Standard worker.
  3. Job execution – Executors run on Flex workers. The job proceeds as it would on Standard using the same Spark runtime and APIs.
  4. If capacity is reclaimed – When a Flex worker receives a reclamation notice, EMR Serverless excludes it and stops scheduling new tasks on it. Spark retries the affected tasks on healthy Flex workers. If you have Serverless Storage enabled, retried tasks read stored shuffle data instead of recomputing upstream stages. Billing for the reclaimed worker stops at reclamation.
  5. Completion – The job completes and results are written to the output location.
  6. Failure handling – If no executor joins the driver within 20 minutes of job start, the job fails. To recover from failures, resubmit the job using the best practices you apply to restart a failed job.

How Flex workers are billed

Flex workers are billed at a fixed 60 percent discount on vCPU-hours and memory GB-hours compared to Standard workers. The Spark driver runs on a Standard worker and is billed at the Standard rate. The discount is fixed and unlike EC2 Spot doesn’t fluctuate with supply and demand.

Each worker is billed for the time it was part of the job run, per second with a 1-minute minimum. When a Flex worker is reclaimed, billing for that worker stops. For example, if a 10-minute job runs 20 Flex workers and 3 of them are reclaimed after 5 minutes, you are billed for 17 workers at 10 minutes and 3 workers at 5 minutes.

Flex spend appears as separate line items in AWS Cost Explorer and on your bill, so you can distinguish Flex spend from Standard spend. Flex also works with job-level cost allocation tags, so you can continue attributing costs by team or project. For pricing details, see Amazon EMR pricing.

Flex in practice: Resilience and cost

We ran a 103-query decision-support benchmark (derived from TPC-DS 1 TB and 3 TB scale factor) on Spark to compare Flex and Standard at two data scales. Both runs used the same queries, worker configuration, and release label (emr-7.14.0).

Scale factor Execution Queries completed Wall-clock time Estimated cost Total executors used Executors reclaimed Task failures
1 TB Standard 103 of 103 11.5 min $5.68 12 0 0
Flex 103 of 103 12.3 min $2.07 (64% savings) 15 1 0
3 TB Standard 103 of 103 12.4 min $6.29 12 0 0
Flex 103 of 103 16.1 min $2.32 (63% savings) 21 1 0

Resilience: In each Flex run, we observed one executor reclaimed mid-job. EMR Serverless excluded the reclaimed worker, and Spark retried the affected tasks on healthy executors. All 103 queries completed in both runs, with zero job resubmissions.

Cost: For this benchmark, we saw Flex reduce estimated cost by about 63 percent at both data scales, from $5.68 to $2.07 at 1 TB, and from $6.29 to $2.32 at 3 TB.

Note: The actual savings and frequency of reclamations will vary by workload, Region, and available spare capacity at the time of execution. We recommend running your own workloads on both Flex and Standard to establish a baseline. This workload is derived from the TPC-DS Benchmark and isn’t comparable to published TPC-DS Benchmark results, as this implementation doesn’t comply with all requirements of the TPC-DS Benchmark.

Runtime tradeoff – The 1 TB Flex run took 7 percent longer than Standard. The 3 TB run took 30 percent longer. The gap widened at larger scale because the reclaimed executor’s tasks needed more time to recompute. Flex jobs can also take longer to start if spare capacity isn’t immediately available. Flex works well for any job where the completion deadline is flexible, including short jobs. A job that runs in 10 minutes on Standard and 12 minutes on Flex is a good candidate if it doesn’t have a strict service level agreement (SLA).

Getting the best results from Flex

Three practices we recommend to get the most from Flex:

Avoid top-of-the-hour peaks

We observe that spare capacity availability drops when many jobs start simultaneously at the top of each hour. Shifting your job start times by even a few minutes (for example, submitting at 9:20 instead of 9:00) reduces contention for spare capacity and improves the chance of a fast start.

Run outside business hours when possible

Spare capacity is most available when overall compute demand is lower. We see the best availability when customers schedule non-urgent workloads to run after 6:00 PM in the Region, or on weekends, giving Flex jobs access to deeper capacity pools with fewer interruptions.

Use Serverless Storage

EMR Serverless Storage writes shuffle data to remote storage, so retried tasks read stored intermediate results instead of recomputing upstream stages. This reduces the runtime cost of interruptions on shuffle-heavy jobs and adds another layer of resilience.

Getting started

Flex is a job-run setting. You create your EMR Serverless application as usual and add one parameter when submitting a job:

aws emr-serverless start-job-run \
    --application-id <application-id> \
    --execution-role-arn <job-role-arn> \
    --flex-execution '{"enabled": true}' \
    --job-driver '{
        "sparkSubmit": {
            "entryPoint": "s3://<bucket>/scripts/my-spark-job.py"
        }
    }'

In EMR Studio, select the Enable Flex execution checkbox when submitting a job, as shown in the following screenshot:

EMR Studio job submission form with the Enable Flex execution checkbox selected

Figure 1: Enable Flex execution checkbox in the EMR Studio job submission form

You can run Flex and Standard jobs on the same application. For step-by-step instructions, see the Amazon EMR Serverless User Guide.

Conclusion

In this post, we shared how Amazon EMR Serverless Flex runs non-urgent Spark batch jobs on spare compute capacity with built-in resilience features, closing a gap that previously blocked customers from modernizing their entire Spark platforms onto EMR Serverless.

To get started, pick a non-critical job, submit it with --flex-execution '{"enabled": true}' and compare the cost and runtime against your Standard baseline. For more detail, see the Amazon EMR Serverless User Guide.


About the authors

Neil Mukerje

Neil Mukerje

Neil is a Principal Product Manager at Amazon Web Services. He is driven to build experiences that let customers achieve their goals efficiently. In his spare time, he enjoys reading, hiking, and tinkering with technology.

Manjeet Chayel

Manjeet Chayel

Manjeet serves as Big Data Manager, Worldwide Specialist Solutions Architects at AWS, where he leads a global team of specialist architects driving customer-facing engagements across Amazon EMR, AWS Glue, and the broader Big Data Analytics portfolio.

Announcing 30-minute timeout for on-demand AWS Lambda Event Functions

Post Syndicated from Tarun Rai Madan original https://aws.amazon.com/blogs/compute/announcing-30-minute-timeout-for-on-demand-aws-lambda-event-functions/

AWS Lambda now supports a 30-minute function timeout for Event Functions that run on demand, doubling the previous 15-minute limit for synchronous, asynchronous, and event source mapping (ESM) invocations. On Lambda Managed Instances, synchronous invocations also support up to 30 minutes, while asynchronous and ESM invocations keep the 90-minute timeout we announced in September 2026. You can now run AI inference, media transcoding, and financial calculations on Lambda for spiky or steady-state traffic without re-architecting your applications. The new timeout also applies when you use Lambda durable functions or invoke your functions from AWS Step Functions Standard workflows.

Evolution of function timeout on Lambda

Lambda launched in 2014 with a 60-second function timeout, which we extended to 5 minutes in 2015 and to 15 minutes in 2018.

Lambda now offers three form factors: Event Functions, Web Functions, and MicroVMs. Event Functions process events from more than 200 AWS event sources through synchronous, asynchronous, and ESM invocations. With Web Functions, you can run HTTP servers on Lambda with an HTTP-native, multi-concurrent programming model and opt-in multi-Region endpoints. MicroVMs give each user or session an isolated environment for running user-generated or AI-generated code.

By default, all three form factors run on demand, with Lambda provisioning compute as requests arrive. For steady-state traffic, Event Functions can also run on the Lambda Managed Instances capacity provider. With Lambda Managed Instances, you can process multiple concurrent requests per instance and choose specialized compute configurations, without managing infrastructure. You can also use EC2 pricing options such as AWS Savings Plans and Reserved Instances. Figure 1 shows the form factors.

The three Lambda form factors: Event Functions, Web Functions, and MicroVMs

Figure 1: Lambda form factors

Each form factor has its own duration limit (Table 1). Until today, Event Functions had a 15-minute timeout, except for asynchronous and ESM invocations on Lambda Managed Instances, which we extended to 90 minutes in September 2026.

Lambda durable functions run on demand and on Lambda Managed Instances, and provide application-level checkpointing and workflow-as-code. Your code saves execution state with step() and wait() operations and resumes from the last checkpoint after a failure. A durable execution (the complete lifecycle of a durable function) can run for up to 1 year, but each invocation within it is bound by the function timeout.

Customers told us that 15 minutes was still too short for many Event Functions workloads that run on demand, and for synchronous invocations on Lambda Managed Instances. Agentic AI requests that chain model calls and tool invocations can take longer than 15 minutes to return a result. Media transcoding and file conversion jobs often run past 15 minutes when input files are large. Financial calculations such as Monte Carlo simulations, bond pricing, and portfolio risk analysis are memory-intensive and need more continuous execution time. Report generation across multiple data sources can also exceed 15 minutes during peak volumes. ETL steps triggered by Amazon Simple Queue Service (Amazon SQS) or Amazon Simple Storage Service (Amazon S3) events can run just as long. Many of these workloads have spiky traffic that doesn’t justify steady-state capacity on Lambda Managed Instances.

With today’s launch, Event Functions support up to 30 minutes for synchronous, asynchronous, and ESM invocations, and up to 90 minutes for asynchronous and ESM invocations on Lambda Managed Instances. Table 1 shows the maximum durations across Lambda form factors.

Duration Event Functions Web Functions MicroVMs
On demand (default) Lambda Managed Instances
Without durable execution

Synchronous: 30 minutes

Asynchronous: 30 minutes

ESM: 30 minutes

Synchronous: 30 minutes

Asynchronous: 90 minutes

ESM: 90 minutes

15 minutes 8 hours (running and suspended)
With durable execution

Synchronous: 30 minutes

Asynchronous: 1 year

ESM: 30 minutes

Synchronous: 30 minutes

Asynchronous: 1 year

ESM: 90 minutes

– –

Table 1: Supported durations on Lambda form factors

Configuring the 30-minute function timeout

You can configure any Event Function with a timeout of up to 30 minutes (1,800 seconds). For asynchronous and ESM invocations on Lambda Managed Instances, you can configure up to 90 minutes (5,400 seconds). Lambda rejects higher values with a validation error. Your function runs exactly as before, with the same runtime, handler, IAM execution role, and virtual private cloud (VPC) configuration. The Init phase keeps its existing limits of 10 seconds for functions that run on demand and 15 minutes on Lambda Managed Instances. Provisioned concurrency and Lambda SnapStart, which aren’t available on Lambda Managed Instances, keep their 15-minute initialization limit.

To set the timeout, update your function configuration using the AWS Command Line Interface (AWS CLI):

aws lambda update-function-configuration \
--function-name my-demo-function \
--timeout 1800 \
--region us-east-1

To set the timeout in an AWS Serverless Application Model (AWS SAM) template, use the Timeout property:

MyFunction:
  Type: AWS::Serverless::Function
  Properties:
    FunctionName: my-demo-function
    Runtime: python3.14
    Handler: app.handler
    Timeout: 1800
    MemorySize: 2048

You can also update the timeout in the Lambda console under Configuration > General configuration (Figure 2), where synchronous test invocations now run for up to 30 minutes. If you use an AI coding assistant such as Kiro, Claude Code, or Codex, you can install the Agent Toolkit for AWS and configure the timeout with natural language prompts.

Lambda console General configuration page with the function timeout set to 30 minutes

Figure 2: Configuring Lambda function timeout

The new timeout applies to invocations that start after you update the function. For event source mappings, allow a few minutes for the change to propagate. Amazon CloudWatch metrics, AWS CloudTrail, and AWS X-Ray continue to capture the full invocation lifecycle. For details, see monitoring Lambda functions and monitoring durable functions.

For Event Functions that run on demand, the 30-minute timeout is available in all commercial AWS Regions. For synchronous invocations on Lambda Managed Instances, it is available in all AWS Regions where Lambda Managed Instances is available. Standard AWS Lambda pricing applies.

30-minute timeout and durable functions

The 30-minute function timeout and durable functions are complementary. The function timeout (--timeout) controls how long each individual invocation can run, whereas the durable execution timeout (ExecutionTimeout in --durable-config) controls the total elapsed time from execution start to completion. On replay after a failure, the function re-executes from the beginning and skips completed steps.

Functions that run on demand: Each durable function invocation can run for up to 30 minutes, whether you invoke it synchronously, asynchronously, or through an event source mapping. When you invoke the function asynchronously, the durable execution can run for up to 1 year. When you invoke it synchronously through the Invoke API or a function URL, the durable execution is limited to 30 minutes, and Lambda rejects higher values. ESM invocations have the same 30-minute limit.

Lambda Managed Instances: Synchronous invocations can run for up to 30 minutes, and asynchronous and ESM invocations can run for up to 90 minutes. When you invoke the function asynchronously, the durable execution can run for up to 1 year. The durable execution is limited to 30 minutes for synchronous invocations and 90 minutes for ESM invocations.

For idempotent jobs, such as an ETL step triggered by Amazon SQS, the extended timeout alone might be enough. A failed invocation returns the message to the queue for a fresh attempt. For jobs where re-execution is expensive, combine the extended timeout with durable functions. A 25-minute inference run that fails at minute 22 restarts from zero without checkpoints, but resumes from its last checkpoint with durable functions.

Invocation behavior: Synchronous, asynchronous, and event source mappings

Synchronous invocations (up to 30 minutes): Synchronous invocations now support up to 30 minutes, whether the function runs on demand or on Lambda Managed Instances. If another AWS service invokes your function synchronously, that service applies its own timeout, so verify that it supports the longer duration before you raise the function timeout. Set your client’s read and socket timeouts longer than the function timeout. For example, increase the read timeout of your AWS SDK client when you call the Invoke API. On Lambda Managed Instances, Lambda applies the 30-minute limit to synchronous invocations even if the function timeout is higher, and the GetFunctionConfiguration API reports the configured value.

Asynchronous invocations (up to 30 minutes, or up to 90 minutes on Lambda Managed Instances): If the function fails or times out, Lambda applies your configured retry policy (up to two retries by default). It then routes failed events to your dead-letter queue or on-failure destination.

Event source mappings (up to 30 minutes, or up to 90 minutes on Lambda Managed Instances): For SQS, set the queue’s visibility timeout to at least six times the function timeout, so at least 3 hours for a 30-minute function. This gives Lambda enough time to retry if a function is throttled while it processes a previous batch. Lambda validates this when you create the event source mapping, but it doesn’t prevent later changes to queue or function settings that create a mismatch.

For Amazon Kinesis Data Streams and Amazon DynamoDB Streams, Lambda processes one batch per shard at a time by default, so longer invocations slow how quickly each shard is read. Monitor the IteratorAge metric and increase the parallelization factor if records start to back up. Longer invocations also mean that a failure late in a batch wastes more work. Enable partial batch failure reporting so that Lambda retries only the failed records. You can use it with SQS, Amazon Kinesis, DynamoDB Streams, Amazon Managed Streaming for Apache Kafka (Amazon MSK), and self-managed Apache Kafka event source mappings.

Invocations from Amazon MQ (ActiveMQ and RabbitMQ) and Amazon DocumentDB (with MongoDB compatibility) event source mappings remain limited to 14 minutes. The same limit applies to Kafka event source mappings that were created before November 19, 2026, and don’t use provisioned mode. To use the 30-minute timeout with Kafka, create a new event source mapping or turn on provisioned mode for your existing one. For these mappings, keep the function timeout at 14 minutes (840 seconds) or less.

Considerations and best practices

Longer-running functions need extra care with concurrency and components that can expire mid-invocation, such as network connections and credentials.

Concurrency: Concurrency equals requests per second multiplied by average duration in seconds. At the same request rate, a function that runs for 30 minutes instead of 15 needs twice the concurrency. For example, 1 request per second at 30 minutes each needs 1,800 concurrent executions. Check your account concurrency quota and reserved concurrency settings before you raise the timeout. On Lambda Managed Instances, check the maximum scaling limits of your capacity provider.

Networking: Make sure idle connection timeouts on downstream services such as Amazon Relational Database Service (Amazon RDS), Amazon ElastiCache, and external APIs accommodate the full function duration. If your function routes traffic through a NAT gateway, which drops idle connections after 350 seconds, send keep-alive packets. For long synchronous invocations, also turn on TCP keep-alive on the calling client. DNS caching depends on your runtime and HTTP client. For example, the AWS SDK for Java relies on the JVM DNS cache, which on some configurations never refreshes. Set a short DNS TTL, such as 5 seconds for the JVM, and configure custom HTTP clients to re-resolve hostnames.

Credentials: If your function acquires temporary credentials or tokens, verify they remain valid for the full execution duration or refresh them in the background.

Idempotency: Lambda does not guarantee exactly-once processing, and longer-running functions widen the window for retries and duplicate deliveries. Use Powertools for AWS Lambda to make operations such as payments or database writes idempotent. In durable functions, steps have at-least-once execution semantics by default. The SDK skips completed steps during replay, but steps that fail before checkpointing might re-execute. You can use execution names as idempotency keys for durable functions.

Conclusion

The 30-minute function timeout brings longer continuous execution to Event Functions that run on demand and to synchronous invocations on Lambda Managed Instances. It complements the 90-minute timeout for asynchronous and ESM invocations on Lambda Managed Instances that we launched in September 2026. Workloads such as AI inference, media transcoding, and report generation that exceed 15 minutes can now run on Lambda without architectural workarounds, for spiky or steady-state traffic. If your workloads need a longer timeout, let us know on the AWS Lambda Roadmap GitHub page.

To get started, update your function’s timeout configuration and deploy. For details, see Configure Lambda function timeout in the AWS Lambda Developer Guide. For sample code that shows long-running functions with durable checkpointing, see durable functions examples. To learn more, visit the AWS Lambda product page.

 


About the authors

Tarun Rai Madan

Tarun Rai Madan

Tarun is a Principal Product Manager at Amazon Web Services (AWS), where he leads product areas across AWS Serverless Compute, including developer and agentic experiences, event-driven data ingestion, orchestration, and compute for data-intensive workloads. His work centers on removing infrastructure complexity so developers can concentrate on their differentiated business logic. Before joining AWS, he was an engineering leader in the semiconductor industry, where he developed high-performance processors for data center, wireless, and automotive applications.

Dan Slusariuc

Dan Slusariuc

Dan is a Software Development Manager at AWS, where he leads the Lambda Frontend team. His team builds the backend services that receive and route Lambda function invocations. He also leads compliance and availability for Lambda. In his prior role, Dan was a Software Development Engineer in Amazon Advertising, where he helped build the engine that generates banners for products listed on Amazon.

Snehil Ameta

Snehil Ameta

Snehil is a Software Development Engineer at AWS, where he works on AWS Lambda. He focuses on Lambda scalability and availability, and leads capabilities such as Lambda response streaming and Lambda Managed Instances. In his prior role, Snehil worked in Amazon seller services, where he helped build its recommendation service.

Monitor the efficiency and availability of accelerated computing instances with Amazon EC2 Detailed Monitoring and performance status checks

Post Syndicated from Caroline Frost original https://aws.amazon.com/blogs/compute/monitor-the-efficiency-and-availability-of-accelerated-computing-instances-with-amazon-ec2-detailed-monitoring-and-performance-status-checks/

Amazon Elastic Compute Cloud (Amazon EC2) accelerated computing instances run some of the most demanding workloads customers operate, from large model training and distributed fine-tuning to high-throughput, live inference. These customers seek high availability and performance to make sure their training and inference run efficiently. To meet their performance goals, customers require visibility into the efficiency and performance of each accelerated computing chip in their fleet.

For example, central infrastructure or machine learning teams often operate accelerated computing capacity for many application teams. These infrastructure teams need a clear view of utilization and health across every instance in their fleet even if they don’t develop the applications running on those instances. They are often responsible for how efficiently that capacity is used and for hardware health, while application teams own the workload. Customers asked us to provide foundational telemetry for their accelerated computing efficiency and status that doesn’t require setup within the instance and complements their in-guest tooling.

Amazon EC2 now reports one-minute graphics processing unit (GPU) metrics through Detailed Monitoring and surfaces recoverable conditions with performance status checks. One-minute GPU metrics in Amazon EC2 Detailed Monitoring report per-GPU utilization and thermal data to Amazon CloudWatch, so you can identify underused capacity and tune workloads for cost and throughput. Performance status checks report recoverable hardware conditions, such as a GPU memory error, to help you manage GPU performance.

Feature overviews

Amazon EC2 reports GPU metrics and performance status checks without an in-guest agent and without using instance compute. These capabilities are available on supported NVIDIA GPU-based accelerated computing instance types. For the metrics supported on each instance family, see the Amazon EC2 Detailed Monitoring documentation.

One-minute accelerated computing metrics extend EC2 Detailed Monitoring and are published to CloudWatch as OpenTelemetry Metrics or CloudWatch Metrics. The metric name you add to a category determines which one CloudWatch publishes: include GPUUtilization for a CloudWatch Metric, instance.gpu.utilization for an OpenTelemetry Metric, or both names to publish both. Amazon EC2 publishes each metric to CloudWatch at two levels: one series for the instance, identified by InstanceId, and one series for each GPU, identified by InstanceId and GpuId. GpuId is the GPU UUID, which you can match to a device by running nvidia-smi -L on the instance.

Performance status checks add a fifth status check to the existing Amazon EC2 product check suite of system, instance, attached EBS, and application status checks. The check reports recoverable hardware issues that affect accelerated computing performance while the instance might remain running and reachable. It surfaces through the EC2 console, through DescribeInstanceStatus, and in CloudWatch metrics.

Evaluating accelerated computing utilization and performance with EC2 Detailed Monitoring

Amazon EC2 Detailed Monitoring reports per-GPU measurements, including compute activity, memory use, temperature, and data movement.

GPU utilization metrics report different aspects of GPU use. GPUPowerUtilization is available by default and reports active power use. Power utilization scales with the depth of work the GPU performs. Compare it with more granular utilization metrics to see how efficiently your workload uses the GPUs. GPU utilization shows the percentage of time the GPU was running work. Because a busy GPU might use only a fraction of its streaming multiprocessors (SMs), compare it with SM utilization to see how much of the compute capacity the workload uses. Memory utilization shows how much of the GPU’s memory capacity is in use, helping you assess memory headroom. Context accumulated time is a running total of the time a process has held the GPU open, whether or not it ran work. Use the CloudWatch metric math expression RATE(m1)/1000000, where m1 is GPUContextAccumulatedTime, to compare context activity with GPU utilization. A result close to 1 with low GPU utilization indicates that a GPU context is held open but idle.

GPU temperature is reported as a percentage of the GPU’s thermal throttle limit, and memory temperature as a percentage of the memory’s critical temperature. Both metrics can report values above 100 percent when a GPU or its memory runs above the limit. A GPU reduces its clocks when it reaches its throttle limit, so a value at or above 100 percent can explain a drop in throughput. You can correlate these measurements with GPU and interconnect utilization metrics to understand workload performance.

Interconnect utilization metrics show how much of the available bandwidth a workload uses for data movement. Each value reports the busier direction, either send or receive. NVLink utilization measures GPU-to-GPU traffic, such as collective operations in distributed training. It reports all of the GPU’s links together. PCIe utilization measures traffic between the host and the GPU.

Getting started with EC2 Detailed Monitoring

Amazon EC2 Detailed Monitoring publishes instance metrics to Amazon CloudWatch at one-minute intervals without running an agent in the guest operating system. You can publish these as OpenTelemetry Metrics or CloudWatch Metrics.

To get started, create a metric category, an Amazon EC2 resource containing the metrics you want to collect. Next, associate the category with one or more instances. For an existing instance, provide the category ID when you enable Detailed Monitoring with the MonitorInstances API. For a new instance, provide the category ID in the Monitoring object when you call RunInstances or configure a launch template.

The following example creates a metric category for GPU utilization, SM utilization, and memory utilization.

aws ec2 create-metric-category --metrics instance.gpu.utilization instance.gpu.sm_utilization instance.gpu.memory_utilization

The response includes a metric category ID. To associate the category with an existing instance, use MonitorInstances.

aws ec2 monitor-instances --instance-ids <instance-id> --metric-category-ids <metric-category-id>

To associate the category when you launch an instance, include the category ID in the Monitoring object.

aws ec2 run-instances --image-id <ami-id> --instance-type <instance-type> --count 1 --monitoring Enabled=true,MetricCategoryIds=<metric-category-id>

To apply a category to every instance launched from a launch template, include the category ID in the Monitoring object in the launch template data.

aws ec2 create-launch-template --launch-template-name accelerated-computing-monitoring --launch-template-data '{"Monitoring":{"Enabled":true,"MetricCategoryIds":["<metric-category-id>"]}}'

Categories apply to many instances at once, unlike per-instance metric settings. Define the metric set once and associate it wherever it applies. Every associated instance then reports the same set of metrics. Changing a category updates the metric set for every associated instance. The change is eventually consistent across running instances. Add the category to a launch template to apply the same metrics to new instances. This gives you one metric definition per workload type instead of one configuration per host. Metrics apply under standard Amazon CloudWatch pricing.

Managing accelerated computing availability with performance status checks

Accelerated computing hardware can experience non-terminal issues that affect performance and can be resolved with a GPU reset or an instance reboot. For example, when a GPU encounters an uncorrectable memory error, it schedules a repair that remaps the affected row to a spare. The repair takes effect the next time the GPU is reset or the instance is rebooted.

Amazon EC2 performance status checks surface these recoverable hardware conditions. For example, when Amazon EC2 detects a pending GPU memory row remap, the instance’s performance status check reports an impaired status and identifies reboot as the recommended remediation.

You can view performance status checks on the Amazon EC2 console or through DescribeInstanceStatus. Amazon EC2 also publishes the StatusCheckFailed_Performance metric to CloudWatch. A failed performance status check also increments the combined StatusCheckFailed metric. The following example uses the EC2 DescribeInstanceStatus API:

aws ec2 describe-instance-status --instance-ids i-0123456789abcdef0

The following response shows the system, instance, attached EBS, and configured application status checks passing while the performance status check is impaired:

{
  "InstanceStatuses": [
    {
      "AvailabilityZone": "us-east-1a",
      "InstanceId": "i-0123456789abcdef0",
      "InstanceState": {
        "Code": 16,
        "Name": "running"
      },
      "InstanceStatus": {
        "Details": [
          {
            "Name": "reachability",
            "Status": "passed"
          }
        ],
        "Status": "ok"
      },
      "SystemStatus": {
        "Details": [
          {
            "Name": "reachability",
            "Status": "passed"
          }
        ],
        "Status": "ok"
      },
      "AttachedEbsStatus": {
        "Details": [
          {
            "Name": "reachability",
            "Status": "passed"
          }
        ],
        "Status": "ok"
      },
      "ApplicationStatus": {
        "Status": "ok"
      },
      "PerformanceStatus": {
        "Status": "impaired",
        "ImpairedSince": "2026-10-18T14:32:00Z",
        "Remediation": "reboot"
      }
    }
  ]
}

Amazon EC2 sends a scheduled event for the instance if the condition requires further action after a reboot.

To act on these conditions across your accelerated computing instances, create a CloudWatch alarm on StatusCheckFailed_Performance.

  1. The alarm on StatusCheckFailed_Performance fires for an instance in a training cluster.
  2. You confirm the condition and the recommended action with DescribeInstanceStatus, which returns a status of impaired and a remediation of reboot.
  3. You checkpoint the job if applicable, then drain the node and reboot the instance at a planned point. On Amazon Elastic Kubernetes Service (Amazon EKS), cordon and drain the node. In Slurm, set the node to DRAIN.
  4. After the reboot completes, the performance status check returns to ok.

The following command creates that alarm for a single instance.

aws cloudwatch put-metric-alarm --alarm-name performance-status-impaired-<instance-id> --namespace AWS/EC2 --metric-name StatusCheckFailed_Performance --dimensions Name=InstanceId,Value=<instance-id> --statistic Maximum --unit Count --period 60 --evaluation-periods 2 --threshold 1 --comparison-operator GreaterThanOrEqualToThreshold --alarm-actions <sns-topic-arn>

A CloudWatch Metrics Insights alarm evaluates a single query across all matching instances, so one alarm can cover a large fleet. To drive automation without an alarm, poll the DescribeInstanceStatus API.

Rebooting the instance is the recommended remediation. Alternatively, you can reset the affected GPU while keeping the other GPUs running. On the affected instance, run nvidia-smi -q -d ROW_REMAPPER and find the GPU that reports Pending: Yes. Stop all processes using that GPU, then use root permissions to run nvidia-smi -r -i <GPU_UUID>. The performance status check returns to ok shortly after the reset completes.

Bringing it all together

Accelerated computing metrics and performance status checks address complementary questions. Detailed Monitoring metrics help you find idle or underused capacity and tune workloads for cost and throughput. Performance status checks surface recoverable conditions and recommend remediation. Together, these EC2 signals report utilization and status across the capacity infrastructure teams manage, while in-guest tooling provides workload-specific analysis.

For example, a central infrastructure team monitors how efficiently workloads use the accelerated computing instances it manages for several application teams. It finds that one team’s GPUs report lower GPU utilization and power utilization than comparable workloads run by other teams. The infrastructure team shares the finding and relevant workload-tuning practices with the application team. After the application team updates that workload, the infrastructure team uses the same CloudWatch metrics to evaluate the change. The infrastructure team also monitors StatusCheckFailed_Performance across the fleet. When a check reports an impaired status and recommends a reboot, the orchestrator saves the active job, stops placing new work on the instance, and reboots it. After the check returns to ok, the orchestrator makes the instance available for new jobs. Together, these workflows help the team improve GPU utilization, protect job progress, and return affected capacity to service.

Amazon EC2 Detailed Monitoring reports accelerated computing metrics once per minute at the instance and GPU levels. Performance status checks report recoverable conditions at the instance level. Infrastructure teams can use these EC2 signals to monitor utilization and status across the capacity they manage. In-guest tools add process, container, Kubernetes pod, and sub-minute detail.

Amazon EC2 Detailed Monitoring reports metrics for your instances, including GPU utilization metrics reported per GPU. Performance status checks tell you when accelerated computing hardware needs attention. These capabilities help you evaluate utilization and manage the efficiency of your accelerated computing fleets. To learn more, see the Amazon EC2 Detailed Monitoring documentation and the EC2 status checks documentation.


About the author

Caroline Frost

Caroline Frost

Caroline is an Amazon EC2 Senior Product Manager – Technical, focusing on the EC2 instance lifecycle. She is passionate about building capabilities that improve the developer experience and create operational ease and simplicity.

Introducing automatic version upgrades for AWS Glue jobs

Post Syndicated from Keerthi Chadalavada original https://aws.amazon.com/blogs/big-data/introducing-automatic-version-upgrades-for-aws-glue-jobs/

Many organizations run their Apache Spark pipelines on AWS Glue and each new AWS Glue release means another round of version upgrades. New versions bring better performance and new features, but upgrading takes work. For every job, an engineer reviews breaking changes across Spark, Python, and libraries, then runs the job on the new version and confirms that it produces the same results. Many jobs turn out to need no changes, but the team learns that only after doing the work. Across hundreds of jobs, upgrading becomes a project that keeps coming back, so many jobs stay on older versions.

Today, we’re announcing automatic version upgrades for AWS Glue jobs (auto upgrade). When you set a job’s version to auto, AWS Glue analyzes the job, asks for your approval, and moves the job to the latest stable version. Instead of planning, testing, and tracking each upgrade, your team reviews and approves it.

In this post, you learn how auto upgrade works and how to:

  • Turn on auto upgrade for a job and approve the upgrade in the AWS Glue console.
  • Use an AI agent to assess a fleet of jobs, turn on auto upgrade with email notifications, approve the upgrades, and check the results.

How auto upgrade works

Set a job’s GlueVersion to auto to turn on auto-upgrade. The job keeps running as usual on its current version while AWS Glue checks the job for known breaking changes. AWS Glue doesn’t modify your script. When AWS Glue determines that the job needs no code changes, AWS Glue sends you an eligibility summary with the compatibility results for application code, configuration, and dependencies, and requests your approval. The job stays on its current version until you approve. After you approve, AWS Glue runs the job on the new version and checks the upgraded runs against the job’s earlier runs. AWS Glue then sends you an auto upgrade evaluation summary with the results for correctness, performance, and cost. If the upgraded runs pass the checks, AWS Glue completes the upgrade, and all subsequent runs use the new version. If an upgraded run fails, AWS Glue retries the run on the previous version, so your pipeline keeps running, and then reverts the job. For details, see How an auto upgrade evaluation works in the AWS Glue User Guide.

For jobs whose code must change, use generative AI upgrades for Apache Spark in AWS Glue.

Prerequisites

To follow along, you need the following:

  • A user or role with the IAM permissions for auto upgrade.
  • One or more AWS Glue jobs that meet the following requirements:
    • The job is a Spark ETL job (glueetl) on AWS Glue 2.0 or later.
    • The job’s MaxRetries parameter is set to 1 or higher, and job run queuing is turned off.
    • The job is safe to retry.

For the AI agent walkthrough, you also need the following:

  • An AI agent that supports skills and MCP servers, such as Kiro or Claude Code, with the managing-glue-jobs skill from the AWS Glue samples repository on GitHub.
  • The latest version of the AWS Command Line Interface (AWS CLI) version 2.
  • The spark-upgrade MCP server from Amazon SageMaker Unified Studio, which runs the compatibility assessment. To connect the server, see the skill’s README.
  • For email notifications, the Amazon Simple Notification Service (Amazon SNS) and Amazon EventBridge permissions in the skill’s permissions.md file.

To install the skill, copy the skill folder into your agent’s skills folder.

git clone https://github.com/aws-samples/aws-glue-samples.git
mkdir -p <agent-skills-folder>
cp -R aws-glue-samples/utilities/skills/managing-glue-jobs <agent-skills-folder>/

Walkthrough: Use auto upgrade in the AWS Glue console

In the AWS Glue console, you turn on auto upgrade and approve the upgrade one job at a time.

Create a job with auto upgrade

  1. Open the AWS Glue console, and in the navigation pane, choose ETL jobs.
  2. Create a Spark job, and then choose the Job details tab.
  3. For AWS Glue version, choose Auto.
  4. For Number of retries, enter 1 or higher.
  5. Choose Save.

AWS Glue runs a new auto job on the latest stable version and evaluates the job when the next version is released.

Change an existing job to auto upgrade

  1. In the AWS Glue console, in the navigation pane, choose ETL jobs.
  2. Choose the job, and then choose the Job details tab.
  3. For AWS Glue version, choose Auto, and for Number of retries, enter 1 or higher.
  4. Choose Save.
AWS Glue console Job details tab with AWS Glue version set to Auto for the orders-daily job

Figure 1: The Job details tab for orders-daily, with AWS Glue version set to Auto

Approve or decline the upgrade

When AWS Glue finishes the compatibility checks and finds no blocking issues, the job waits for your approval.

  1. Choose the job, and then choose the Upgrade analysis tab. The analysis status shows Waiting for consent.
  2. In the Upgrade consent required banner, choose eligibility summary, and review the summary.
  3. Choose Approve to upgrade the job, or choose Decline to keep the job on its current version.
AWS Glue console Upgrade analysis tab showing the status Waiting for consent for orders-daily

Figure 2: The Upgrade analysis tab for orders-daily, waiting for your approval

The eligibility summary shows the job, the AWS Glue versions, and the compatibility results.

Eligibility summary for orders-daily showing the AWS Glue versions and compatibility results

Figure 3: The eligibility summary for orders-daily

Check the result

After the evaluation ends, the Upgrade analysis tab shows the auto upgrade evaluation summary. The summary shows the result for performance, correctness, and cost, with the expected range and each upgraded run’s value for every check.

Auto upgrade evaluation summary for orders-daily showing performance, correctness, and cost results

Figure 4: The auto upgrade evaluation summary for orders-daily

Walkthrough: Upgrade a fleet of jobs with an AI agent

When you manage many jobs, an AI agent with the managing-glue-jobs skill assesses, turns on, and approves auto upgrade across your jobs from a few prompts. The agent shows each change and asks for your confirmation before it makes the change.

Diagram of the auto upgrade journey for existing jobs, from assessment through validation

Figure 5: The auto upgrade journey for existing jobs

In this walkthrough, you assess your jobs, turn on auto upgrade, approve the upgrade, and check the result. Between these steps, AWS Glue observes and checks each job, and then upgrades and validates the job. Amazon SNS emails you the eligibility summary and the evaluation summary. The steps that follow match the numbers in Figure 5.

A data team runs three Spark ETL jobs in the US West (Oregon) Region and they want to use AWS Glue version 6.0. The jobs orders-daily and clickstream-agg run on AWS Glue 4.0 and write to Amazon Simple Storage Service (Amazon S3). The job customer-profiles runs on AWS Glue 3.0.

Step 1: Assess your jobs

Ask the agent which of your jobs can use auto upgrade. The assessment does not change anything in your environment, so it’s safe to try first. The agent checks each job against the requirements and runs a compatibility assessment. The agent then lists the jobs that can move to AWS Glue 6.0 and asks you to confirm that each job is safe to retry.

AI agent listing the jobs that can move to AWS Glue 6.0 after assessment

Figure 6: The agent assesses the jobs

To see which job isn’t ready and why, ask the agent. The agent names the setting that blocks the upgrade and the fix.

AI agent naming the setting that blocks a job upgrade and the fix

Figure 7: The agent explains why a job isn’t ready

After you update the setting, set the AWS Glue job customer-profiles to auto. For jobs whose code must change, use generative AI upgrades for Apache Spark in AWS Glue.

Step 2: Turn on auto upgrade and set up email notifications

Ask the agent to turn on auto upgrade and set up email notifications in one prompt. The agent sets up the email notifications and sets GlueVersion to auto for each job. The jobs keep running on AWS Glue 4.0 until you approve an upgrade. To get the email notifications, confirm the subscription as the reply describes.

AI agent turning on auto upgrade and setting up email notifications for the jobs

Figure 8: The agent turns on auto upgrade and sets up email notifications

Step 3: Review and approve the upgrade

AWS Glue observes and checks each job in the background, and then you review and approve the upgrade.

Step 3a: AWS Glue observes and checks

You keep running the jobs on their usual schedule. In the background, AWS Glue observes the runs and analyzes each job without changing it. How long this takes depends on how often each job runs.

When a job is ready, AWS Glue emails you and requests your approval. The email names the job and the AWS Glue versions, and links to the job in the AWS Glue console. You have seven days to approve or decline.

Approval request email naming the job and AWS Glue versions with a link to the console

Figure 9: The approval request email

Step 3b: Review and approve the upgrade

Ask the agent which upgrades are waiting. The agent reads the eligibility summary of each job, and then shows the jobs, their write paths, and what to confirm before you approve.

AI agent showing the jobs waiting for approval and their write paths

Figure 10: The agent shows the upgrades that wait for your approval

Before you approve, confirm that the reply lists every path that each job writes to. Then approve the jobs in one prompt, and name each job that you approve.

AI agent approving the named jobs from the review

Figure 11: The agent approves the named jobs

The agent approves only the jobs that you name, and only jobs from the review that it showed you.

Step 4: Check the result

AWS Glue upgrades and validates each job, and then you check the result.

Step 4a: AWS Glue upgrades and validates

After you approve, subsequent runs of each job use AWS Glue 6.0, and AWS Glue validates the upgraded runs. If an upgraded run fails, AWS Glue retries the run on AWS Glue 4.0 and reverts the job. You don’t need to act in this step.

Step 4b: Check the result

When the evaluation of a job ends, AWS Glue emails you the result. Ask the agent for the result of orders-daily. The agent shows the result of each validation check.

AI agent showing each validation check result for orders-daily

Figure 12: The agent shows the result for orders-daily

Ask the agent about the other job. The agent shows the check that failed and suggests a fix.

AI agent showing the failed check for clickstream-agg and a suggested fix

Figure 13: The agent explains why clickstream-agg didn’t upgrade

Your pipeline continues to run on AWS Glue 4.0. The auto upgrade evaluation summary shows what changed, so you can fix the job before you try again.

Conclusion

In this post, we showed how automatic version upgrades for AWS Glue jobs keep your Apache Spark jobs on the latest stable AWS Glue version. You used an AI agent to assess your jobs and turn on auto upgrade with email notifications. You then reviewed the eligibility summary, approved the upgrades, and checked the results in the auto upgrade evaluation summary.

With auto upgrade, your team no longer needs to plan and run an upgrade project for each job. AWS Glue analyzes each job and checks the upgraded runs against the job’s earlier runs. Your team reviews and approves each upgrade. This way you keep your whole fleet of AWS Glue jobs current instead of upgrading one job at a time.

Some jobs need code changes before they can move to a new version. For those jobs, use generative AI upgrades for Apache Spark in AWS Glue, which proposes and validates the code changes for the new version. After you update the code, set the job’s GlueVersion to auto so that AWS Glue keeps the job current from then on.

Auto upgrade is available today in all commercial AWS Regions. For the list of Regions, see Considerations and limitations in the AWS Glue User Guide. To get started, ask an AI agent with the managing-glue-jobs skill to assess the AWS Glue jobs in your account. Try auto upgrade, and share your feedback in the comments.

Special thanks

A special thanks to everyone who contributed from Engineering and Science to the launch of automatic version upgrades: Ezgi Maden, Akshara Ganapathi, Tina Shao, Raghavendhar Thiruvoipadi Vidyasagar, Shoukat Ghouse, David Zhang, Suthan Phillips, Prasad Nadig, Syed Mahmood, Karthik Seshadri, Pradeep Kumar Nalluri, Adam Rohrscheib, Eric Zhang, Tayo Adedokun, Weston Dunn, Kartik Panjabi, Shubham Mehta, Bryan Liles, Steffen Rochel, Kinshuk Pahare, Paul Meighan, and Rick Sears


About the authors

Keerthi Chadalavada

Keerthi Chadalavada

Keerthi is a Principal Engineer in the AWS analytics organization. She works on generative AI capabilities across AWS Glue, Amazon EMR, and Amazon Athena. Her focus is on agents that make it simpler for customers to build, modernize, and operate their data processing workloads at scale.

Xiaorun Yu

XiaoRun is a Software Development Engineer in the AWS analytics organization. He is working on building scalable and reliable generative AI products to solve real customer issues. Outside of work, Xiaorun enjoys exploring new places in the Bay Area.

Shruti Gupta

Shruti is a Software Development Engineer in AWS Analytics, building generative AI capabilities for data processing. Previously, she worked on Amazon Bedrock, focusing on the availability and resilience of large-scale AI inference. She specializes in highly available distributed systems and reliable generative AI at scale.

Malinda Malwala

Malinda is an Applied Scientist in the Data Processing Agents Science team building DevOps AI agents for AWS Analytics services including Amazon EMR and AWS Glue. His expertise lies at the intersection of formal methods, program analysis, and AI, where he builds reliable, safe, and trustworthy AI agents for enterprise applications.

Pramod Chunduri

Pramod is an Applied Scientist in the Data Processing Agents Science team, where he designs, evaluates, and improves AI agents for AWS Analytics services including Amazon EMR and AWS Glue. His research lies at the intersection of database systems and AI, with a focus on the reliability of AI agents in complex data processing and analytics workflows.

Liyuan Lin

Liyuan Lin is a Software Engineer at AWS Glue, where she works on building generative AI and data integration tools to help customers solve their data challenges. She specializes in developing solutions that combine AI capabilities with data integration workflows, making it easier for customers to manage and transform their data effectively.

Wei Tang

Wei Tang is a Software Development Engineer on the AWS Glue team. She is a strong developer with deep interests in solving recurring customer problems with distributed systems and generative AI. Her focus is on building agentic tools that make it simpler for customers to run, troubleshoot, and modernize their data processing workloads on AWS.

Rishabh Nair

Rishabh is a Software Development Engineer in the AWS analytics organization, where he combines generative AI with distributed systems to build agentic workflows that modernize large-scale data processing. He is passionate about the infrastructure that makes these workflows reliable and scalable for customers.

Chris Kha

Chris is a Software Development Engineer at AWS Glue where he works on creating agentic tools across the AWS Analytics Organization. He specializes in building scalable and reliable fully-managed systems for data processing.

Ria Katoch

Ria is a Software Development Manager in the AWS analytics organization. She leads the team that builds generative AI agents for AWS Glue, Amazon EMR, and Amazon Athena, where the focus is on helping customers keep their data processing workloads current with less effort, so they can spend less time on upgrades and more time getting value from their data.

Shrey Malpani

Shrey Malpani

Shrey is a Senior Product Manager Technical at Amazon Web Services (AWS), where he works at the intersection of distributed data processing and data integration. He is focused on building and scaling data integration and data management capabilities across services like AWS Glue, Amazon EMR, and Amazon Redshift that help customers build AI-ready data platforms for their analytics and machine learning workflows.

Mukul Prasad

Mukul is a Senior Applied Science Manager in AWS Analytics. He leads the Data Processing Agents Science team developing DevOps agents to simplify and optimize the customer journey in using AWS Big Data processing services including Amazon EMR, AWS Glue, Amazon Athena, and Amazon SageMaker Unified Studio.

Mohit Saxena

Mohit leads AWS Glue, the native serverless Apache Spark data integration service, and Agentic AI applications across broader AWS Data Analytics — AWS Glue, Amazon EMR, and Amazon Athena. His teams build systems that simplify how customers build, modernize, troubleshoot and optimize data processing workloads at scale.