Skip to content

Commit

Permalink
aws resources
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Jan 29, 2025
1 parent 91fd650 commit cf624b6
Show file tree
Hide file tree
Showing 32 changed files with 307 additions and 26 deletions.
14 changes: 14 additions & 0 deletions src/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -1185,6 +1185,20 @@ var tFLookup = map[string]interface{}{ //nolint:gochecknoglobals
"aws_ssm_service_setting": awsSsmServiceSetting,
"aws_ssmquicksetup_configuration_manager": awsSsmquicksetupConfigurationManager,
"aws_wafregional_web_acl_association": awsWafregionalWebAclAssociation,
"aws_bedrockagent_agent_collaborator": awsBedrockagentAgentCollaborator,
"aws_bedrockagent_agent_knowledge_base_association": awsBedrockagentKnowledgeBaseAssociation,
"aws_cloudformation_stack_instances": awsCloudformationStackInstances,
"aws_cloudfront_vpc_origin": awsCloudfrontVpcOrigin,
"aws_cloudhsm_v2_cluster": awsCloudhsmV2Vluster,
"aws_cloudhsm_v2_hsm": awsCloudhsmV2Hsm,
"aws_cloudtrail_organization_delegated_admin_account": awsCloudtrailOrganizationDelegatedAdminAccount,
"aws_codeconnections_host": awsCodeconnectionsHost,
"aws_comprehend_entity_recognizer": awsComprehendEntityRecognizer,
"aws_computeoptimizer_enrollment_status": awsComputeoptimizerEnrollmentStatus,
"aws_computeoptimizer_recommendation_preferences": awsComputeoptimizerRecommendationPreferences,
"aws_config_organization_custom_policy_rule": awsConfigOrganizationCustomPolicyRule,
"aws_config_organization_custom_rule": awsConfigOrganizationCustomRule,
"aws_config_retention_configuration": awsConfigRetentionConfiguration,
}

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

Resource percentage coverage 79.10
Resource percentage coverage 80.05
Datasource percentage coverage 100.00

./resource.ps1 aws_bedrockagent_agent_collaborator
./resource.ps1 aws_bedrockagent_agent_knowledge_base_association
./resource.ps1 aws_cloudformation_stack_instances
./resource.ps1 aws_cloudfront_vpc_origin
./resource.ps1 aws_cloudhsm_v2_cluster
./resource.ps1 aws_cloudhsm_v2_hsm
./resource.ps1 aws_cloudtrail_organization_delegated_admin_account
./resource.ps1 aws_codeconnections_host
./resource.ps1 aws_cognito_managed_user_pool_client
./resource.ps1 aws_comprehend_entity_recognizer
./resource.ps1 aws_computeoptimizer_enrollment_status
./resource.ps1 aws_computeoptimizer_recommendation_preferences
./resource.ps1 aws_config_organization_custom_policy_rule
./resource.ps1 aws_config_organization_custom_rule
./resource.ps1 aws_config_retention_configuration
./resource.ps1 aws_connect_lambda_function_association
./resource.ps1 aws_costoptimizationhub_enrollment_status
./resource.ps1 aws_costoptimizationhub_preferences
Expand Down
42 changes: 42 additions & 0 deletions src/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -3339,3 +3339,45 @@ var awsSsmquicksetupConfigurationManager []byte

//go:embed mapping/aws/resource/wafregional/aws_wafregional_web_acl_association.json
var awsWafregionalWebAclAssociation []byte

//go:embed mapping/aws/resource/bedrock/aws_bedrockagent_agent_collaborator.json
var awsBedrockagentAgentCollaborator []byte

//go:embed mapping/aws/resource/bedrock/aws_bedrockagent_agent_knowledge_base_association.json
var awsBedrockagentKnowledgeBaseAssociation []byte

//go:embed mapping/aws/resource/cloudformation/aws_cloudformation_stack_instances.json
var awsCloudformationStackInstances []byte

//go:embed mapping/aws/resource/cloudfront/aws_cloudfront_vpc_origin.json
var awsCloudfrontVpcOrigin []byte

//go:embed mapping/aws/resource/cloudhsm/aws_cloudhsm_v2_cluster.json
var awsCloudhsmV2Vluster []byte

//go:embed mapping/aws/resource/cloudhsm/aws_cloudhsm_v2_hsm.json
var awsCloudhsmV2Hsm []byte

//go:embed mapping/aws/resource/cloudtrail/aws_cloudtrail_organization_delegated_admin_account.json
var awsCloudtrailOrganizationDelegatedAdminAccount []byte

//go:embed mapping/aws/resource/codeconnections/aws_codeconnections_host.json
var awsCodeconnectionsHost []byte

//go:embed mapping/aws/resource/comprehend/aws_comprehend_entity_recognizer.json
var awsComprehendEntityRecognizer []byte

//go:embed mapping/aws/resource/compute-optimizer/aws_computeoptimizer_enrollment_status.json
var awsComputeoptimizerEnrollmentStatus []byte

//go:embed mapping/aws/resource/compute-optimizer/aws_computeoptimizer_recommendation_preferences.json
var awsComputeoptimizerRecommendationPreferences []byte

//go:embed mapping/aws/resource/config/aws_config_organization_custom_policy_rule.json
var awsConfigOrganizationCustomPolicyRule []byte

