Skip to content

Commit e68f53e

Browse files
authored
feat(processing): Support for Cross-Account Integration Test in Spark CICD (#881)
* Added support for cross-account integration test in the Spark CICD Construct
1 parent 97b6499 commit e68f53e

File tree

16 files changed

+1566
-275
lines changed

16 files changed

+1566
-275
lines changed

examples/spark-data-lake/infra/stacks/application_stack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import cdklabs.aws_data_solutions_framework as dsf
1010
from aws_cdk.aws_s3 import Bucket
1111

12-
1312
class SparkApplicationStackFactory(dsf.utils.ApplicationStackFactory):
1413
"""Implements ApplicationStackFactory from DSF on AWS to create a self-mutable CICD pipeline for Spark app.
1514
See Spark CICD docs for more details."""
@@ -87,7 +86,8 @@ def __init__(
8786
'glue:GetDatabase',
8887
'glue:GetDatabases',
8988
'glue:GetPartitions',
90-
'glue:DeleteTable'
89+
'glue:DeleteTable',
90+
'glue:CreateDatabase'
9191
],
9292
resources=[
9393
f"arn:aws:glue:{region}:{account}:catalog",

examples/spark-data-lake/infra/stacks/cicd_stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
2929
# Path of the Spark application to be built and unit tested in the CICD
3030
spark_application_path="spark",
3131
# Path of the bash script responsible to run integration tests
32-
integ_test_script='./infra/resources/integ-test.sh',
32+
integ_test_script='./resources/integ-test.sh',
3333
# Environment variables used by the integration test script
3434
integ_test_env={
3535
"STEP_FUNCTION_ARN": "ProcessingStateMachineArn"

framework/.projen/tasks.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)