Skip to content

Commit

Permalink
more aws
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Feb 4, 2025
1 parent 4c03025 commit 5a6bf5f
Show file tree
Hide file tree
Showing 81 changed files with 869 additions and 42 deletions.
39 changes: 39 additions & 0 deletions src/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,45 @@ var tFLookup = map[string]interface{}{ //nolint:gochecknoglobals
"aws_lightsail_lb_certificate_attachment": awsLightsailLbCertificateAttachment,
"aws_lightsail_lb_https_redirection_policy": awsLightsailLbHttpsRedirectionPolicy,
"aws_lightsail_lb_stickiness_policy": awsLightsailLbStickinessPolicy,
"aws_dx_bgp_peer": awsDxBgpPeer,
"aws_dx_connection": awsDxConnection,
"aws_dx_connection_association": awsDxConnectionAssociation,
"aws_dx_connection_confirmation": awsDxConnectionConfirmation,
"aws_dx_gateway_association_proposal": awsDxGatewayAssociationProposal,
"aws_dx_hosted_connection": awsDxHostedConnection,
"aws_dx_hosted_private_virtual_interface": awsDxHostedPrivateVirtualInterface,
"aws_dx_hosted_private_virtual_interface_accepter": awsDxHostedPrivateVirtualInterfaceAccepter,
"aws_dx_hosted_public_virtual_interface": awsDxHostedPublicVirtualInterface,
"aws_dx_hosted_public_virtual_interface_accepter": awsDxHostedPublicVirtualInterfaceAccepter,
"aws_dx_hosted_transit_virtual_interface": awsDxHostedTransitVirtualInterface,
"aws_dx_lag": awsDxLag,
"aws_dx_macsec_key_association": awsDxMacsecKeyAssociation,
"aws_dx_private_virtual_interface": awsDxPrivateVirtualInterface,
"aws_dx_public_virtual_interface": awsDxPublicVirtualInterface,
"aws_dx_transit_virtual_interface": awsDxTransitVirtualInterface,
"aws_directory_service_conditional_forwarder": awsDirectoryServiceConditionalForwarder,
"aws_directory_service_radius_settings": awsDirectoryServiceRadiusSettings,
"aws_directory_service_region": awsDirectoryServiceRegion,
"aws_directory_service_shared_directory": awsDirectoryServiceSharedDirectory,
"aws_directory_service_shared_directory_accepter": awsDirectoryServiceSharedDirectoryAccepter,
"aws_directory_service_trust": awsDirectoryServiceTrust,
"aws_opsworks_application": awsOpsworksApplication,
"aws_opsworks_custom_layer": awsOpsworksCustomLayer,
"aws_opsworks_ecs_cluster_layer": awsOpsworksEcsClusterLayer,
"aws_opsworks_ganglia_layer": awsOpsworksGangliaLayer,
"aws_opsworks_haproxy_layer": awsOpsworksHaproxyLayer,
"aws_opsworks_instance": awsOpsworksInstance,
"aws_opsworks_java_app_layer": awsOpsworksJavaAppLayer,
"aws_opsworks_memcached_layer": awsOpsworksMemcachedLayer,
"aws_opsworks_mysql_layer": awsOpsworksMysqlLayer,
"aws_opsworks_nodejs_app_layer": awsOpsworksNodejsAppLayer,
"aws_opsworks_permission": awsOpsworksPermission,
"aws_opsworks_php_app_layer": awsOpsworksPhpAppLayer,
"aws_opsworks_rails_app_layer": awsOpsworksRailsAppLayer,
"aws_opsworks_rds_db_instance": awsOpsworksRdsDbInstance,
"aws_opsworks_stack": awsOpsworksStack,
"aws_opsworks_static_web_layer": awsOpsworksStaticWebLayer,
"aws_opsworks_user_profile": awsOpsworksUserProfile,
}

// GetAWSPermissions for AWS resources.
Expand Down
43 changes: 1 addition & 42 deletions src/coverage/aws.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
# todo aws

Resource percentage coverage 83.55
Resource percentage coverage 87.75
Datasource percentage coverage 100.00

