Amazon Lambda - Getting Started with Amazon Web Services in China
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon Lambda

Amazon Lambda is a compute service that lets you run code without provisioning or managing servers. Amazon Lambda executes your code only when needed and scales automatically, from a few requests per day to thousands per second. You pay only for the compute time you consume—there is no charge when your code is not running. With Amazon Lambda, you can run code for virtually any type of application or backend service—all with zero administration. Amazon Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. All you need to do is supply your code in one of the languages that Amazon Lambda supports (currently Node.js, Java, C#, Go and Python).

Region Availability

Amazon Lambda is available in the following regions in China:

  • Beijing Region

  • Ningxia Region

Feature Availability and Implementation Differences

The Amazon Web Services in China implementation of Amazon Lambda is unique in the following ways:

  • Amazon X-Ray integration with Lambda functions is not available in the China Regions.

  • Amazon Lambda Function URLs is not available in the China Regions.

  • Lambda SnapStart is not available in the China Regions.

  • Runtime management configuration is not available in the China Regions.

  • The asynchronous invocation metrics, AsyncEventsReceived, AsyncEventAge, and AsyncEventsDropped are not available in the China Regions.

  • Outbound IPv6 traffic is not supported in the China Regions.

  • The Amazon Linux 2023 provided.al2023 runtime is not available in the China Regions.

  • The Node.js 20 runtime (nodejs20.x) is not available in the China Regions.

  • The Java 21 runtime (java21) is not available in the China Regions.

  • Multi-VPC connectivity for Amazon MSK event source mappings is not available in the China Regions.

  • The Python 3.12 runtime (python3.12) is not available in the China Regions.

  • The Future runtime launch dates are not applicable in the China Regions.

  • Lambda Advanced Logging Controls are not available in the China Regions.

  • The .NET 8 (dotnet8) runtime is not available in the China Regions.

Guides and References

Amazon Web Services in China user guides are available in HTML and PDF, in both Chinese and English. API references are available in HTML and PDF. Some API references may be available only in English. Currently, not all API references are available in the Beijing and Ningxia Regions. Links to some API references will take you to the global Amazon Web Services site. Note that some features and functionality described in the guides and references may not be available in the current Amazon Web Services in China release.

General Information About Amazon Web Services in China

The following information applies to all Amazon Web Services that are available in the China Regions.

Amazon Web Services Accounts in the China Regions

To use services in the Beijing and Ningxia Regions, you need an account and credentials specific to each of those Regions.

  • Accounts and credentials for other Amazon Regions will not work for services operating in the Beijing and Ningxia Regions.

  • Accounts and credentials for the Beijing and Ningxia Regions will not work for other Amazon Regions.

  • For more information, see Signup, Accounts, and Credentials.

Domain for Amazon Web Services in China

The domain for Amazon Web Services in China is www.amazonaws.cn.

Endpoints & Amazon Resource Names (ARNs)

For information about endpoints and ARNs in Amazon Web Services in China, see Endpoints and ARNs for Amazon Web Services in China.

Availability Zones for the China Regions

  • In the Beijing Region, there are three Availability Zones.

  • In the Ningxia Region, there are three Availability Zones.

General Information for Amazon Web Services in China

The following applies to all Amazon Web Services that are available in the China Regions. For detailed information about specific Amazon Web Services, see the service-specific topic in this guide.

  • Amazon Identity and Access Management (IAM)

    • You can grant or deny a service access to resources using the Principal policy element.

    • Service principal values vary by Region.

  • EC2-Classic Platform

    • The EC2-Classic platform is not supported.

  • Free Usage Tier

    • The free usage tier is supported in the Ningxia Region.

    • The free usage tier is not supported in the Beijing Region.

Amazon Web Services Console

The console for Amazon Web Services in China is unique to China. The screenshots in the Amazon Web Services guides might differ from what you see on your console. For information about differences in service functionality, see the topics for each service in this guide.

Code Examples

The Amazon Web Services documentation might include endpoints and ARNs in code examples that are not specific to the Beijing and Ningxia Regions. When using examples, verify you are using the endpoints and ARNs for your Region.