Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Sep 27, 2022
2 parents c6d5f08 + a634a0b commit 6e605cb
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 22 deletions.
3 changes: 2 additions & 1 deletion src/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,10 @@ func GetAWSResourcePermissions(result ResourceV2) ([]string, error) {
"aws_vpn_gateway_route_propagation": awsVpnGatewayRoutePropagation,
"aws_memorydb_cluster": awsMemorydbCluster,
"aws_memorydb_snapshot": awsMemorydbSnapshot,
"aws_fsx_openzfs_file_system": awsFsxOpenzfsFileSystem,
"aws_customer_gateway": awsCustomerGateway,
"aws_fsx_openzfs_volume": awsFsxOpenzfsVolume,
"aws_fsx_openzfs_snapshot": awsFsxOpenzfsSnaphot,
"aws_fsx_openzfs_file_system": awsFsxOpenzfsFileSystem,
}

var Permissions []string
Expand Down
3 changes: 3 additions & 0 deletions src/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,9 @@ var awsMemorydbCluster []byte
//go:embed mapping/aws/resource/memorydb/aws_memorydb_snapshot.json
var awsMemorydbSnapshot []byte

//go:embed mapping/aws/resource/ec2/aws_customer_gateway.json
var awsCustomerGateway []byte

//go:embed mapping/aws/resource/fsx/aws_fsx_openzfs_file_system.json
var awsFsxOpenzfsFileSystem []byte

Expand Down
11 changes: 0 additions & 11 deletions src/mapping/aws/resource/aws_db_security_group.json

This file was deleted.

21 changes: 21 additions & 0 deletions src/mapping/aws/resource/ec2/aws_customer_gateway.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"apply": [
"ec2:DescribeAccountAttributes",
"ec2:CreateCustomerGateway",
"ec2:DeleteCustomerGateway",
"ec2:DescribeCustomerGateways"
],
"attributes": {
"tags": [
"ec2:CreateTags",
"ec2:DeleteTags"
]
},
"destroy": [
"ec2:DeleteCustomerGateway"
],
"modify": [],
"plan": []
}
]
4 changes: 0 additions & 4 deletions terraform/aws/aws_db_security_group.tf

This file was deleted.

10 changes: 10 additions & 0 deletions terraform/aws/backup/aws_customer_gateway.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
resource "aws_customer_gateway" "pike" {
bgp_asn = 65000
ip_address = "172.83.124.10"
type = "ipsec.1"

tags = {
pike = "permissions"
Name = "main-customer-gateway"
}
}
6 changes: 0 additions & 6 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
./resource.ps1 aws_ec2_traffic_mirror_session
./resource.ps1 aws_ec2_traffic_mirror_target
./resource.ps1 aws_ec2_transit_gateway
./resource.ps1 aws_ec2_transit_gateway
./resource.ps1 aws_ec2_transit_gateway_route_table
./resource.ps1 aws_ec2_transit_gateway_vpc_attachment

Expand All @@ -139,10 +138,8 @@
./resource.ps1 aws_eks_identity_provider_config
./resource.ps1 aws_eks_node_group

./resource.ps1 aws_elastic_beanstalk_application_version
./resource.ps1 aws_elastic_beanstalk_application_version
./resource.ps1 aws_elastic_beanstalk_environment
./resource.ps1 aws_elastic_beanstalk_environment

./resource.ps1 aws_emr_cluster
./resource.ps1 aws_emr_security_configuration
Expand Down Expand Up @@ -248,9 +245,6 @@
./resource.ps1 aws_securityhub_standards_control
./resource.ps1 aws_securityhub_standards_subscription

./resource.ps1 aws_sfn_activity
./resource.ps1 aws_sfn_state_machine

./resource.ps1 aws_ssoadmin_permission_set
./resource.ps1 aws_ssoadmin_permission_set_inline_policy

Expand Down

0 comments on commit 6e605cb

Please sign in to comment.