如何在Terraform中导入aws_lambda_permission [英] How to import aws_lambda_permission in terraform
问题描述
如何在Terraform中将 terraform import
与类型为 aws_lambda_permission
的资源一起使用?第二个参数应该是什么?
How can I use terraform import
with resources of type aws_lambda_permission
in terraform? What should the second argument be?
推荐答案
在撰写本文时Terraform没有此资源的导入程序,因此无法使用 terraform import
命令.
At the time of writing Terraform does not have an importer for this resource, so it's not possible to import it automatically using the terraform import
command.
由于Lambda权限是属于Lambda函数的从属资源,因此一旦 支持对其进行导入,则最有可能的处理方式是将其导入作为导入的副作用功能本身;单独的许可ID不足以检索该信息.
Since a Lambda permission is a subordinate resource belonging to a Lambda function, once there is support for importing it the most likely way it would be handled is to import it as a side-effect of importing the function itself; the id of the permission alone is not enough information to retrieve it.
这篇关于如何在Terraform中导入aws_lambda_permission的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!