./resource.ps1 aws_cognito_managed_user_pool_client
./resource.ps1 aws_directory_service_conditional_forwarder
./resource.ps1 aws_directory_service_radius_settings
./resource.ps1 aws_directory_service_region
./resource.ps1 aws_directory_service_shared_directory
./resource.ps1 aws_directory_service_shared_directory_accepter
./resource.ps1 aws_directory_service_trust
./resource.ps1 aws_dx_bgp_peer
./resource.ps1 aws_dx_connection
./resource.ps1 aws_dx_connection_association
./resource.ps1 aws_dx_connection_confirmation
./resource.ps1 aws_dx_gateway_association_proposal
./resource.ps1 aws_dx_hosted_connection
./resource.ps1 aws_dx_hosted_private_virtual_interface
./resource.ps1 aws_dx_hosted_private_virtual_interface_accepter
./resource.ps1 aws_dx_hosted_public_virtual_interface
./resource.ps1 aws_dx_hosted_public_virtual_interface_accepter
./resource.ps1 aws_dx_hosted_transit_virtual_interface
./resource.ps1 aws_dx_lag
./resource.ps1 aws_dx_macsec_key_association
./resource.ps1 aws_dx_private_virtual_interface
./resource.ps1 aws_dx_public_virtual_interface
./resource.ps1 aws_dx_transit_virtual_interface
./resource.ps1 aws_dynamodb_kinesis_streaming_destination
./resource.ps1 aws_dynamodb_resource_policy
./resource.ps1 aws_dynamodb_table_export
Expand Down Expand Up @@ -54,7 +32,6 @@ Datasource percentage coverage 100.00
./resource.ps1 aws_elasticache_user_group_association
./resource.ps1 aws_elasticsearch_domain_saml_options
./resource.ps1 aws_elasticsearch_vpc_endpoint

./resource.ps1 aws_grafana_role_association
./resource.ps1 aws_grafana_workspace_saml_configuration

Expand Down Expand Up @@ -84,7 +61,6 @@ Datasource percentage coverage 100.00
./resource.ps1 aws_lexv2models_intent
./resource.ps1 aws_lexv2models_slot
./resource.ps1 aws_lexv2models_slot_type

./resource.ps1 aws_macie2_account
./resource.ps1 aws_macie2_classification_export_configuration
./resource.ps1 aws_macie2_classification_job
Expand Down Expand Up @@ -112,23 +88,6 @@ Datasource percentage coverage 100.00
./resource.ps1 aws_opensearch_package
./resource.ps1 aws_opensearch_package_association
./resource.ps1 aws_opensearch_vpc_endpoint
./resource.ps1 aws_opsworks_application
./resource.ps1 aws_opsworks_custom_layer
./resource.ps1 aws_opsworks_ecs_cluster_layer
./resource.ps1 aws_opsworks_ganglia_layer
./resource.ps1 aws_opsworks_haproxy_layer
./resource.ps1 aws_opsworks_instance
./resource.ps1 aws_opsworks_java_app_layer
./resource.ps1 aws_opsworks_memcached_layer
./resource.ps1 aws_opsworks_mysql_layer
./resource.ps1 aws_opsworks_nodejs_app_layer
./resource.ps1 aws_opsworks_permission
./resource.ps1 aws_opsworks_php_app_layer
./resource.ps1 aws_opsworks_rails_app_layer
./resource.ps1 aws_opsworks_rds_db_instance
./resource.ps1 aws_opsworks_stack
./resource.ps1 aws_opsworks_static_web_layer
./resource.ps1 aws_opsworks_user_profile
./resource.ps1 aws_organizations_delegated_administrator
./resource.ps1 aws_pinpoint_adm_channel
./resource.ps1 aws_pinpoint_apns_channel
Expand Down
117 changes: 117 additions & 0 deletions src/files_aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,120 @@ var awsLightsailLbHttpsRedirectionPolicy []byte

//go:embed mapping/aws/resource/lightsail/aws_lightsail_lb_stickiness_policy.json
var awsLightsailLbStickinessPolicy []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_bgp_peer.json
var awsDxBgpPeer []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_connection.json
var awsDxConnection []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_connection_association.json
var awsDxConnectionAssociation []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_connection_confirmation.json
var awsDxConnectionConfirmation []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_gateway_association_proposal.json
var awsDxGatewayAssociationProposal []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_hosted_connection.json
var awsDxHostedConnection []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_hosted_private_virtual_interface.json
var awsDxHostedPrivateVirtualInterface []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_hosted_private_virtual_interface_accepter.json
var awsDxHostedPrivateVirtualInterfaceAccepter []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_hosted_public_virtual_interface.json
var awsDxHostedPublicVirtualInterface []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_hosted_public_virtual_interface_accepter.json
var awsDxHostedPublicVirtualInterfaceAccepter []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_hosted_transit_virtual_interface.json
var awsDxHostedTransitVirtualInterface []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_lag.json
var awsDxLag []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_macsec_key_association.json
var awsDxMacsecKeyAssociation []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_private_virtual_interface.json
var awsDxPrivateVirtualInterface []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_public_virtual_interface.json
var awsDxPublicVirtualInterface []byte