//go:embed mapping/aws/resource/config/aws_config_organization_custom_rule.json
var awsConfigOrganizationCustomRule []byte

//go:embed mapping/aws/resource/config/aws_config_retention_configuration.json
var awsConfigRetentionConfiguration []byte
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"apply": [
"bedrock:GetAgentCollaborator",
"bedrock:AssociateAgentCollaborator",
"bedrock:DisassociateAgentCollaborator",
"bedrock:UpdateAgentCollaborator"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"apply": [
"bedrock:DisassociateAgentKnowledgeBase",
"bedrock:AssociateAgentKnowledgeBase",
"bedrock:GetAgentKnowledgeBase",
"bedrock:UpdateAgentKnowledgeBase"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"apply": [
"cloudformation:UpdateStackInstances",
"cloudformation:DeleteStackInstances",
"cloudformation:CreateStackInstances",
"cloudformation:ListStackInstances"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
20 changes: 20 additions & 0 deletions src/mapping/aws/resource/cloudfront/aws_cloudfront_vpc_origin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"cloudfront:GetVpcOrigin",
"cloudfront:CreateVpcOrigin",
"cloudfront:DeleteVpcOrigin",
"cloudfront:UpdateVpcOrigin",
"cloudfront:ListTagsForResource"
],
"attributes": {
"tags": [
"cloudfront:TagResource",
"cloudfront:UntagResource"
]
},
"destroy": [],
"modify": [],
"plan": []
}
]
20 changes: 20 additions & 0 deletions src/mapping/aws/resource/cloudhsm/aws_cloudhsm_v2_cluster.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"cloudhsm:DescribeClusters",
"cloudhsm:CreateCluster",
"cloudhsm:DeleteCluster",
"cloudhsm:ModifyCluster",
"cloudhsm:ListTags"
],
"attributes": {
"tags": [
"cloudhsm:TagResource",
"cloudhsm:UntagResource"
]
},
"destroy": [],
"modify": [],
"plan": []
}
]
14 changes: 14 additions & 0 deletions src/mapping/aws/resource/cloudhsm/aws_cloudhsm_v2_hsm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"apply": [
"cloudhsm:CreateHsm",
"cloudhsm:DeleteHsm"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"apply": [
"cloudtrail:DeregisterOrganizationDelegatedAdmin",
"cloudtrail:RegisterOrganizationDelegatedAdmin"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"codeconnections:GetHost",
"codeconnections:CreateHost",
"codeconnections:DeleteHost",
"codeconnections:UpdateHost",
"codeconnections:ListTagsForResource"
],
"attributes": {
"tags": [
"codeconnections:TagResource",
"codeconnections:UntagResource"
]
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"comprehend:CreateEntityRecognizer",
"comprehend:DeleteEntityRecognizer",
"comprehend:ListEntityRecognizers"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"apply": [
"compute-optimizer:GetEnrollmentStatus",
"compute-optimizer:UpdateEnrollmentStatus"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"compute-optimizer:DeleteRecommendationPreferences",
"compute-optimizer:PutRecommendationPreferences",
"compute-optimizer:GetRecommendationPreferences"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"config:GetOrganizationCustomRulePolicy"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": [
"config:GetOrganizationCustomRulePolicy"
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"config:DeleteOrganizationConfigRule",
"config:PutOrganizationConfigRule",
"config:DescribeOrganizationConfigRules"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"config:DescribeRetentionConfigurations",
"config:DeleteRetentionConfiguration",
"config:PutRetentionConfiguration"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
22 changes: 11 additions & 11 deletions src/mapping/aws/resource/template.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[
{
"apply": [],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
[
{
"apply": [],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_bedrockagent_agent_collaborator" "pike" {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_bedrockagent_agent_knowledge_base_association" "pike" {}
1 change: 1 addition & 0 deletions terraform/aws/backup/aws_cloudformation_stack_instances.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_cloudformation_stack_instances" "pike" {}
1 change: 1 addition & 0 deletions terraform/aws/backup/aws_cloudfront_vpc_origin.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_cloudfront_vpc_origin" "pike" {}
1 change: 1 addition & 0 deletions terraform/aws/backup/aws_cloudhsm_v2_cluster.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_cloudhsm_v2_cluster" "pike" {}
1 change: 1 addition & 0 deletions terraform/aws/backup/aws_cloudhsm_v2_hsm.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_cloudhsm_v2_hsm" "pike" {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_cloudtrail_organization_delegated_admin_account" "pike" {}
1 change: 1 addition & 0 deletions terraform/aws/backup/aws_codeconnections_host.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_codeconnections_host" "pike" {}
1 change: 1 addition & 0 deletions terraform/aws/backup/aws_comprehend_entity_recognizer.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_comprehend_entity_recognizer" "pike" {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_computeoptimizer_enrollment_status" "pike" {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_computeoptimizer_recommendation_preferences" "pike" {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_config_organization_custom_policy_rule" "pike" {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_config_organization_custom_rule" "pike" {}
1 change: 1 addition & 0 deletions terraform/aws/backup/aws_config_retention_configuration.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_config_retention_configuration" "pike" {}

0 comments on commit cf624b6

Please sign in to comment.