Skip to content

Commit

Permalink
add prod cf configs, add perm for glue role for shareable artifacts b…
Browse files Browse the repository at this point in the history
…ucket
  • Loading branch information
rxu17 committed Sep 6, 2024
1 parent 84f5985 commit ee6a812
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/develop/glue-job-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ parameters:
S3IntermediateBucketName: {{ stack_group_config.intermediate_bucket_name }}
S3ParquetBucketName: {{ stack_group_config.processed_data_bucket_name }}
S3ArtifactBucketName: {{ stack_group_config.template_bucket_name }}
S3ShareableArtifactBucketName: {{ stack_group_config.shareable_artifacts_vpn_bucket_name }}
stack_tags:
{{ stack_group_config.default_stack_tags }}
3 changes: 3 additions & 0 deletions config/prod/namespaced/glue-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- prod/namespaced/glue-job-S3ToJsonS3.yaml
- prod/namespaced/glue-job-JSONToParquet.yaml
- prod/namespaced/glue-job-compare-parquet.yaml
- prod/namespaced/glue-job-run-great-expectations-on-parquet.yaml
- prod/glue-job-role.yaml
- prod/s3-cloudformation-bucket.yaml
parameters:
Expand All @@ -19,6 +20,8 @@ parameters:
CompareParquetMainNamespace: "main"
S3SourceBucketName: {{ stack_group_config.input_bucket_name }}
CloudformationBucketName: {{ stack_group_config.template_bucket_name }}
ShareableArtifactsBucketName: {{ stack_group_config.shareable_artifacts_vpn_bucket_name }}
ExpectationSuiteKeyPrefix: "{{ stack_group_config.namespace }}/src/glue/resources/data_values_expectations.json"
stack_tags:
{{ stack_group_config.default_stack_tags }}
sceptre_user_data:
Expand Down
5 changes: 5 additions & 0 deletions templates/glue-job-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Parameters:
Type: String
Description: Name of the S3 bucket where cloudformation templates and tests are stored.

S3ShareableArtifactBucketName:
Type: String
Description: Name of the S3 bucket where the shareable artifacts (like great expectations reports) are stored.

Resources:

Expand Down Expand Up @@ -65,6 +68,8 @@ Resources:
- !Sub arn:aws:s3:::${S3IntermediateBucketName}/*
- !Sub arn:aws:s3:::${S3ParquetBucketName}
- !Sub arn:aws:s3:::${S3ParquetBucketName}/*
- !Sub arn:aws:s3:::${S3ShareableArtifactBucketName}
- !Sub arn:aws:s3:::${S3ShareableArtifactBucketName}/*
- PolicyName: ReadS3
PolicyDocument:
Version: '2012-10-17'
Expand Down

0 comments on commit ee6a812

Please sign in to comment.