Skip to content

Commit

Permalink
more aws
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Jan 28, 2025
1 parent 193b38f commit 91fd650
Show file tree
Hide file tree
Showing 75 changed files with 5,737 additions and 48 deletions.
35 changes: 35 additions & 0 deletions src/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,41 @@ var tFLookup = map[string]interface{}{ //nolint:gochecknoglobals
"aws_cloudwatch_log_delivery_source": awsCloudwatchLogDeliverySource,
"aws_cloudwatch_log_index_policy": awsCloudwatchLogIndexPolicy,
"aws_cloudwatch_log_anomaly_detector": awsCloudwatchLogAnomalyDetector,
"aws_route53profiles_association": awsRoute53profilesAssociation,
"aws_route53profiles_profile": awsRoute53profilesProfile,
"aws_servicecatalogappregistry_attribute_group": awsServicecatalogappregistryAttributeGroup,
"aws_servicecatalogappregistry_attribute_group_association": awsServicecatalogappregistryAttributeGroupAssociation,
"aws_transfer_server": awsTransferServer,
"aws_transfer_ssh_key": awsTransferSshKey,
"aws_transfer_user": awsTransferUser,
"aws_vpc_block_public_access_exclusion": awsVpcBlockPublicAccessExclusion,
"aws_vpc_block_public_access_options": awsVpcBlockPublicAccessOptions,
"aws_vpclattice_resource_configuration": awsVpclatticeResourceConfiguration,
"aws_vpclattice_resource_gateway": awsVpclatticeResourceGateway,
"aws_worklink_fleet": placeholder,
"aws_worklink_website_certificate_authority_association": placeholder,
"aws_amplify_backend_environment": awsAmplifyBackendEnvironment,
"aws_amplify_webhook": awsAmplifyWebhook,
"aws_appfabric_app_authorization": awsAppfabricAppAuthorization,
"aws_appfabric_app_authorization_connection": awsAppfabricAppAuthorizationConnection,
"aws_appfabric_app_bundle": awsAppfabricAppBundle,
"aws_appfabric_ingestion": awsAppfabricIngestion,
"aws_appfabric_ingestion_destination": awsAppfabricIngestionDestination,
"aws_apprunner_connection": awsApprunnerConnection,
"aws_apprunner_custom_domain_association": awsApprunnerCustomDomainAssociation,
"aws_apprunner_deployment": awsApprunnerDeployment,
"aws_cloud9_environment_membership": awsCloud9EnvironmentMembership,
"aws_cloudcontrolapi_resource": awsCloudcontrolapiResource,
"aws_sagemaker_flow_definition": awsSagemakerFlowDefinition,
"aws_sagemaker_hub": awsSagemakerHub,
"aws_sagemaker_mlflow_tracking_server": awsSagemakerMlflowTrackingServer,
"aws_shield_subscription": awsShieldSubscription,
"aws_spot_datafeed_subscription": awsSpotDatafeedSubscription,
"aws_ssm_activation": awsSsmActivation,
"aws_ssm_default_patch_baseline": awsSsmDefaultPatchBaseline,
"aws_ssm_service_setting": awsSsmServiceSetting,
"aws_ssmquicksetup_configuration_manager": awsSsmquicksetupConfigurationManager,
"aws_wafregional_web_acl_association": awsWafregionalWebAclAssociation,
}

// GetAWSPermissions for AWS resources.
Expand Down
37 changes: 2 additions & 35 deletions src/coverage/aws.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
# todo aws

Resource percentage coverage 76.83
Resource percentage coverage 79.10
Datasource percentage coverage 100.00

./resource.ps1 aws_amplify_backend_environment
./resource.ps1 aws_amplify_webhook
./resource.ps1 aws_appfabric_app_authorization
./resource.ps1 aws_appfabric_app_authorization_connection
./resource.ps1 aws_appfabric_app_bundle
./resource.ps1 aws_appfabric_ingestion
./resource.ps1 aws_appfabric_ingestion_destination
./resource.ps1 aws_apprunner_connection
./resource.ps1 aws_apprunner_custom_domain_association
./resource.ps1 aws_apprunner_deployment
./resource.ps1 aws_bedrockagent_agent_collaborator
./resource.ps1 aws_bedrockagent_agent_knowledge_base_association
./resource.ps1 aws_cloud9_environment_membership
./resource.ps1 aws_cloudcontrolapi_resource
./resource.ps1 aws_cloudformation_stack_instances
./resource.ps1 aws_cloudfront_vpc_origin
./resource.ps1 aws_cloudhsm_v2_cluster
Expand Down Expand Up @@ -256,9 +244,8 @@ Datasource percentage coverage 100.00
./resource.ps1 aws_resiliencehub_resiliency_policy
./resource.ps1 aws_resourcegroups_resource
./resource.ps1 aws_route53domains_delegation_signer_record
./resource.ps1 aws_route53domains_domain
./resource.ps1 aws_route53domains_registered_domain
./resource.ps1 aws_route53profiles_association
./resource.ps1 aws_route53profiles_profile
./resource.ps1 aws_route53profiles_resource_association
./resource.ps1 aws_rum_metrics_destination
./resource.ps1 aws_s3_directory_bucket
Expand All @@ -270,9 +257,6 @@ Datasource percentage coverage 100.00
./resource.ps1 aws_s3control_object_lambda_access_point
./resource.ps1 aws_s3control_object_lambda_access_point_policy
./resource.ps1 aws_s3control_storage_lens_configuration
./resource.ps1 aws_sagemaker_flow_definition
./resource.ps1 aws_sagemaker_hub
./resource.ps1 aws_sagemaker_mlflow_tracking_server
./resource.ps1 aws_securityhub_account
./resource.ps1 aws_securityhub_action_target
./resource.ps1 aws_securityhub_configuration_policy_association
Expand All @@ -289,8 +273,6 @@ Datasource percentage coverage 100.00
./resource.ps1 aws_service_discovery_public_dns_namespace
./resource.ps1 aws_service_discovery_service
./resource.ps1 aws_servicecatalog_provisioning_artifact
./resource.ps1 aws_servicecatalogappregistry_attribute_group
./resource.ps1 aws_servicecatalogappregistry_attribute_group_association
./resource.ps1 aws_sesv2_account_suppression_attributes
./resource.ps1 aws_sesv2_account_vdm_attributes
./resource.ps1 aws_sesv2_configuration_set
Expand All @@ -306,12 +288,6 @@ Datasource percentage coverage 100.00
./resource.ps1 aws_shield_drt_access_log_bucket_association
./resource.ps1 aws_shield_drt_access_role_arn_association
./resource.ps1 aws_shield_protection_health_check_association
./resource.ps1 aws_shield_subscription
./resource.ps1 aws_spot_datafeed_subscription
./resource.ps1 aws_ssm_activation
./resource.ps1 aws_ssm_default_patch_baseline
./resource.ps1 aws_ssm_service_setting
./resource.ps1 aws_ssmquicksetup_configuration_manager
./resource.ps1 aws_ssoadmin_account_assignment
./resource.ps1 aws_ssoadmin_application_access_scope
./resource.ps1 aws_ssoadmin_application_assignment_configuration
Expand All @@ -322,14 +298,9 @@ Datasource percentage coverage 100.00
./resource.ps1 aws_ssoadmin_permissions_boundary_attachment
./resource.ps1 aws_ssoadmin_trusted_token_issuer
./resource.ps1 aws_transfer_access
./resource.ps1 aws_transfer_server
./resource.ps1 aws_transfer_ssh_key
./resource.ps1 aws_transfer_tag
./resource.ps1 aws_transfer_user
./resource.ps1 aws_verifiedaccess_instance_trust_provider_attachment
./resource.ps1 aws_verifiedpermissions_schema
./resource.ps1 aws_vpc_block_public_access_exclusion
./resource.ps1 aws_vpc_block_public_access_options
./resource.ps1 aws_vpc_endpoint_connection_accepter
./resource.ps1 aws_vpc_endpoint_policy
./resource.ps1 aws_vpc_endpoint_private_dns
Expand All @@ -340,7 +311,3 @@ Datasource percentage coverage 100.00
./resource.ps1 aws_vpc_ipv6_cidr_block_association
./resource.ps1 aws_vpc_network_performance_metric_subscription
./resource.ps1 aws_vpc_security_group_vpc_association
./resource.ps1 aws_vpclattice_resource_gateway
./resource.ps1 aws_wafregional_web_acl_association
./resource.ps1 aws_worklink_fleet
./resource.ps1 aws_worklink_website_certificate_authority_association
3 changes: 2 additions & 1 deletion src/coverage/google.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# todo google

Resource percentage coverage 18.41
Datasource percentage coverage 72.32
Datasource percentage coverage 72.11

./resource.ps1 google_access_context_manager_access_level_condition
./resource.ps1 google_access_context_manager_service_perimeter_dry_run_egress_policy
Expand Down Expand Up @@ -924,6 +924,7 @@ Datasource percentage coverage 72.32
./resource.ps1 google_organization_iam_policy -type data
./resource.ps1 google_organizations -type data
./resource.ps1 google_parameter_manager_parameter -type data
./resource.ps1 google_parameter_manager_parameter_version -type data
./resource.ps1 google_parameter_manager_parameters -type data
./resource.ps1 google_parameter_manager_regional_parameter -type data
./resource.ps1 google_parameter_manager_regional_parameters -type data
Expand Down
99 changes: 99 additions & 0 deletions src/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -3240,3 +3240,102 @@ var awsCloudwatchLogIndexPolicy []byte

//go:embed mapping/aws/resource/logs/aws_cloudwatch_log_anomaly_detector.json
var awsCloudwatchLogAnomalyDetector []byte

//go:embed mapping/aws/resource/route53profiles/aws_route53profiles_association.json
var awsRoute53profilesAssociation []byte

//go:embed mapping/aws/resource/route53profiles/aws_route53profiles_profile.json
var awsRoute53profilesProfile []byte

//go:embed mapping/aws/resource/servicecatalog/aws_servicecatalogappregistry_attribute_group.json
var awsServicecatalogappregistryAttributeGroup []byte

//go:embed mapping/aws/resource/servicecatalog/aws_servicecatalogappregistry_attribute_group_association.json
var awsServicecatalogappregistryAttributeGroupAssociation []byte

//go:embed mapping/aws/resource/transfer/aws_transfer_server.json
var awsTransferServer []byte

//go:embed mapping/aws/resource/transfer/aws_transfer_ssh_key.json
var awsTransferSshKey []byte

//go:embed mapping/aws/resource/transfer/aws_transfer_user.json
var awsTransferUser []byte

//go:embed mapping/aws/resource/ec2/aws_vpc_block_public_access_exclusion.json
var awsVpcBlockPublicAccessExclusion []byte

//go:embed mapping/aws/resource/ec2/aws_vpc_block_public_access_options.json
var awsVpcBlockPublicAccessOptions []byte

//go:embed mapping/aws/resource/vpc-lattice/aws_vpclattice_resource_configuration.json
var awsVpclatticeResourceConfiguration []byte

//go:embed mapping/aws/resource/vpc-lattice/aws_vpclattice_resource_gateway.json
var awsVpclatticeResourceGateway []byte

//go:embed mapping/aws/resource/amplify/aws_amplify_backend_environment.json
var awsAmplifyBackendEnvironment []byte

//go:embed mapping/aws/resource/amplify/aws_amplify_webhook.json
var awsAmplifyWebhook []byte

//go:embed mapping/aws/resource/appfabric/aws_appfabric_app_authorization.json
var awsAppfabricAppAuthorization []byte

//go:embed mapping/aws/resource/appfabric/aws_appfabric_app_authorization_connection.json
var awsAppfabricAppAuthorizationConnection []byte

//go:embed mapping/aws/resource/appfabric/aws_appfabric_app_bundle.json
var awsAppfabricAppBundle []byte

//go:embed mapping/aws/resource/appfabric/aws_appfabric_ingestion.json
var awsAppfabricIngestion []byte

//go:embed mapping/aws/resource/appfabric/aws_appfabric_ingestion_destination.json
var awsAppfabricIngestionDestination []byte

//go:embed mapping/aws/resource/apprunner/aws_apprunner_connection.json
var awsApprunnerConnection []byte

//go:embed mapping/aws/resource/apprunner/aws_apprunner_custom_domain_association.json
var awsApprunnerCustomDomainAssociation []byte

//go:embed mapping/aws/resource/apprunner/aws_apprunner_deployment.json
var awsApprunnerDeployment []byte

//go:embed mapping/aws/resource/cloud9/aws_cloud9_environment_membership.json
var awsCloud9EnvironmentMembership []byte

//go:embed mapping/aws/resource/cloudformation/aws_cloudcontrolapi_resource.json
var awsCloudcontrolapiResource []byte

//go:embed mapping/aws/resource/sagemaker/aws_sagemaker_flow_definition.json
var awsSagemakerFlowDefinition []byte

//go:embed mapping/aws/resource/sagemaker/aws_sagemaker_hub.json
var awsSagemakerHub []byte

//go:embed mapping/aws/resource/sagemaker/aws_sagemaker_mlflow_tracking_server.json
var awsSagemakerMlflowTrackingServer []byte

//go:embed mapping/aws/resource/shield/aws_shield_subscription.json
var awsShieldSubscription []byte

//go:embed mapping/aws/resource/ec2/aws_spot_datafeed_subscription.json
var awsSpotDatafeedSubscription []byte

//go:embed mapping/aws/resource/ssm/aws_ssm_activation.json
var awsSsmActivation []byte

//go:embed mapping/aws/resource/ssm/aws_ssm_default_patch_baseline.json
var awsSsmDefaultPatchBaseline []byte

//go:embed mapping/aws/resource/ssm/aws_ssm_service_setting.json
var awsSsmServiceSetting []byte

//go:embed mapping/aws/resource/ssm-quicksetup/aws_ssmquicksetup_configuration_manager.json
var awsSsmquicksetupConfigurationManager []byte

//go:embed mapping/aws/resource/wafregional/aws_wafregional_web_acl_association.json
var awsWafregionalWebAclAssociation []byte
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"amplify:GetBackendEnvironment",
"amplify:CreateBackendEnvironment",
"amplify:DeleteBackendEnvironment"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
16 changes: 16 additions & 0 deletions src/mapping/aws/resource/amplify/aws_amplify_webhook.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"apply": [
"amplify:GetWebHook",
"amplify:CreateWebHook",
"amplify:DeleteWebHook",
"amplify:UpdateWebHook"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"apply": [
"appfabric:GetAppAuthorization",
"appfabric:CreateAppAuthorization",
"appfabric:DeleteAppAuthorization",
"appfabric:UpdateAppAuthorization"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"apply": [
"appfabric:ConnectAppAuthorization"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
19 changes: 19 additions & 0 deletions src/mapping/aws/resource/appfabric/aws_appfabric_app_bundle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"apply": [
"appfabric:GetAppBundle",
"appfabric:CreateAppBundle",
"appfabric:DeleteAppBundle",
"appfabric:ListTagsForResource"
],
"attributes": {
"tags": [
"appfabric:TagResource",
"appfabric:UntagResource"
]
},
"destroy": [],
"modify": [],
"plan": []
}
]
19 changes: 19 additions & 0 deletions src/mapping/aws/resource/appfabric/aws_appfabric_ingestion.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"apply": [
"appfabric:GetIngestion",
"appfabric:CreateIngestion",
"appfabric:DeleteIngestion",
"appfabric:ListTagsForResource"
],
"attributes": {
"tags": [
"appfabric:TagResource",
"appfabric:UntagResource"
]
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"appfabric:GetIngestionDestination",
"appfabric:CreateIngestionDestination",
"appfabric:DeleteIngestionDestination",
"appfabric:UpdateIngestionDestination",
"appfabric:ListTagsForResource"
],
"attributes": {
"tags": [
"appfabric:TagResource",
"appfabric:UntagResource"
]
},
"destroy": [],
"modify": [],
"plan": []
}
]
18 changes: 18 additions & 0 deletions src/mapping/aws/resource/apprunner/aws_apprunner_connection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"apply": [
"apprunner:CreateConnection",
"apprunner:DeleteConnection",
"apprunner:ListTagsForResource"
],
"attributes": {
"tags": [
"apprunner:TagResource",
"apprunner:UntagResource"
]
},
"destroy": [],
"modify": [],
"plan": []
}
]
Loading

0 comments on commit 91fd650

Please sign in to comment.