Skip to content

Commit

Permalink
aws datasync and fsx
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed May 2, 2024
1 parent d8d00f8 commit 62a9771
Show file tree
Hide file tree
Showing 48 changed files with 987 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
run: go test ./... -coverprofile=./cover.out

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@fa9a6909dc02281d24b410b6ee3dd8c5675a2e76 # v4.3.0
uses: codecov/codecov-action@f1b7348826d750ac29741abc9d1623d8da5dcd4f # v4.3.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
21 changes: 21 additions & 0 deletions src/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,27 @@ func AwsLookup(name string) interface{} {
"aws_bedrockagent_agent": awsBedrockagentAgent,
"aws_bedrockagent_agent_action_group": awsBedrockagentActionGroup,
"aws_bedrockagent_agent_alias": awsBedrockagentAgentAlias,
"aws_datasync_agent": awsDatasyncAgent,
"aws_datasync_location_azure_blob": awsDatasyncLocationAzureBlob,
"aws_datasync_location_efs": awsDatasyncLocationEfs,
"aws_datasync_location_fsx_lustre_file_system": awsDatasyncLocationFsxLustreFileSystem,
"aws_datasync_location_fsx_ontap_file_system": awsDatasyncLocationFsxOntapFileSystem,
"aws_datasync_location_fsx_openzfs_file_system": awsDatasyncLocationFsxOpenzfsFileSystem,
"aws_datasync_location_fsx_windows_file_system": awsDatasyncLocationFsxWindowsFileSystem,
"aws_datasync_location_hdfs": awsDatasyncLocationHdfs,
"aws_datasync_location_nfs": awsDatasyncLocationNfs,
"aws_datasync_location_object_storage": awsDatasyncLocationObjectStorage,
"aws_datasync_location_s3": awsDatasyncLocationS3,
"aws_datasync_location_smb": awsDatasyncLocationSmb,
"aws_datasync_task": awsDatasyncTask,
"aws_fsx_lustre_file_system": awsFsxLustreFileSystem,
"aws_fsx_windows_file_system": awsFsxWindowsFileSystem,
"aws_fsx_backup": awsFsxBackup,
"aws_fsx_data_repository_association": awsFsxDataRepositoryAssociation,
"aws_fsx_file_cache": awsFsxFileCache,
"aws_fsx_ontap_file_system": awsFsxOntapFileSystem,
"aws_fsx_ontap_storage_virtual_machine": awsFsxOntapStorageVirtualMachine,
"aws_fsx_ontap_volume": awsFsxOntapVolume,
}

return TFLookup[name]
Expand Down
29 changes: 6 additions & 23 deletions src/coverage/aws.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# todo aws

Resource percentage coverage 48.49
Datasource percentage coverage 99.81
Resource percentage coverage 50.33
Datasource percentage coverage 100.00

./resource.ps1 aws_accessanalyzer_archive_rule
./resource.ps1 aws_account_region
Expand Down Expand Up @@ -55,6 +55,8 @@ Datasource percentage coverage 99.81
./resource.ps1 aws_appsync_resolver
./resource.ps1 aws_appsync_type
./resource.ps1 aws_athena_prepared_statement
./resource.ps1 aws_bcmdataexports_export
./resource.ps1 aws_bedrockagent_knowledge_base
./resource.ps1 aws_chime_voice_connector
./resource.ps1 aws_chime_voice_connector_group
./resource.ps1 aws_chime_voice_connector_logging
Expand Down Expand Up @@ -97,19 +99,6 @@ Datasource percentage coverage 99.81
./resource.ps1 aws_customerprofiles_profile
./resource.ps1 aws_dataexchange_data_set
./resource.ps1 aws_dataexchange_revision
./resource.ps1 aws_datasync_agent
./resource.ps1 aws_datasync_location_azure_blob
./resource.ps1 aws_datasync_location_efs
./resource.ps1 aws_datasync_location_fsx_lustre_file_system
./resource.ps1 aws_datasync_location_fsx_ontap_file_system
./resource.ps1 aws_datasync_location_fsx_openzfs_file_system
./resource.ps1 aws_datasync_location_fsx_windows_file_system
./resource.ps1 aws_datasync_location_hdfs
./resource.ps1 aws_datasync_location_nfs
./resource.ps1 aws_datasync_location_object_storage
./resource.ps1 aws_datasync_location_s3
./resource.ps1 aws_datasync_location_smb
./resource.ps1 aws_datasync_task
./resource.ps1 aws_db_instance_automated_backups_replication
./resource.ps1 aws_db_instance_role_association
./resource.ps1 aws_db_proxy
Expand Down Expand Up @@ -243,21 +232,14 @@ Datasource percentage coverage 99.81
./resource.ps1 aws_fis_experiment_template
./resource.ps1 aws_fms_admin_account
./resource.ps1 aws_fms_policy
./resource.ps1 aws_fsx_backup
./resource.ps1 aws_fsx_data_repository_association
./resource.ps1 aws_fsx_file_cache
./resource.ps1 aws_fsx_lustre_file_system
./resource.ps1 aws_fsx_ontap_file_system
./resource.ps1 aws_fsx_ontap_storage_virtual_machine
./resource.ps1 aws_fsx_ontap_volume
./resource.ps1 aws_fsx_windows_file_system
./resource.ps1 aws_gamelift_alias
./resource.ps1 aws_gamelift_build
./resource.ps1 aws_gamelift_fleet
./resource.ps1 aws_gamelift_game_server_group
./resource.ps1 aws_gamelift_game_session_queue
./resource.ps1 aws_gamelift_script
./resource.ps1 aws_globalaccelerator_accelerator
./resource.ps1 aws_globalaccelerator_cross_account_attachment
./resource.ps1 aws_globalaccelerator_custom_routing_accelerator
./resource.ps1 aws_globalaccelerator_custom_routing_endpoint_group
./resource.ps1 aws_globalaccelerator_custom_routing_listener
Expand Down Expand Up @@ -679,6 +661,7 @@ Datasource percentage coverage 99.81
./resource.ps1 aws_transfer_user
./resource.ps1 aws_transfer_workflow
./resource.ps1 aws_verifiedaccess_instance_trust_provider_attachment
./resource.ps1 aws_verifiedpermissions_policy
./resource.ps1 aws_verifiedpermissions_policy_store
./resource.ps1 aws_verifiedpermissions_policy_template
./resource.ps1 aws_verifiedpermissions_schema
Expand Down
8 changes: 6 additions & 2 deletions src/coverage/google.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# todo google

Resource percentage coverage 21.63
Datasource percentage coverage 87.10
Resource percentage coverage 21.58
Datasource percentage coverage 86.48

./resource.ps1 google_access_context_manager_access_level_condition
./resource.ps1 google_access_context_manager_service_perimeter_dry_run_resource
Expand Down Expand Up @@ -221,6 +221,7 @@ Datasource percentage coverage 87.10
./resource.ps1 google_compute_router_interface
./resource.ps1 google_compute_router_nat
./resource.ps1 google_compute_router_peer
./resource.ps1 google_compute_security_policy_rule
./resource.ps1 google_compute_service_attachment
./resource.ps1 google_compute_shared_vpc_host_project
./resource.ps1 google_compute_shared_vpc_service_project
Expand Down Expand Up @@ -618,6 +619,7 @@ Datasource percentage coverage 87.10
./resource.ps1 google_privateca_certificate_template_iam_binding
./resource.ps1 google_privateca_certificate_template_iam_member
./resource.ps1 google_privateca_certificate_template_iam_policy
./resource.ps1 google_privileged_access_manager_entitlement
./resource.ps1 google_project
./resource.ps1 google_project_access_approval_settings
./resource.ps1 google_project_default_service_accounts
Expand Down Expand Up @@ -737,6 +739,8 @@ Datasource percentage coverage 87.10
./resource.ps1 google_runtimeconfig_variable -type data
./resource.ps1 google_scc_source_iam_policy -type data
./resource.ps1 google_secure_source_manager_instance_iam_policy -type data
./resource.ps1 google_storage_bucket_objects -type data
./resource.ps1 google_storage_buckets -type data
./resource.ps1 google_tags_tag_key_iam_policy -type data
./resource.ps1 google_tags_tag_keys -type data
./resource.ps1 google_tags_tag_value -type data
Expand Down
63 changes: 63 additions & 0 deletions src/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -1842,3 +1842,66 @@ var awsBedrockagentActionGroup []byte

//go:embed mapping/aws/resource/bedrock/aws_bedrockagent_agent_alias.json
var awsBedrockagentAgentAlias []byte

//go:embed mapping/aws/resource/datasync/aws_datasync_agent.json
var awsDatasyncAgent []byte

//go:embed mapping/aws/resource/datasync/aws_datasync_location_azure_blob.json
var awsDatasyncLocationAzureBlob []byte

//go:embed mapping/aws/resource/datasync/aws_datasync_location_efs.json
var awsDatasyncLocationEfs []byte

//go:embed mapping/aws/resource/datasync/aws_datasync_location_fsx_lustre_file_system.json
var awsDatasyncLocationFsxLustreFileSystem []byte

//go:embed mapping/aws/resource/datasync/aws_datasync_location_fsx_ontap_file_system.json
var awsDatasyncLocationFsxOntapFileSystem []byte

//go:embed mapping/aws/resource/datasync/aws_datasync_location_fsx_openzfs_file_system.json
var awsDatasyncLocationFsxOpenzfsFileSystem []byte

//go:embed mapping/aws/resource/datasync/aws_datasync_location_fsx_windows_file_system.json
var awsDatasyncLocationFsxWindowsFileSystem []byte

