File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,29 +38,29 @@ locals {
3838 module . this . enabled ? [
3939 {
4040 name = " ec2-management-access"
41- policy = one (data. aws_iam_policy_document . ec2_management [ 0 ] . json )
41+ policy = one (data. aws_iam_policy_document . ec2_management . * . json )
4242 },
4343 {
4444 name = " teleport-base-access"
45- policy = one (data. aws_iam_policy_document . base_access [ 0 ] . json )
45+ policy = one (data. aws_iam_policy_document . base_access . * . json )
4646 }
4747 ] : [],
4848 contains ([" auth" ], local. teleport_node_type ) ? [
4949 {
5050 name = " teleport-auth-access"
51- policy = one (data. aws_iam_policy_document . auth_access [ 0 ] . json )
51+ policy = one (data. aws_iam_policy_document . auth_access . * . json )
5252 }
5353 ] : [],
5454 contains ([" node" ], local. teleport_node_type ) ? [
5555 {
5656 name = " teleport-node-access"
57- policy = one (data. aws_iam_policy_document . node_access [ 0 ] . json )
57+ policy = one (data. aws_iam_policy_document . node_access . * . json )
5858 }
5959 ] : [],
6060 contains ([" proxy" ], local. teleport_node_type ) ? [
6161 {
6262 name = " teleport-proxy-access"
63- policy = one (data. aws_iam_policy_document . proxy_access [ 0 ] . json )
63+ policy = one (data. aws_iam_policy_document . proxy_access . * . json )
6464 }
6565 ] : [],
6666 ])
You can’t perform that action at this time.
0 commit comments