//go:embed mapping/aws/resource/directconnect/aws_dx_transit_virtual_interface.json
var awsDxTransitVirtualInterface []byte

//go:embed mapping/aws/resource/directoryservice/aws_directory_service_conditional_forwarder.json
var awsDirectoryServiceConditionalForwarder []byte

//go:embed mapping/aws/resource/directoryservice/aws_directory_service_radius_settings.json
var awsDirectoryServiceRadiusSettings []byte

//go:embed mapping/aws/resource/directoryservice/aws_directory_service_region.json
var awsDirectoryServiceRegion []byte

//go:embed mapping/aws/resource/directoryservice/aws_directory_service_shared_directory.json
var awsDirectoryServiceSharedDirectory []byte

//go:embed mapping/aws/resource/directoryservice/aws_directory_service_shared_directory_accepter.json
var awsDirectoryServiceSharedDirectoryAccepter []byte

//go:embed mapping/aws/resource/directoryservice/aws_directory_service_trust.json
var awsDirectoryServiceTrust []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_application.json
var awsOpsworksApplication []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_custom_layer.json
var awsOpsworksCustomLayer []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_ecs_cluster_layer.json
var awsOpsworksEcsClusterLayer []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_ganglia_layer.json
var awsOpsworksGangliaLayer []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_haproxy_layer.json
var awsOpsworksHaproxyLayer []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_instance.json
var awsOpsworksInstance []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_java_app_layer.json
var awsOpsworksJavaAppLayer []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_memcached_layer.json
var awsOpsworksMemcachedLayer []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_mysql_layer.json
var awsOpsworksMysqlLayer []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_nodejs_app_layer.json
var awsOpsworksNodejsAppLayer []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_permission.json
var awsOpsworksPermission []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_php_app_layer.json
var awsOpsworksPhpAppLayer []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_rails_app_layer.json
var awsOpsworksRailsAppLayer []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_rds_db_instance.json
var awsOpsworksRdsDbInstance []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_stack.json
var awsOpsworksStack []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_static_web_layer.json
var awsOpsworksStaticWebLayer []byte

//go:embed mapping/aws/resource/opsworks/aws_opsworks_user_profile.json
var awsOpsworksUserProfile []byte
14 changes: 14 additions & 0 deletions src/mapping/aws/resource/directconnect/aws_dx_bgp_peer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"apply": [
"directconnect:CreateBGPPeer",
"directconnect:DeleteBGPPeer"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
20 changes: 20 additions & 0 deletions src/mapping/aws/resource/directconnect/aws_dx_connection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"directconnect:DescribeConnections",
"directconnect:CreateConnection",
"directconnect:DeleteConnection",
"directconnect:UpdateConnection",
"directconnect:DescribeTags"
],
"attributes": {
"tags": [
"directconnect:TagResource",
"directconnect:UntagResource"
]
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"apply": [],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"apply": [
"directconnect:ConfirmConnection"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"directconnect:AcceptDirectConnectGatewayAssociationProposal",
"directconnect:CreateDirectConnectGatewayAssociationProposal",
"directconnect:DeleteDirectConnectGatewayAssociationProposal"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"apply": [
"directconnect:DescribeHostedConnections",
"directconnect:AssociateHostedConnection"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"directconnect:DescribeVirtualInterfaces",
"directconnect:CreatePrivateVirtualInterface",
"directconnect:DeleteVirtualInterface"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"apply": [
"directconnect:ConfirmPrivateVirtualInterface"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"directconnect:CreatePublicVirtualInterface",
"directconnect:DescribeVirtualInterfaces",
"directconnect:DeleteVirtualInterface"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"apply": [
"directconnect:ConfirmPublicVirtualInterface"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Loading

0 comments on commit 5a6bf5f

Please sign in to comment.