1

这是我在下面的应用程序共享的 cft,它是第一次成功创建,当我更新 cft(代码更改)时,LambdaAllias 卡在 Update In Progress 阶段。有人可以指导我吗?

AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: AWS Serverless Quarkus HTTP - Flight Info svc

   FlightInfoService:
    Type: AWS::Serverless::Function
    Properties:
     Handler: not.used.in.provided.runtime
     Runtime: provided
     Role:
        Fn::ImportValue:
          'Fn::Sub': '${InfraStackName}-FlightInfoSvcLambdaExecutionRoleArn'    
     CodeUri: component1/function.zip
     MemorySize: 1024
     Timeout: 900
     AutoPublishAlias: live
     ProvisionedConcurrencyConfig:
       ProvisionedConcurrentExecutions: 1
     DeploymentPreference:
       Type: !Ref SetDeploymentPreferencetype
       Role: 
          Fn::ImportValue:
            'Fn::Sub': '${InfraStackName}-FlightInfoSvcLambdaCodeDeployRoleArn'
       TriggerConfigurations:
          - TriggerTargetArn: !Ref AlertTopic
            TriggerName: DeploymentAlerts
            TriggerEvents:
              - DeploymentStart
              - DeploymentSuccess
              - DeploymentFailure
              - DeploymentStop
              - DeploymentRollback
       Alarms:
          # A list of alarms that you want to monitor
          - !Ref FlightInfoSvcErrorMetricGreaterThanZeroAlarm
          - !Ref FlightInfoSvcLatestVersionErrorMetricGreaterThanZeroAlarm
       Hooks:
        # Validation Lambda functions that are run before & after traffic shifting
         PreTraffic: !Ref FlightInfoSvcPreTrafficHook
         PostTraffic: !Ref FlightInfoSvcPostTrafficHook    
     Environment:
          Variables:
             REFERENCE_DATA_SERVICE_BASE_PATH: !Ref RefDataSvcBasePath
             REFERENCE_DATA_SERVICE_API_GATEWAY_ID: !Ref RefDataSvcGatewayId
             LOG_LEVEL: INFO
             DISABLE_SIGNAL_HANDLERS: true
             AWS_SECRET_ENDPOINT: secretsmanager.us-east-1.amazonaws.com
             AWS_SECRET_REGION: us-east-1
             ADD_ON_UPDATE_FAILED_FLAG: true
             FLIGHT_ORIGIN_DATE_TTL: 60
     Tracing: Active
     VpcConfig:
        SecurityGroupIds:
          - !Ref SecurityGroups
        SubnetIds:
          Fn::Split:
            - ","
            - !Ref Subnets
     

我删除了引用变量和参数部分,只保留了我遇到问题的函数名。

4

0 回答 0