-
Notifications
You must be signed in to change notification settings - Fork 31
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
9a450cc
commit ff3eb22
Showing
25 changed files
with
365 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"ec2:CreateIpam", | ||
"iam:CreateServiceLinkedRole", | ||
"ec2:DescribeIpams", | ||
"ec2:DeleteIpam", | ||
"ec2:ModifyIpam", | ||
"ec2:DescribeTags" | ||
], | ||
"attributes": { | ||
"tags": [ | ||
"ec2:CreateTags", | ||
"ec2:DeleteTags" | ||
] | ||
}, | ||
"destroy": [ | ||
"ec2:DeleteIpam" | ||
], | ||
"modify": [ | ||
"ec2:ModifyIpam" | ||
], | ||
"plan": [] | ||
} | ||
] |
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 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"ec2:CreateIpamPool", | ||
"ec2:DescribeIpamPools", | ||
"ec2:DeleteIpamPool", | ||
"ec2:ModifyIpamPool" | ||
], | ||
"attributes": { | ||
"tags": [ | ||
"ec2:CreateTags", | ||
"ec2:DeleteTags" | ||
] | ||
}, | ||
"destroy": [ | ||
"ec2:DeleteIpamPool" | ||
], | ||
"modify": [ | ||
"ec2:ModifyIpamPool" | ||
], | ||
"plan": [] | ||
} | ||
] |
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,14 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"ec2:ProvisionIpamPoolCidr", | ||
"ec2:GetIpamPoolCidrs" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
19 changes: 19 additions & 0 deletions
19
src/mapping/aws/resource/ec2/aws_vpc_ipam_pool_cidr_allocation.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": [ | ||
"ec2:AllocateIpamPoolCidr", | ||
"ec2:GetIpamPoolAllocations", | ||
"ec2:ReleaseIpamPoolAllocation", | ||
"ec2:DeprovisionIpamPoolCidr" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [ | ||
"ec2:DeprovisionIpamPoolCidr", | ||
"ec2:ReleaseIpamPoolAllocation" | ||
], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
src/mapping/aws/resource/ec2/aws_vpc_ipam_preview_next_cidr.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": [ | ||
"ec2:AllocateIpamPoolCidr" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
22 changes: 22 additions & 0 deletions
22
src/mapping/aws/resource/ec2/aws_vpc_ipam_resource_discovery.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,22 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"ec2:CreateIpamResourceDiscovery", | ||
"ec2:DescribeIpamResourceDiscoveries", | ||
"ec2:DescribeTags" | ||
], | ||
"attributes": { | ||
"tags": [ | ||
"ec2:CreateTags", | ||
"ec2:DeleteTags" | ||
] | ||
}, | ||
"destroy": [ | ||
"ec2:DeleteIpamResourceDiscovery" | ||
], | ||
"modify": [ | ||
"ec2:ModifyIpamResourceDiscovery" | ||
], | ||
"plan": [] | ||
} | ||
] |
20 changes: 20 additions & 0 deletions
20
src/mapping/aws/resource/ec2/aws_vpc_ipam_resource_discovery_association.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,20 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"ec2:AssociateIpamResourceDiscovery", | ||
"ec2:DescribeIpamResourceDiscoveryAssociations", | ||
"ec2:DisassociateIpamResourceDiscovery" | ||
], | ||
"attributes": { | ||
"tags": [ | ||
"ec2:CreateTags", | ||
"ec2:DeleteTags" | ||
] | ||
}, | ||
"destroy": [ | ||
"ec2:DisassociateIpamResourceDiscovery" | ||
], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
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,20 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"ec2:CreateIpamScope", | ||
"ec2:DescribeIpamScopes", | ||
"ec2:DeleteIpamScope" | ||
], | ||
"attributes": { | ||
"tags": [ | ||
"ec2:CreateTags", | ||
"ec2:DeleteTags" | ||
] | ||
}, | ||
"destroy": [ | ||
"ec2:DeleteIpamScope" | ||
], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
src/mapping/aws/resource/ec2/aws_vpc_security_group_egress_rule.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,17 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"ec2:AuthorizeSecurityGroupEgress", | ||
"ec2:DescribeSecurityGroupRules", | ||
"ec2:RevokeSecurityGroupEgress" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [ | ||
"ec2:RevokeSecurityGroupEgress" | ||
] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
src/mapping/aws/resource/ec2/aws_vpc_security_group_ingress_rule.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,17 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"ec2:AuthorizeSecurityGroupIngress", | ||
"ec2:DescribeSecurityGroupRules", | ||
"ec2:RevokeSecurityGroupIngress" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [ | ||
"ec2:RevokeSecurityGroupIngress" | ||
], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
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,10 @@ | ||
resource "aws_vpc_ipam" "example" { | ||
description = "this" | ||
operating_regions { | ||
region_name = data.aws_region.current.name | ||
} | ||
tags = { | ||
pike = "permissions" | ||
another = "tag" | ||
} | ||
} |
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,9 @@ | ||
resource "aws_vpc_ipam_pool" "example" { | ||
description = "this" | ||
address_family = "ipv4" | ||
ipam_scope_id = aws_vpc_ipam.example.private_default_scope_id | ||
locale = data.aws_region.current.name | ||
tags = { | ||
pike = "permissions" | ||
} | ||
} |
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,4 @@ | ||
resource "aws_vpc_ipam_pool_cidr" "example" { | ||
ipam_pool_id = aws_vpc_ipam_pool.example.id | ||
cidr = "172.20.0.0/16" | ||
} |
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,10 @@ | ||
data "aws_region" "current" {} | ||
# | ||
resource "aws_vpc_ipam_pool_cidr_allocation" "example" { | ||
ipam_pool_id = aws_vpc_ipam_pool.example.id | ||
cidr = "172.20.0.0/24" | ||
depends_on = [ | ||
aws_vpc_ipam_pool_cidr.example | ||
] | ||
description = "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,13 @@ | ||
resource "aws_vpc_ipam_preview_next_cidr" "example" { | ||
ipam_pool_id = aws_vpc_ipam_pool.example.id | ||
netmask_length = 28 | ||
|
||
disallowed_cidrs = [ | ||
"172.2.0.0/32", | ||
] | ||
|
||
depends_on = [ | ||
aws_vpc_ipam_pool_cidr.example | ||
] | ||
|
||
} |
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,10 @@ | ||
resource "aws_vpc_ipam_resource_discovery" "pike" { | ||
description = "My IPAM Resource Discovery" | ||
operating_regions { | ||
region_name = data.aws_region.current.name | ||
} | ||
|
||
tags = { | ||
another = "tag" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
terraform/aws/backup/aws_vpc_ipam_resource_discovery_association.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,10 @@ | ||
resource "aws_vpc_ipam_resource_discovery_association" "test" { | ||
ipam_id = aws_vpc_ipam.example.id | ||
ipam_resource_discovery_id = aws_vpc_ipam_resource_discovery.pike.id | ||
|
||
tags = { | ||
"Name" = "test" | ||
pike = "permissions" | ||
another = "tag" | ||
} | ||
} |
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,8 @@ | ||
resource "aws_vpc_ipam_scope" "example" { | ||
ipam_id = aws_vpc_ipam.example.id | ||
description = "Another Scope" | ||
tags = { | ||
pike = "permissions" | ||
another = "tag" | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
terraform/aws/backup/aws_vpc_security_group_egress_rule.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,14 @@ | ||
resource "aws_vpc_security_group_egress_rule" "pike" { | ||
security_group_id = aws_security_group.pike.id | ||
|
||
cidr_ipv4 = "10.0.0.0/8" | ||
from_port = 80 | ||
ip_protocol = "tcp" | ||
to_port = 80 | ||
tags = { | ||
pike = "permissions" | ||
another = "tag" | ||
} | ||
} | ||
|
||
resource "aws_security_group" "pike" {} |
11 changes: 11 additions & 0 deletions
11
terraform/aws/backup/aws_vpc_security_group_ingress_rule.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,11 @@ | ||
resource "aws_vpc_security_group_ingress_rule" "pike" { | ||
security_group_id = aws_security_group.pike.id | ||
|
||
cidr_ipv4 = "10.0.0.0/8" | ||
from_port = 80 | ||
ip_protocol = "tcp" | ||
to_port = 80 | ||
tags = { | ||
pike = "permissions" | ||
} | ||
} |
Oops, something went wrong.