Skip to content

Commit

Permalink
quicksight
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Oct 10, 2024
1 parent 41b5bc6 commit 08ef922
Show file tree
Hide file tree
Showing 31 changed files with 380 additions and 161 deletions.
13 changes: 13 additions & 0 deletions src/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,19 @@ func AwsLookup(name string) interface{} {
"aws_quicksight_group_membership": awsQuicksightGroupMembership,
"aws_quicksight_namespace": awsQuicksightNamespace,
"aws_quicksight_user": awsQuicksightUser,
"aws_datazone_asset_type": awsDatazoneAssetType,
"aws_datazone_environment": awsDatazoneEnvironment,
"aws_datazone_environment_profile": awsDatazoneEnvironmentProfile,
"aws_datazone_form_type": awsDatazoneFormType,
"aws_datazone_glossary": awsDatazoneGlossary,
"aws_datazone_glossary_term": awsDatazoneGlossaryTerm,
"aws_datazone_user_profile": awsDatazoneUserProfile,
"aws_quicksight_account_subscription": awsQuicksightAccountSubscription,
"aws_quicksight_folder_membership": awsQuicksightFolderMembership,
"aws_quicksight_iam_policy_assignment": awsQuicksightIamPolicyAssignment,
"aws_quicksight_ingestion": awsQuicksightIngestion,
"aws_quicksight_template_alias": awsQuicksightTemplateAlias,
"aws_quicksight_vpc_connection": awsQuicksightVpcConnection,
}

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

Resource percentage coverage 73.18
Resource percentage coverage 74.09
Datasource percentage coverage 100.00

./resource.ps1 aws_amplify_backend_environment
Expand Down Expand Up @@ -62,13 +62,6 @@ Datasource percentage coverage 100.00
./resource.ps1 aws_customerprofiles_profile
./resource.ps1 aws_dataexchange_data_set
./resource.ps1 aws_dataexchange_revision
./resource.ps1 aws_datazone_asset_type
./resource.ps1 aws_datazone_environment
./resource.ps1 aws_datazone_environment_profile
./resource.ps1 aws_datazone_form_type
./resource.ps1 aws_datazone_glossary
./resource.ps1 aws_datazone_glossary_term
./resource.ps1 aws_datazone_user_profile
./resource.ps1 aws_detective_member
./resource.ps1 aws_detective_organization_configuration
./resource.ps1 aws_devicefarm_device_pool
Expand Down Expand Up @@ -108,7 +101,6 @@ Datasource percentage coverage 100.00
./resource.ps1 aws_ebs_fast_snapshot_restore
./resource.ps1 aws_ebs_snapshot_import
./resource.ps1 aws_ec2_capacity_block_reservation
./resource.ps1 aws_ec2_instance
./resource.ps1 aws_ec2_instance_connect_endpoint
./resource.ps1 aws_ec2_instance_metadata_defaults
./resource.ps1 aws_ec2_instance_state
Expand Down Expand Up @@ -278,12 +270,6 @@ Datasource percentage coverage 100.00
./resource.ps1 aws_prometheus_scraper
./resource.ps1 aws_prometheus_workspace
./resource.ps1 aws_qldb_ledger
./resource.ps1 aws_quicksight_account_subscription
./resource.ps1 aws_quicksight_folder_membership
./resource.ps1 aws_quicksight_iam_policy_assignment
./resource.ps1 aws_quicksight_ingestion
./resource.ps1 aws_quicksight_template_alias
./resource.ps1 aws_quicksight_vpc_connection
./resource.ps1 aws_ram_resource_share_accepter
./resource.ps1 aws_ram_sharing_with_organization
./resource.ps1 aws_rbin_rule
Expand Down
39 changes: 39 additions & 0 deletions src/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -2994,3 +2994,42 @@ var awsQuicksightNamespace []byte

//go:embed mapping/aws/resource/quicksight/aws_quicksight_user.json
var awsQuicksightUser []byte

