We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e43db98 commit 546fe75Copy full SHA for 546fe75
_example/complete/example.tf
@@ -83,4 +83,29 @@ EOF
83
# Api Gateway Api Key
84
key_count = 2
85
key_names = ["test", "test1"]
86
+
87
+ ## Api Policy
88
89
+ api_policy = data.aws_iam_policy_document.test.json
90
91
}
92
93
+data "aws_iam_policy_document" "test" {
94
+ statement {
95
+ effect = "Allow"
96
97
+ principals {
98
+ type = "AWS"
99
+ identifiers = ["*"]
100
+ }
101
102
+ actions = ["execute-api:Invoke"]
103
+ resources = [module.api-gateway.execution_arn]
104
105
+ condition {
106
+ test = "IpAddress"
107
+ variable = "aws:SourceIp"
108
+ values = ["123.123.123.123/32"]
109
110
111
+}
0 commit comments