如何在 terraform 中导入 aws_lambda_permission [英] How to import aws_lambda_permission in terraform

查看:24
本文介绍了如何在 terraform 中导入 aws_lambda_permission的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 terraform 中将 terraform importaws_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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