Skip to content

Commit

Permalink
more aws
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Feb 3, 2025
1 parent 4c8d6db commit 6da5560
Show file tree
Hide file tree
Showing 41 changed files with 421 additions and 19 deletions.
19 changes: 19 additions & 0 deletions src/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,25 @@ var tFLookup = map[string]interface{}{ //nolint:gochecknoglobals
"aws_rds_custom_db_engine_version": awsRdsCustomDbEngineVersion,
"aws_rds_export_task": awsRdsExportTask,
"aws_rds_reserved_instance": awsRdsReservedInstance,
"aws_dataexchange_data_set": awsDataexchangeDataSet,
"aws_dataexchange_revision": awsDataexchangeRevision,
"aws_devopsguru_event_sources_config": awsDevopsguruEventSourcesConfig,
"aws_devopsguru_service_integration": awsDevopsguruServiceIntegration,
"aws_drs_replication_configuration_template": awsDrsReplicationConfigurationTemplate,
"aws_elastictranscoder_pipeline": awsElastictranscoderPipeline,
"aws_elastictranscoder_preset": awsElastictranscoderPreset,
"aws_kinesis_analytics_application": awsKinesisanalyticsApplication,
"aws_kinesisanalyticsv2_application_snapshot": awsKinesisanalyticsv2ApplicationSnapshot,
"aws_lakeformation_lf_tag": awsLakeformationLfTag,
"aws_lakeformation_resource_lf_tags": awsLakeformationResourceLfTags,
"aws_lambda_function_recursion_config": awsLambdaFunctionRecursionConfig,
"aws_lambda_runtime_management_config": awsLambdaRuntimeManagementConfig,
"aws_licensemanager_association": awsLicensemanagerAssociation,
"aws_licensemanager_grant_accepter": awsLicensemanagerGrantAccepter,
"aws_media_packagev2_channel_group": awsMediaPackagev2ChannelGroup,
"aws_media_store_container": awsMediaStoreContainer,
"aws_media_store_container_policy": awsMediaStoreContainerPolicy,
"aws_medialive_channel": awsMedialiveChannel,
}

// GetAWSPermissions for AWS resources.
Expand Down
19 changes: 0 additions & 19 deletions src/coverage/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,17 @@ Resource percentage coverage 82.43
Datasource percentage coverage 100.00

./resource.ps1 aws_cognito_managed_user_pool_client
./resource.ps1 aws_dataexchange_data_set
./resource.ps1 aws_dataexchange_revision
./resource.ps1 aws_devicefarm_device_pool
./resource.ps1 aws_devicefarm_instance_profile
./resource.ps1 aws_devicefarm_network_profile
./resource.ps1 aws_devicefarm_project
./resource.ps1 aws_devicefarm_upload
./resource.ps1 aws_devopsguru_event_sources_config
./resource.ps1 aws_devopsguru_service_integration
./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_drs_replication_configuration_template
./resource.ps1 aws_dx_bgp_peer
./resource.ps1 aws_dx_connection
./resource.ps1 aws_dx_connection_association
Expand Down Expand Up @@ -64,8 +59,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_elastictranscoder_pipeline
./resource.ps1 aws_elastictranscoder_preset
./resource.ps1 aws_finspace_kx_cluster
./resource.ps1 aws_finspace_kx_database
./resource.ps1 aws_finspace_kx_dataview
Expand All @@ -90,12 +83,6 @@ Datasource percentage coverage 100.00
./resource.ps1 aws_iot_policy_attachment
./resource.ps1 aws_iot_thing_group_membership
./resource.ps1 aws_iot_thing_principal_attachment
./resource.ps1 aws_kinesis_analytics_application
./resource.ps1 aws_kinesisanalyticsv2_application_snapshot
./resource.ps1 aws_lakeformation_lf_tag
./resource.ps1 aws_lakeformation_resource_lf_tags
./resource.ps1 aws_lambda_function_recursion_config
./resource.ps1 aws_lambda_runtime_management_config
./resource.ps1 aws_lb_listener_certificate
./resource.ps1 aws_lb_ssl_negotiation_policy
./resource.ps1 aws_lexv2models_bot
Expand All @@ -104,8 +91,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_licensemanager_association
./resource.ps1 aws_licensemanager_grant_accepter
./resource.ps1 aws_lightsail_bucket_access_key_access_key
./resource.ps1 aws_lightsail_bucket_resource_access
./resource.ps1 aws_lightsail_container_service
Expand All @@ -125,10 +110,6 @@ Datasource percentage coverage 100.00
./resource.ps1 aws_macie2_member
./resource.ps1 aws_macie2_organization_admin_account
./resource.ps1 aws_main_route_table_association
./resource.ps1 aws_media_packagev2_channel_group
./resource.ps1 aws_media_store_container
./resource.ps1 aws_media_store_container_policy
./resource.ps1 aws_medialive_channel
./resource.ps1 aws_memorydb_multi_region_cluster
./resource.ps1 aws_msk_single_scram_secret_association
./resource.ps1 aws_mskconnect_connector
Expand Down
62 changes: 62 additions & 0 deletions src/files_aws.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
package pike

import (
_ "embed" // required for embed
)

//go:embed mapping/aws/resource/dataexchange/aws_dataexchange_data_set.json
var awsDataexchangeDataSet []byte

//go:embed mapping/aws/resource/dataexchange/aws_dataexchange_revision.json
var awsDataexchangeRevision []byte

