AWSTemplateFormatVersion: "2010-09-09" Transform: AWS::Serverless-2016-10-31 Globals: Function: MemorySize: 1024 Architectures: ["x86_64"] Runtime: provided.al2 Timeout: 30 Tracing: Active Environment: Variables: PRODUCT_TABLE_NAME: !Ref Table LOG_GROUP_PREFIX: !Sub "/aws/lambda/net-7-aot-minimal-" LOAD_TEST_TYPE: "NET 7 native AOT Minimal API" Resources: ApiFunction: Type: AWS::Serverless::Function Properties: CodeUri: ./ApiBootstrap/ Handler: ApiBootstrap Events: Api: Type: HttpApi Properties: Path: /{proxy+} Method: ANY Policies: - DynamoDBCrudPolicy: TableName: !Ref Table - Version: "2012-10-17" Statement: - Sid: AllowStartQueries Effect: Allow Action: - logs:DescribeLogGroups - logs:StartQuery Resource: "*" - Sid: AllowGetQueryResults Effect: Allow Action: logs:GetQueryResults Resource: "*" Metadata: BuildMethod: dotnet7 Table: Type: AWS::DynamoDB::Table Properties: AttributeDefinitions: - AttributeName: id AttributeType: S BillingMode: PAY_PER_REQUEST KeySchema: - AttributeName: id KeyType: HASH Outputs: ApiUrl: Description: "API Gateway endpoint URL" Value: !Sub "https://${ServerlessHttpApi}.execute-api.${AWS::Region}.amazonaws.com/"