我创建了一个 terraform 以使用 terraform-aws-iam 将 newrelic 与我的 aws 集成
# terraform {
module "iam_assumable_role_custom" {
source = "../../../modules/aws-iam/modules/iam-assumable-role"
create_role = true
role_name = "NewRelicInfrastructure-Integrations"
trusted_role_arns = ["arn:aws:iam::754728514883:root"]
role_sts_externalid = ["3202355"]
attach_readonly_policy = true
readonly_role_policy_arn = var.readonly_arn
custom_role_policy_arns = [
aws_iam_policy.NewRelicBudget.arn
]
number_of_custom_role_policy_arns = 1
}
现在我必须创建另一个策略并将其放入模块中,因为模块的aws_iam_policy.NewRelicBudget
这一部分不支持 inline_policy 吗?