简体   繁体   English

AWS 相当于 Azure 托管身份

[英]AWS Equivalent to Azure Managed Identity

In Azure, if I were to configure a function app to post to a storage account queue, I would used managed identity for the authentication.在 Azure 中,如果我要配置 function 应用程序以发布到存储帐户队列,我将使用托管身份进行身份验证。 This would remove any need to store credentials for the queue.这将消除为队列存储凭据的任何需要。

Does AWS have something equivalent to managed identity that could be used for a Lambda posting to SQS? AWS 是否具有可用于将 Lambda 发布到 SQS 的与托管身份等效的东西?

With Serverless Framework使用无服务器框架

provider:
  iamRoleStatements:
    - Effect: Allow
      Action:
        - sqs:SendMessage
        - sqs:DeleteMessage
      Resource:
        - !GetAtt MyQueue.Arn
resources:
  Resources:
    MyQueue:
      Type: "AWS::SQS::Queue"
      Properties:
        QueueName: ${self:custom.sqs.name}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM