Skip to content

Commit

Permalink
Merge pull request #6 from aws-solutions/release/v2.0.2
Browse files Browse the repository at this point in the history
v2.0.2 release
  • Loading branch information
deshruch authored Jan 4, 2024
2 parents 13d3661 + 7be7060 commit 6c8a068
Show file tree
Hide file tree
Showing 10 changed files with 213 additions and 231 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.2] - 2024-01-03
### Added
- Added timestamps to processed file names for prevention of accidental overwrites
- Fixed null values casting as -1
- Updated state machine to only trigger on successful file uploads

## [2.0.1] - 2023-10-25
### Added
- Update urllib to v1.26.18
Expand Down
5 changes: 5 additions & 0 deletions NOTICE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Amazon Marketing Cloud Insights on AWS

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License Version 2.0 (the "License"). You may not use this file except
in compliance with the License. A copy of the License is located at http://www.apache.org/licenses/
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the License for the
specific language governing permissions and limitations under the License.

**********************
THIRD PARTY COMPONENTS
Expand Down
8 changes: 8 additions & 0 deletions solution-manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
id: SO0193
name: amazon-marketing-cloud-insights-on-aws
version: v2.0.2
cloudformation_templates:
- template: amazon-marketing-cloud-insights.template
main_template: true
build_environment:
build_image: 'aws/codebuild/standard:6.0'
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def source_code_package(ctx, ignore, solution_name):
"CONTRIBUTING.md",
"CHANGELOG.md",
".gitignore",
"solution-manifest.yaml"
]

# copy source directory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,21 +284,17 @@ Resources:
Type: AWS::Events::Rule
Condition: DeployStandardRule
Properties:
Description: "Trigger SDLF data lake process"
Description: !Sub "(Standard) Trigger data lake for bucket: ${pBucketName}"
State: "ENABLED"
EventPattern:
source:
- aws.s3
detail-type:
- "Object Created"
- "Object Deleted"
detail:
eventSource:
- s3.amazonaws.com
eventName:
- CopyObject
- PutObject
- CompleteMultipartUpload
- DeleteObject
requestParameters:
bucketName:
bucket:
name:
- !Ref pBucketName
Targets:
- Arn: !Ref pRoutingQueueArn
Expand Down Expand Up @@ -344,33 +340,29 @@ Resources:
Type: AWS::Events::Rule
Condition: DeployCrossRegionEvents
Properties:
Description: "Trigger cross region event"
Description: !Sub "(Cross Region) Trigger data lake for bucket: ${pBucketName}"
State: "ENABLED"
EventPattern:
source:
- aws.s3
detail-type:
- "Object Created"
- "Object Deleted"
detail:
eventSource:
- s3.amazonaws.com
eventName:
- CopyObject
- PutObject
- CompleteMultipartUpload
- DeleteObject
requestParameters:
bucketName:
bucket:
name:
- !Ref pBucketName
Targets:
- Arn: !Sub "arn:aws:events:${pApplicationRegion}:${AWS::AccountId}:event-bus/default"
RoleArn: !GetAtt rCrossRegionEventBridgeRole.Arn
Id: "CrossRegionDefaultEventBus"

# Cross-region event rule for data lake trigger
# Cross-account event rule for data lake trigger
rCrossAccountEventBridgeRule:
Type: AWS::Events::Rule
Condition: DeployCrossAccountRule
Properties:
Description: "Trigger cross account event"
Description: !Sub "(Cross Account) Trigger data lake for bucket: ${pBucketName}"
State: "ENABLED"
EventPattern:
source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def _create_sdlf_heavy_transform_glue_script_custom_resource(self):
properties={
"artifacts_bucket_name": self._solution_buckets.artifacts_bucket.bucket_name,
"artifacts_object_key": self._glue_script_path,
"glue_script_file": self._glue_script_local_file_path
"glue_script_file": self._glue_script_local_file_path,
"amc_dataset_version": "2.0.2"
},
)
self._sdlf_heavy_transform_glue_script_custom_resource.node.add_dependency(
Expand Down
Loading

0 comments on commit 6c8a068

Please sign in to comment.