-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1a27dc
commit c37e9b2
Showing
26 changed files
with
324 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/mapping/aws/data/license-manager/aws_licensemanager_grants.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"apply": [], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [ | ||
"license-manager:ListDistributedGrants" | ||
] | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
src/mapping/aws/data/license-manager/aws_licensemanager_received_license.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"apply": [], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [ | ||
"license-manager:ListReceivedLicenses" | ||
] | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
src/mapping/aws/data/license-manager/aws_licensemanager_received_licenses.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"apply": [], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [ | ||
"license-manager:ListReceivedLicenses" | ||
] | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
src/mapping/aws/data/network-firewall/aws_networkfirewall_firewall.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"apply": [], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [ | ||
"network-firewall:DescribeFirewall" | ||
] | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
src/mapping/aws/data/network-firewall/aws_networkfirewall_firewall_policy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"apply": [], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [ | ||
"network-firewall:DescribeFirewallPolicy" | ||
] | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
src/mapping/aws/data/network-firewall/aws_networkfirewall_resource_policy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"apply": [], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [ | ||
"network-firewall:DescribeResourcePolicy" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"apply": [], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [ | ||
"qldb:DescribeLedger" | ||
] | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
src/mapping/aws/data/redshift-serverless/awas_redshiftserverless_namespace.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"apply": [], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [ | ||
"redshift-serverless:ListNamespaces" | ||
] | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
src/mapping/aws/data/redshift-serverless/awas_redshiftserverless_workgroups.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"apply": [], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [ | ||
"redshift-serverless:ListWorkgroups" | ||
] | ||
} | ||
] |
19 changes: 19 additions & 0 deletions
19
src/mapping/aws/resource/network-firewall/aws_networkfirewall_resource_policy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"network-firewall:PutResourcePolicy", | ||
"network-firewall:DescribeResourcePolicy", | ||
"network-firewall:DeleteResourcePolicy" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [ | ||
"network-firewall:DeleteResourcePolicy" | ||
], | ||
"modify": [], | ||
"plan": [ | ||
"network-firewall:DescribeResourcePolicy" | ||
] | ||
} | ||
] |
23 changes: 23 additions & 0 deletions
23
terraform/aws/backup/aws_networkfirewall_resource_policy.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
resource "aws_networkfirewall_resource_policy" "pike" { | ||
resource_arn = aws_networkfirewall_firewall_policy.pike.arn | ||
# policy's Action element must include all of the following operations | ||
policy = jsonencode({ | ||
Statement = [{ | ||
Action = [ | ||
"network-firewall:ListFirewallPolicies", | ||
"network-firewall:CreateFirewall", | ||
"network-firewall:UpdateFirewall", | ||
"network-firewall:AssociateFirewallPolicy" | ||
] | ||
Effect = "Allow" | ||
Resource = aws_networkfirewall_firewall_policy.pike.arn | ||
Principal = { | ||
AWS = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:root" | ||
} | ||
}] | ||
Version = "2012-10-17" | ||
}) | ||
|
||
} | ||
|
||
data "aws_caller_identity" "current" {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
data "aws_licensemanager_grants" "pike" {} | ||
|
||
output "grants" { | ||
value = data.aws_licensemanager_grants.pike | ||
} |
7 changes: 7 additions & 0 deletions
7
terraform/aws/backup/data.aws_licensemanager_received_license.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
data "aws_licensemanager_received_license" "pike" { | ||
license_arn = "arn:aws:license-manager::680235478471:license:l-1534f5bfb27f41bc8ad622b95e20e39d" | ||
} | ||
|
||
output "licence" { | ||
value = data.aws_licensemanager_received_license.pike | ||
} |
5 changes: 5 additions & 0 deletions
5
terraform/aws/backup/data.aws_licensemanager_received_licenses.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
data "aws_licensemanager_received_licenses" "pike" {} | ||
|
||
output "licences" { | ||
value = data.aws_licensemanager_received_licenses.pike | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data "aws_networkfirewall_firewall" "pike" { | ||
name = "pike" | ||
} |
3 changes: 3 additions & 0 deletions
3
terraform/aws/backup/data.aws_networkfirewall_firewall_policy.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data "aws_networkfirewall_firewall_policy" "pike" { | ||
name = "pike" | ||
} |
63 changes: 63 additions & 0 deletions
63
terraform/aws/backup/data.aws_networkfirewall_resource_policy.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
data "aws_networkfirewall_resource_policy" "pike" { | ||
resource_arn = aws_networkfirewall_resource_policy.example.resource_arn | ||
} | ||
# | ||
#resource "aws_networkfirewall_resource_policy" "example" { | ||
# resource_arn = aws_networkfirewall_firewall_policy.example.arn | ||
# # policy's Action element must include all of the following operations | ||
# policy = jsonencode({ | ||
# Statement = [{ | ||
# Action = [ | ||
# "network-firewall:ListFirewallPolicies", | ||
# "network-firewall:CreateFirewall", | ||
# "network-firewall:UpdateFirewall", | ||
# "network-firewall:AssociateFirewallPolicy" | ||
# ] | ||
# Effect = "Allow" | ||
# Resource = aws_networkfirewall_firewall_policy.example.arn | ||
# Principal = { | ||
# AWS = "arn:aws:iam::123456789012:root" | ||
# } | ||
# }] | ||
# Version = "2012-10-17" | ||
# }) | ||
#} | ||
# | ||
#resource "aws_networkfirewall_firewall_policy" "example" { | ||
# name = "example" | ||
# | ||
# firewall_policy { | ||
# stateless_default_actions = ["aws:pass"] | ||
# stateless_fragment_default_actions = ["aws:drop"] | ||
# stateless_rule_group_reference { | ||
# priority = 1 | ||
# resource_arn = aws_networkfirewall_rule_group.example.arn | ||
# } | ||
# } | ||
# | ||
# tags = { | ||
# Tag1 = "Value1" | ||
# Tag2 = "Value2" | ||
# } | ||
#} | ||
# | ||
# | ||
#resource "aws_networkfirewall_rule_group" "example" { | ||
# capacity = 100 | ||
# name = "example" | ||
# type = "STATEFUL" | ||
# rule_group { | ||
# rules_source { | ||
# rules_source_list { | ||
# generated_rules_type = "DENYLIST" | ||
# target_types = ["HTTP_HOST"] | ||
# targets = ["test.example.com"] | ||
# } | ||
# } | ||
# } | ||
# | ||
# tags = { | ||
# Tag1 = "Value1" | ||
# Tag2 = "Value2" | ||
# } | ||
#} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data "aws_qldb_ledger" "pike" { | ||
name = "pike" | ||
} |
3 changes: 3 additions & 0 deletions
3
terraform/aws/backup/data.aws_redshiftserverless_namespace.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data "aws_redshiftserverless_namespace" "pike" { | ||
namespace_name = "pike" | ||
} |
3 changes: 3 additions & 0 deletions
3
terraform/aws/backup/data.aws_redshiftserverless_workgroup.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data "aws_redshiftserverless_workgroup" "pike" { | ||
workgroup_name = "pike" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.