Skip to content

Commit

Permalink
new aws datasources
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Oct 22, 2024
1 parent 8a5fae2 commit f6562e7
Show file tree
Hide file tree
Showing 14 changed files with 383 additions and 288 deletions.
517 changes: 261 additions & 256 deletions src/aws_datasource.go

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions src/coverage/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,3 @@ Datasource percentage coverage 99.11
./resource.ps1 aws_wafregional_web_acl_association
./resource.ps1 aws_worklink_fleet
./resource.ps1 aws_worklink_website_certificate_authority_association
./resource.ps1 aws_bedrock_inference_profile -type data
./resource.ps1 aws_bedrock_inference_profiles -type data
./resource.ps1 aws_elasticache_serverless_cache -type data
./resource.ps1 aws_prometheus_default_scraper_configuration -type data
./resource.ps1 aws_route53profiles_profiles -type data
15 changes: 15 additions & 0 deletions src/files_datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -1512,3 +1512,18 @@ var dataAwsSyntheticsRuntimeVersion []byte

//go:embed mapping/aws/data/synthetics/aws_synthetics_runtime_versions.json
var dataAwsSytheticsRuntimeVersions []byte

//go:embed mapping/aws/data/bedrock/aws_bedrock_inference_profile.json
var dataAwsBedrockInferenceProfile []byte

//go:embed mapping/aws/data/bedrock/aws_bedrock_inference_profiles.json
var dataAwsBedrockInferenceProfiles []byte

//go:embed mapping/aws/data/elasticache/aws_elasticache_serverless_cache.json
var dataAwsElasticacheServerlessCache []byte

//go:embed mapping/aws/data/aps/aws_prometheus_default_scraper_configuration.json
var dataAwsPrometheusDefaultScarperConfiguration []byte

//go:embed mapping/aws/data/route53profiles/aws_route53profiles_profiles.json
var dataAwsRoute53profilesProfiles []byte
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"apply": [],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": [
"aps:GetDefaultScraperConfiguration"
]
}
]
13 changes: 13 additions & 0 deletions src/mapping/aws/data/bedrock/aws_bedrock_inference_profile.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"apply": [],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": [
"bedrock:GetInferenceProfile"
]
}
]
13 changes: 13 additions & 0 deletions src/mapping/aws/data/bedrock/aws_bedrock_inference_profiles.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"apply": [],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": [
"bedrock:ListInferenceProfiles"
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"apply": [],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": [
"elasticache:DescribeServerlessCaches"
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"apply": [],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": [
"route53profiles:ListProfiles"
]
}
]
7 changes: 7 additions & 0 deletions terraform/aws/backup/data.aws_bedrock_inference_profile.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
data "aws_bedrock_inference_profile" "pike" {
inference_profile_id = "pike"
}

output "aws_bedrock_inference_profile" {
value = data.aws_bedrock_inference_profile.pike
}
6 changes: 6 additions & 0 deletions terraform/aws/backup/data.aws_bedrock_inference_profiles.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
data "aws_bedrock_inference_profiles" "pike" {
}

output "aws_bedrock_inference_profiles" {
value = data.aws_bedrock_inference_profiles.pike
}
7 changes: 7 additions & 0 deletions terraform/aws/backup/data.aws_elasticache_serverless_cache.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
data "aws_elasticache_serverless_cache" "pike" {
name = "pike"
}

output "aws_elasticache_serverless_cache" {
value = data.aws_elasticache_serverless_cache.pike
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
data "aws_prometheus_default_scraper_configuration" "pike" {
}

output "aws_prometheus_default_scraper_configuration" {
value = data.aws_prometheus_default_scraper_configuration.pike
}
6 changes: 6 additions & 0 deletions terraform/aws/backup/data.aws_route53profiles_profiles.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
data "aws_route53profiles_profiles" "pike" {
}

output "aws_route53profiles_profiles" {
value = data.aws_route53profiles_profiles.pike
}
37 changes: 10 additions & 27 deletions terraform/aws/role/aws_iam_policy.basic.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,20 @@ resource "aws_iam_policy" "basic" {
"Sid" : "VisualEditor0",
"Effect" : "Allow",
"Action" : [
//aws_quicksight_account_subscription
"quicksight:DescribeAccountSubscription",
"quicksight:CreateAccountSubscription",
"quicksight:DeleteAccountSubscription",
//aws_bedrock_inference_profile
"bedrock:GetInferenceProfile",

//aws_quicksight_folder_membership
"quicksight:CreateFolderMembership",
"quicksight:DeleteFolderMembership",
//aws_bedrock_inference_profiles
"bedrock:ListInferenceProfiles",

//aws_quicksight_iam_policy_assignment
"quicksight:DescribeIAMPolicyAssignment",
"quicksight:CreateIAMPolicyAssignment",
"quicksight:DeleteIAMPolicyAssignment",
"quicksight:UpdateIAMPolicyAssignment",
//aws_elasticache_serverless_cache
"elasticache:DescribeServerlessCaches",

//aws_quicksight_ingestion
"quicksight:DescribeIngestion",
"quicksight:CreateIngestion",
"quicksight:CancelIngestion",
//aws_prometheus_default_scraper_configuration
"aps:GetDefaultScraperConfiguration",

//aws_quicksight_template_alias
"quicksight:DescribeTemplateAlias",
"quicksight:CreateTemplateAlias",
"quicksight:DeleteTemplateAlias",
"quicksight:UpdateTemplateAlias",

//aws_quicksight_vpc_connection
"quicksight:DescribeVPCConnection",
"quicksight:CreateVPCConnection",
"quicksight:DeleteVPCConnection",
"quicksight:UpdateVPCConnection"
//aws_route53profiles_profiles
"route53profiles:ListProfiles"
],
"Resource" : [
"*"
Expand Down

0 comments on commit f6562e7

Please sign in to comment.