r/networkfirewall: add resource_policy resource #16279
Conversation
a565658 to
7e52ea0
Compare
7e52ea0 to
fa1c4b7
Compare
24584fc to
66063dd
Compare
6bfbebe to
14dca56
Compare
29738f9 to
94d6667
Compare
93e9ced to
f740a15
Compare
f740a15 to
b1550e9
Compare
|
@bflad ready for your review 👍 (i omitted the partition checks for the moment but can add them back in) |
bflad
left a comment
There was a problem hiding this comment.
Looks good! Just two minor documentation bits since I think the principal has to be the root account ARNs. 🚀
Output from acceptance testing:
--- PASS: TestAccAwsNetworkFirewallResourcePolicy_disappears (179.38s)
--- PASS: TestAccAwsNetworkFirewallResourcePolicy_firewallPolicy (180.55s)
--- PASS: TestAccAwsNetworkFirewallResourcePolicy_ruleGroup (180.61s)
--- PASS: TestAccAwsNetworkFirewallResourcePolicy_ruleGroup_disappears (188.31s)
--- PASS: TestAccAwsNetworkFirewallResourcePolicy_firewallPolicy_disappears (189.13s)
|
|
||
| * `policy` - (Required) JSON formatted policy document that controls access to the Network Firewall resource. The policy must be provided **without whitespaces**. It is recommended to use [jsonencode](https://www.terraform.io/docs/configuration/functions/jsonencode.html) for formatting as seen in the examples above. For more details, including available policy statement Actions, see the [Policy](https://docs.aws.amazon.com/network-firewall/latest/APIReference/API_PutResourcePolicy.html#API_PutResourcePolicy_RequestSyntax) parameter in the AWS API documentation. | ||
|
|
||
| * `resource_arn` - (Required, Forces new resource) The Amazon Resource Name (ARN) of the rule group or firewall policy. |
There was a problem hiding this comment.
Still find it confusing the API documentation says the wrong thing 😂
Co-authored-by: Brian Flad <bflad417@gmail.com>
Co-authored-by: Brian Flad <bflad417@gmail.com>
|
This has been released in version 3.18.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #16292
Release note for CHANGELOG:
Output from acceptance testing: