Skip to content
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

fix(infra): updated cur bucket to enable events #5

Merged
merged 1 commit into from
Jul 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APPNAME := aws-billing-store
APPNAME := aws-billing
STAGE ?= dev
BRANCH ?= master

Expand Down
4 changes: 3 additions & 1 deletion sam/app/athena.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ Resources:
Type: string
- Name: reservation_recurring_fee_for_usage
Type: double
- Name: reservation_reservation_a_r_n
Type: string
- Name: reservation_start_time
Type: string
- Name: reservation_subscription_id
Expand Down Expand Up @@ -291,4 +293,4 @@ Resources:
Name: !Sub "/config/${Stage}/${Branch}/${AppName}/glue_table_name"
Type: "String"
Value: raw_cur_data
Description: "Glue table name"
Description: "Glue table name"
3 changes: 3 additions & 0 deletions sam/app/cur-bucket.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ Resources:
BlockPublicPolicy: true
IgnorePublicAcls: true
RestrictPublicBuckets: true
NotificationConfiguration:
EventBridgeConfiguration:
EventBridgeEnabled: true

ReportBucketPolicy:
Type: AWS::S3::BucketPolicy
Expand Down
2 changes: 1 addition & 1 deletion sam/app/symlink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Globals:
RAW_EVENT_LOGGING: !If [IsDev, "true", "false"]

Resources:
BackendFunctionLogGroup:
SymlinkFunctionLogGroup:
Type: AWS::Logs::LogGroup
Properties:
LogGroupName: !Sub "/aws/lambda/${SymlinkFunction}"
Expand Down