//go:embed mapping/aws/resource/datasync/aws_datasync_location_hdfs.json
var awsDatasyncLocationHdfs []byte

//go:embed mapping/aws/resource/datasync/aws_datasync_location_nfs.json
var awsDatasyncLocationNfs []byte

//go:embed mapping/aws/resource/datasync/aws_datasync_location_object_storage.json
var awsDatasyncLocationObjectStorage []byte

//go:embed mapping/aws/resource/datasync/aws_datasync_location_s3.json
var awsDatasyncLocationS3 []byte

//go:embed mapping/aws/resource/datasync/aws_datasync_location_smb.json
var awsDatasyncLocationSmb []byte

//go:embed mapping/aws/resource/datasync/aws_datasync_task.json
var awsDatasyncTask []byte

//go:embed mapping/aws/resource/fsx/aws_fsx_lustre_file_system.json
var awsFsxLustreFileSystem []byte

//go:embed mapping/aws/resource/fsx/aws_fsx_windows_file_system.json
var awsFsxWindowsFileSystem []byte

//go:embed mapping/aws/resource/fsx/aws_fsx_backup.json
var awsFsxBackup []byte

//go:embed mapping/aws/resource/fsx/aws_fsx_data_repository_association.json
var awsFsxDataRepositoryAssociation []byte

//go:embed mapping/aws/resource/fsx/aws_fsx_file_cache.json
var awsFsxFileCache []byte

//go:embed mapping/aws/resource/fsx/aws_fsx_ontap_file_system.json
var awsFsxOntapFileSystem []byte

//go:embed mapping/aws/resource/fsx/aws_fsx_ontap_storage_virtual_machine.json
var awsFsxOntapStorageVirtualMachine []byte

//go:embed mapping/aws/resource/fsx/aws_fsx_ontap_volume.json
var awsFsxOntapVolume []byte
23 changes: 23 additions & 0 deletions src/mapping/aws/resource/datasync/aws_datasync_agent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"apply": [
"datasync:UpdateAgent",
"datasync:DeleteAgent",
"datasync:CreateAgent",
"datasync:DescribeAgent"
],
"attributes": {
"tags": [
"datasync:TagResource",
"datasync:UntagResource"
]
},
"destroy": [
"datasync:DeleteAgent"
],
"modify": [
"datasync:UpdateAgent"
],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"apply": [
"datasync:UpdateLocationAzureBlob",
"datasync:CreateLocationAzureBlob",
"datasync:DescribeLocationAzureBlob"
],
"attributes": {
"tags": [
"datasync:TagResource",
"datasync:UntagResource"
]
},
"destroy": [
"datasync:DeleteLocation"
],
"modify": [
"datasync:UpdateLocationAzureBlob"
],
"plan": []
}
]
19 changes: 19 additions & 0 deletions src/mapping/aws/resource/datasync/aws_datasync_location_efs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"apply": [
"datasync:DescribeLocationEfs",
"datasync:CreateLocationEfs"
],
"attributes": {
"tags": [
"datasync:TagResource",
"datasync:UntagResource"
]
},
"destroy": [
"datasync:DeleteLocation"
],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"apply": [
"datasync:DescribeLocationFsxLustre",
"datasync:CreateLocationFsxLustre",
"datasync:DeleteLocation"
],
"attributes": {
"tags": [
"datasync:TagResource",
"datasync:UntagResource"
]
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"datasync:DescribeLocationFsxOntap",
"datasync:CreateLocationFsxOntap",
"datasync:DeleteLocation"
],
"attributes": {
"tags": [
"datasync:TagResource",
"datasync:UntagResource"
]
},
"destroy": [
"datasync:DeleteLocation"
],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"datasync:DescribeLocationFsxOpenZfs",
"datasync:CreateLocationFsxOpenZfs",
"datasync:DeleteLocation"
],
"attributes": {
"tags": [
"datasync:TagResource",
"datasync:UntagResource"
]
},
"destroy": [
"datasync:DeleteLocation"
],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"apply": [
"datasync:CreateLocationFsxWindows",
"datasync:DescribeLocationFsxWindows"
],
"attributes": {
"tags": [
"datasync:TagResource",
"datasync:UntagResource"
]
},
"destroy": [
"datasync:DeleteLocation"
],
"modify": [],
"plan": []
}
]
23 changes: 23 additions & 0 deletions src/mapping/aws/resource/datasync/aws_datasync_location_hdfs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"apply": [
"datasync:UpdateLocationHdfs",
"datasync:CreateLocationHdfs",
"datasync:DeleteLocation",
"datasync:DescribeLocationHdfs"
],
"attributes": {
"tags": [
"datasync:TagResource",
"datasync:UntagResource"
]
},
"destroy": [
"datasync:DeleteLocation"
],
"modify": [
"datasync:UpdateLocationHdfs"
],
"plan": []
}
]
Loading

0 comments on commit 62a9771

Please sign in to comment.