//go:embed mapping/aws/resource/datazone/aws_datazone_asset_type.json
var awsDatazoneAssetType []byte

//go:embed mapping/aws/resource/datazone/aws_datazone_environment.json
var awsDatazoneEnvironment []byte

//go:embed mapping/aws/resource/datazone/aws_datazone_environment_profile.json
var awsDatazoneEnvironmentProfile []byte

//go:embed mapping/aws/resource/datazone/aws_datazone_form_type.json
var awsDatazoneFormType []byte

//go:embed mapping/aws/resource/datazone/aws_datazone_glossary.json
var awsDatazoneGlossary []byte

//go:embed mapping/aws/resource/datazone/aws_datazone_glossary_term.json
var awsDatazoneGlossaryTerm []byte

//go:embed mapping/aws/resource/datazone/aws_datazone_user_profile.json
var awsDatazoneUserProfile []byte

//go:embed mapping/aws/resource/quicksight/aws_quicksight_account_subscription.json
var awsQuicksightAccountSubscription []byte

//go:embed mapping/aws/resource/quicksight/aws_quicksight_folder_membership.json
var awsQuicksightFolderMembership []byte

//go:embed mapping/aws/resource/quicksight/aws_quicksight_iam_policy_assignment.json
var awsQuicksightIamPolicyAssignment []byte

//go:embed mapping/aws/resource/quicksight/aws_quicksight_ingestion.json
var awsQuicksightIngestion []byte

//go:embed mapping/aws/resource/quicksight/aws_quicksight_template_alias.json
var awsQuicksightTemplateAlias []byte