//go:embed mapping/aws/resource/devops-guru/aws_devopsguru_event_sources_config.json
var awsDevopsguruEventSourcesConfig []byte

//go:embed mapping/aws/resource/devops-guru/aws_devopsguru_service_integration.json
var awsDevopsguruServiceIntegration []byte

//go:embed mapping/aws/resource/drs/aws_drs_replication_configuration_template.json
var awsDrsReplicationConfigurationTemplate []byte

//go:embed mapping/aws/resource/elastictranscoder/aws_elastictranscoder_pipeline.json
var awsElastictranscoderPipeline []byte

//go:embed mapping/aws/resource/elastictranscoder/aws_elastictranscoder_preset.json
var awsElastictranscoderPreset []byte

//go:embed mapping/aws/resource/kinesisanalytics/aws_kinesis_analytics_application.json
var awsKinesisanalyticsApplication []byte

//go:embed mapping/aws/resource/kinesisanalytics/aws_kinesisanalyticsv2_application_snapshot.json
var awsKinesisanalyticsv2ApplicationSnapshot []byte

//go:embed mapping/aws/resource/lakeformation/aws_lakeformation_lf_tag.json
var awsLakeformationLfTag []byte

//go:embed mapping/aws/resource/lakeformation/aws_lakeformation_resource_lf_tags.json
var awsLakeformationResourceLfTags []byte

//go:embed mapping/aws/resource/lambda/aws_lambda_function_recursion_config.json
var awsLambdaFunctionRecursionConfig []byte

//go:embed mapping/aws/resource/lambda/aws_lambda_runtime_management_config.json
var awsLambdaRuntimeManagementConfig []byte

//go:embed mapping/aws/resource/license-manager/aws_licensemanager_association.json
var awsLicensemanagerAssociation []byte

//go:embed mapping/aws/resource/license-manager/aws_licensemanager_grant_accepter.json
var awsLicensemanagerGrantAccepter []byte

//go:embed mapping/aws/resource/mediapackagev2/aws_media_packagev2_channel_group.json
var awsMediaPackagev2ChannelGroup []byte

//go:embed mapping/aws/resource/mediastore/aws_media_store_container.json
var awsMediaStoreContainer []byte

//go:embed mapping/aws/resource/mediastore/aws_media_store_container_policy.json
var awsMediaStoreContainerPolicy []byte

//go:embed mapping/aws/resource/medialive/aws_medialive_channel.json
var awsMedialiveChannel []byte
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"apply": [
"dataexchange:GetDataSet",
"dataexchange:CreateDataSet",
"dataexchange:DeleteDataSet",
"dataexchange:UpdateDataSet"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"apply": [
"dataexchange:GetRevision",
"dataexchange:CreateRevision",
"dataexchange:DeleteRevision",
"dataexchange:UpdateRevision"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"apply": [
"devops-guru:DescribeEventSourcesConfig",
"devops-guru:UpdateEventSourcesConfig"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"apply": [
"devops-guru:UpdateServiceIntegration",
"devops-guru:DescribeServiceIntegration"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"drs:CreateReplicationConfigurationTemplate",
"drs:DescribeReplicationConfigurationTemplates",
"drs:DeleteReplicationConfigurationTemplate",
"drs:UpdateReplicationConfigurationTemplate",
"drs:ListTagsForResource"
],
"attributes": {
"tags": [
"drs:TagResource",
"drs:UntagResource"
]
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"elastictranscoder:ReadPipeline",
"elastictranscoder:CreatePipeline",
"elastictranscoder:DeletePipeline"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"elastictranscoder:ReadPreset",
"elastictranscoder:CreatePreset",
"elastictranscoder:DeletePreset"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"kinesisanalytics:DescribeApplication",
"kinesisanalytics:CreateApplication",
"kinesisanalytics:DeleteApplication",
"kinesisanalytics:UpdateApplication",
"kinesisanalytics:ListTagsForResource"
],
"attributes": {
"tags": [
"kinesisanalytics:TagResource",
"kinesisanalytics:UntagResource"
]
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"kinesisanalytics:CreateApplicationSnapshot",
"kinesisanalytics:DeleteApplicationSnapshot",
"kinesisanalytics:DescribeApplicationSnapshot"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"apply": [
"lakeformation:CreateLFTag",
"lakeformation:DeleteLFTag",
"lakeformation:UpdateLFTag",
"lakeformation:GetLFTag"
],
"attributes": {
"tags": []
},
"destroy": [
"lakeformation:DeleteLFTag"
],
"modify": [
"lakeformation:UpdateLFTag"
],
"plan": [
"lakeformation:GetLFTag"
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"apply": [
"lakeformation:CreateLFTag",
"lakeformation:DeleteLFTag",
"lakeformation:GetLFTag",
"lakeformation:UpdateLFTag",
"lakeformation:GetResourceLFTags"
],
"attributes": {
"tags": []
},
"destroy": [
"lakeformation:DeleteLFTag"
],
"modify": [
"lakeformation:UpdateLFTag"
],
"plan": [
"lakeformation:GetLFTag"
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"apply": [
"lambda:GetFunctionRecursionConfig",
"lambda:PutFunctionRecursionConfig"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"apply": [
"lambda:GetRuntimeManagementConfig",
"lambda:PutRuntimeManagementConfig"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"apply": [
"license-manager:ListAssociationsForLicenseConfiguration"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Loading

0 comments on commit 6da5560

Please sign in to comment.