generated from cds-snc/project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: onboard Freshdesk data to Superset prod #115
Open
patheard
wants to merge
1
commit into
main
Choose a base branch
from
feat/freshdesk-superset-prod
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Allow Superset production to access the Freskdesk dataset.
Production: buckets 🪣✅ Terraform Init: Plan: 0 to add, 3 to change, 0 to destroy Show summary
Show planResource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# aws_s3_bucket_policy.athena_bucket will be updated in-place
~ resource "aws_s3_bucket_policy" "athena_bucket" {
id = "cds-data-lake-athena-production"
~ policy = jsonencode(
~ {
~ Statement = [
~ {
~ Principal = {
~ AWS = [
# (3 unchanged elements hidden)
"arn:aws:iam::257394494478:role/SupersetAthenaRead-all",
+ "arn:aws:iam::066023111852:role/SupersetAthenaRead-platform_support_production",
"arn:aws:iam::066023111852:role/SupersetAthenaRead-operations_aws_production",
# (1 unchanged element hidden)
]
}
# (4 unchanged attributes hidden)
},
]
# (1 unchanged attribute hidden)
}
)
# (1 unchanged attribute hidden)
}
# aws_s3_bucket_policy.curated_bucket will be updated in-place
~ resource "aws_s3_bucket_policy" "curated_bucket" {
id = "cds-data-lake-curated-production"
~ policy = jsonencode(
~ {
~ Statement = [
~ {
~ Principal = {
~ AWS = [
# (3 unchanged elements hidden)
"arn:aws:iam::257394494478:role/SupersetAthenaRead-all",
+ "arn:aws:iam::066023111852:role/SupersetAthenaRead-platform_support_production",
"arn:aws:iam::066023111852:role/SupersetAthenaRead-operations_aws_production",
# (1 unchanged element hidden)
]
}
# (4 unchanged attributes hidden)
},
]
# (1 unchanged attribute hidden)
}
)
# (1 unchanged attribute hidden)
}
# aws_s3_bucket_policy.transformed_bucket will be updated in-place
~ resource "aws_s3_bucket_policy" "transformed_bucket" {
id = "cds-data-lake-transformed-production"
~ policy = jsonencode(
~ {
~ Statement = [
~ {
~ Principal = {
~ AWS = [
# (3 unchanged elements hidden)
"arn:aws:iam::257394494478:role/SupersetAthenaRead-all",
+ "arn:aws:iam::066023111852:role/SupersetAthenaRead-platform_support_production",
"arn:aws:iam::066023111852:role/SupersetAthenaRead-operations_aws_production",
# (1 unchanged element hidden)
]
}
# (4 unchanged attributes hidden)
},
]
# (1 unchanged attribute hidden)
}
)
# (1 unchanged attribute hidden)
}
Plan: 0 to add, 3 to change, 0 to destroy.
Warning: Argument is deprecated
with module.athena_bucket.aws_s3_bucket.this,
on .terraform/modules/athena_bucket/S3/main.tf line 8, in resource "aws_s3_bucket" "this":
8: resource "aws_s3_bucket" "this" {
Use the aws_s3_bucket_server_side_encryption_configuration resource instead
(and 27 more similar warnings elsewhere)
─────────────────────────────────────────────────────────────────────────────
Saved the plan to: plan.tfplan
To perform exactly these actions, run the following command to apply:
terraform apply "plan.tfplan"
Show Conftest results20 tests, 20 passed, 0 warnings, 0 failures, 0 exceptions
|
Production: glue 🧴✅ Terraform Init: Plan: 0 to add, 1 to change, 0 to destroy Show summary
Show planResource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# aws_glue_resource_policy.cross_account_access will be updated in-place
~ resource "aws_glue_resource_policy" "cross_account_access" {
id = "ca-central-1"
~ policy = jsonencode(
~ {
~ Statement = [
# (2 unchanged elements hidden)
{
Action = [
"glue:GetTables",
"glue:GetTableVersions",
"glue:GetTableVersion",
"glue:GetTable",
"glue:GetPartitions",
"glue:GetPartition",
"glue:GetDatabases",
"glue:GetDatabase",
"glue:BatchGetPartition",
]
Effect = "Allow"
Principal = {
AWS = "arn:aws:iam::257394494478:role/SupersetAthenaRead-platform_gc_forms_production"
}
Resource = [
"arn:aws:glue:ca-central-1:739275439843:table/platform_gc_forms_production/*",
"arn:aws:glue:ca-central-1:739275439843:database/platform_gc_forms_production",
"arn:aws:glue:ca-central-1:739275439843:catalog",
]
Sid = "SupersetReadAccessPlatformGcFormsProduction"
},
~ {
~ Principal = {
~ AWS = "arn:aws:iam::257394494478:role/SupersetAthenaRead-platform_support_production" -> [
+ "arn:aws:iam::257394494478:role/SupersetAthenaRead-platform_support_production",
+ "arn:aws:iam::066023111852:role/SupersetAthenaRead-platform_support_production",
]
}
# (4 unchanged attributes hidden)
},
]
# (1 unchanged attribute hidden)
}
)
}
Plan: 0 to add, 1 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────
Saved the plan to: plan.tfplan
To perform exactly these actions, run the following command to apply:
terraform apply "plan.tfplan"
Show Conftest resultsWARN - plan.json - main - Missing Common Tags: ["aws_glue_catalog_database.operations_aws_production"]
WARN - plan.json - main - Missing Common Tags: ["aws_glue_catalog_database.operations_aws_production_raw"]
WARN - plan.json - main - Missing Common Tags: ["aws_glue_catalog_database.platform_gc_forms_production"]
WARN - plan.json - main - Missing Common Tags: ["aws_glue_catalog_database.platform_support_production"]
WARN - plan.json - main - Missing Common Tags: ["aws_glue_catalog_database.platform_support_production_raw"]
WARN - plan.json - main - Missing Common Tags: ["aws_glue_crawler.operations_aws_production_account_tags"]
WARN - plan.json - main - Missing Common Tags: ["aws_glue_crawler.operations_aws_production_cost_usage_report"]
WARN - plan.json - main - Missing Common Tags: ["aws_glue_crawler.platform_gc_forms_forms_production"]
WARN - plan.json - main - Missing Common Tags: ["aws_glue_crawler.platform_support_freshdesk_production"]
WARN - plan.json - main - Missing Common Tags: ["aws_glue_job.forms_generate_test_data"]
WARN - plan.json - main - Missing Common Tags: ["aws_glue_job.platform_support_freshdesk"]
WARN - plan.json - main - Missing Common Tags: ["aws_glue_trigger.platform_support_freshdesk"]
WARN - plan.json - main - Missing Common Tags: ["aws_iam_policy.glue_crawler"]
WARN - plan.json - main - Missing Common Tags: ["aws_iam_policy.glue_etl"]
WARN - plan.json - main - Missing Common Tags: ["aws_iam_role.glue_crawler"]
WARN - plan.json - main - Missing Common Tags: ["aws_iam_role.glue_etl"]
WARN - plan.json - main - Missing Common Tags: ["aws_kms_key.aws_glue"]
WARN - plan.json - main - Missing Common Tags: ["aws_s3_object.forms_generate_test_data"]
WARN - plan.json - main - Missing Common Tags: ["aws_s3_object.platform_support_freshdesk_job"]
WARN - plan.json - main - Missing Common Tags: ["aws_s3_object.platform_support_freshdesk_requirements"]
39 tests, 19 passed, 20 warnings, 0 failures, 0 exceptions
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Allow Superset production to access the Freshdesk dataset.
Related