//go:embed mapping/aws/resource/quicksight/aws_quicksight_vpc_connection.json
var awsQuicksightVpcConnection []byte
15 changes: 15 additions & 0 deletions src/mapping/aws/resource/datazone/aws_datazone_asset_type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"datazone:GetAssetType",
"datazone:CreateAssetType",
"datazone:DeleteAssetType"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
16 changes: 16 additions & 0 deletions src/mapping/aws/resource/datazone/aws_datazone_environment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"apply": [
"datazone:GetEnvironment",
"datazone:CreateEnvironment",
"datazone:DeleteEnvironment",
"datazone:UpdateEnvironment"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"apply": [
"datazone:GetEnvironmentProfile",
"datazone:CreateEnvironmentProfile",
"datazone:DeleteEnvironmentProfile",
"datazone:UpdateEnvironmentProfile"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
15 changes: 15 additions & 0 deletions src/mapping/aws/resource/datazone/aws_datazone_form_type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"datazone:GetFormType",
"datazone:CreateFormType",
"datazone:DeleteFormType"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
16 changes: 16 additions & 0 deletions src/mapping/aws/resource/datazone/aws_datazone_glossary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"apply": [
"datazone:GetGlossary",
"datazone:CreateGlossary",
"datazone:DeleteGlossary",
"datazone:UpdateGlossary"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
16 changes: 16 additions & 0 deletions src/mapping/aws/resource/datazone/aws_datazone_glossary_term.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"apply": [
"datazone:GetGlossaryTerm",
"datazone:CreateGlossaryTerm",
"datazone:DeleteGlossaryTerm",
"datazone:UpdateGlossaryTerm"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
15 changes: 15 additions & 0 deletions src/mapping/aws/resource/datazone/aws_datazone_user_profile.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"datazone:GetUserProfile",
"datazone:CreateUserProfile",
"datazone:UpdateUserProfile"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"quicksight:DescribeAccountSubscription",
"quicksight:CreateAccountSubscription",
"quicksight:DeleteAccountSubscription"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"apply": [
"quicksight:CreateFolderMembership",
"quicksight:DeleteFolderMembership"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"apply": [
"quicksight:DescribeIAMPolicyAssignment",
"quicksight:CreateIAMPolicyAssignment",
"quicksight:DeleteIAMPolicyAssignment",
"quicksight:UpdateIAMPolicyAssignment"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
15 changes: 15 additions & 0 deletions src/mapping/aws/resource/quicksight/aws_quicksight_ingestion.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"apply": [
"quicksight:DescribeIngestion",
"quicksight:CreateIngestion",
"quicksight:CancelIngestion"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"apply": [
"quicksight:DescribeTemplateAlias",
"quicksight:CreateTemplateAlias",
"quicksight:DeleteTemplateAlias",
"quicksight:UpdateTemplateAlias"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"apply": [
"quicksight:DescribeVPCConnection",
"quicksight:CreateVPCConnection",
"quicksight:DeleteVPCConnection",
"quicksight:UpdateVPCConnection"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
1 change: 0 additions & 1 deletion src/parse/aws-members.json
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,6 @@
"aws_ec2_fleet",
"aws_ec2_host",
"aws_ec2_image_block_public_access",
"aws_ec2_instance",
"aws_ec2_instance_connect_endpoint",
"aws_ec2_instance_metadata_defaults",
"aws_ec2_instance_state",
Expand Down
6 changes: 6 additions & 0 deletions terraform/aws/backup/aws_datazone_asset_type.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resource "aws_datazone_asset_type" "pike" {
description = "example"
domain_identifier = aws_datazone_domain.test.id
name = "example"
owning_project_identifier = aws_datazone_project.test.id
}
24 changes: 24 additions & 0 deletions terraform/aws/backup/aws_datazone_environment.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
resource "aws_datazone_environment" "pike" {
name = "example"
account_identifier = data.aws_caller_identity.test.account_id
account_region = data.aws_region.test.name
blueprint_identifier = aws_datazone_environment_blueprint_configuration.test.environment_blueprint_id
profile_identifier = aws_datazone_environment_profile.test.id
project_identifier = aws_datazone_project.test.id
domain_identifier = aws_datazone_domain.test.id

user_parameters {
name = "consumerGlueDbName"
value = "consumer"
}

user_parameters {
name = "producerGlueDbName"
value = "producer"
}

user_parameters {
name = "workgroupName"
value = "workgroup"
}
}
21 changes: 21 additions & 0 deletions terraform/aws/backup/aws_datazone_environment_profile.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
resource "aws_datazone_environment_profile" "pike" {
aws_account_id = data.aws_caller_identity.test.account_id
aws_account_region = data.aws_region.test.name
description = "description"
environment_blueprint_identifier = data.aws_datazone_environment_blueprint.test.id
name = "example-name"
project_identifier = aws_datazone_project.test.id
domain_identifier = aws_datazone_domain.test.id
user_parameters {
name = "consumerGlueDbName"
value = "value"
}
}

data "aws_caller_identity" "test" {}
data "aws_region" "test" {}
data "aws_datazone_environment_blueprint" "test" {
domain_id = ""
managed = false
name = "pike"
}
1 change: 1 addition & 0 deletions terraform/aws/backup/aws_datazone_form_type.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_datazone_form_type" "pike" {}
1 change: 1 addition & 0 deletions terraform/aws/backup/aws_datazone_glossary.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_datazone_glossary" "pike" {}
1 change: 1 addition & 0 deletions terraform/aws/backup/aws_datazone_glossary_term.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_datazone_glossary_term" "pike" {}
1 change: 1 addition & 0 deletions terraform/aws/backup/aws_datazone_user_profile.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_datazone_user_profile" "pike" {}
6 changes: 6 additions & 0 deletions terraform/aws/backup/aws_quicksight_account_subscription.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resource "aws_quicksight_account_subscription" "pike" {
account_name = "quicksight-terraform"
authentication_method = "IAM_AND_QUICKSIGHT"
edition = "ENTERPRISE"
notification_email = "notification@email.com"
}
Loading

0 comments on commit 08ef922

Please sign in to comment.