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

feat(events-targets): support for RedshiftDataParameters #29462

Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
1fafbab
intial commit
Mar 11, 2024
da25e09
integ test
Rizxcviii Mar 11, 2024
da3c7f4
adding defaults
Rizxcviii Mar 12, 2024
493b089
updating readme
Rizxcviii Mar 12, 2024
5754f28
typo
Rizxcviii Mar 12, 2024
ceb2b10
adding default parameter
Rizxcviii Mar 12, 2024
5fb6eb3
using default props
Rizxcviii Mar 12, 2024
2978d8b
adding console.log for testing purposes
Rizxcviii Mar 12, 2024
c29a807
adding to push in array
Rizxcviii Mar 13, 2024
5faf786
adding targetprops
Rizxcviii Mar 13, 2024
9d1f85c
Update README.md
Rizxcviii Mar 13, 2024
647b75a
further typos
Rizxcviii Mar 14, 2024
2856b2c
Merge branch 'add-scheduling-a-redshift-query-to-event-targets-for-am…
Rizxcviii Mar 14, 2024
663001a
updating markdown
Rizxcviii Mar 14, 2024
4455786
integ without --no-clean
Rizxcviii Mar 14, 2024
5705063
removing mandatory assignment, and using checks for validation
Rizxcviii Mar 19, 2024
9740d48
removing mandatory assignment, and using checks for validation
Rizxcviii Mar 19, 2024
8ffed39
removing trailing space
Rizxcviii Mar 19, 2024
3e4d4ac
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
TheRealAmazonKendra Mar 21, 2024
243736c
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
mergify[bot] Mar 23, 2024
aa25e6b
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
Rizxcviii Apr 12, 2024
6e02875
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
Rizxcviii May 7, 2024
352b34e
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
Rizxcviii May 15, 2024
291b86b
undoing prettier
Rizxcviii May 15, 2024
72c4dd2
adding line break
Rizxcviii May 15, 2024
842f9b8
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
Rizxcviii May 26, 2024
ef708c1
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
Rizxcviii Jun 9, 2024
37fd7de
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
Rizxcviii Jun 25, 2024
74e3248
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
Rizxcviii Jul 19, 2024
77938f4
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
Rizxcviii Jul 31, 2024
d03a37d
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
Rizxcviii Aug 4, 2024
16cf4f3
making the database required
Rizxcviii Aug 4, 2024
5493d2c
feature flag update, and import order
Rizxcviii Aug 4, 2024
7393b0f
updating test signature
Rizxcviii Aug 5, 2024
7b9f21e
changing doc
Rizxcviii Aug 28, 2024
4e98da8
adjusting docstring
Rizxcviii Aug 28, 2024
3312d3e
changing parameter to be more meaningful
Rizxcviii Aug 28, 2024
966047c
adding docstring specifying restrictions
Rizxcviii Aug 28, 2024
1cd7567
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
Rizxcviii Aug 28, 2024
8b1a9b6
adding unit tests for secrets manager
Rizxcviii Aug 28, 2024
bb442d6
a single sql prop
Rizxcviii Aug 29, 2024
9f0e352
updating README
Rizxcviii Aug 29, 2024
5e71a18
Update packages/aws-cdk-lib/aws-events-targets/lib/redshift-query.ts
paulhcsun Aug 29, 2024
f444225
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
mergify[bot] Aug 29, 2024
d3e575e
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
mergify[bot] Aug 29, 2024
2f310e0
Merge branch 'main' into add-scheduling-a-redshift-query-to-event-tar…
mergify[bot] Aug 30, 2024
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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
{
"Resources": {
"Namespace": {
"Type": "AWS::RedshiftServerless::Namespace",
"Properties": {
"NamespaceName": "namespace"
}
},
"WorkGroup": {
"Type": "AWS::RedshiftServerless::Workgroup",
"Properties": {
"NamespaceName": "namespace",
"SecurityGroupIds": [
"sg-0f3ee03c20cc6056c"
],
"SubnetIds": [
"subnet-06c91b5d4c16df0ff",
"subnet-04b90752f12ed5174",
"subnet-0d42bcb68396ffd19"
],
"WorkgroupName": "workgroup"
},
"DependsOn": [
"Namespace"
]
},
"dlq09C78ACC": {
"Type": "AWS::SQS::Queue",
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"Timer30894E3BB": {
"Type": "AWS::Events::Rule",
"Properties": {
"ScheduleExpression": "rate(1 minute)",
"State": "ENABLED",
"Targets": [
{
"Arn": {
"Fn::GetAtt": [
"WorkGroup",
"Workgroup.WorkgroupArn"
]
},
"DeadLetterConfig": {
"Arn": {
"Fn::GetAtt": [
"dlq09C78ACC",
"Arn"
]
}
},
"Id": "Target0",
"RedshiftDataParameters": {
"Database": "dev",
"Sql": "SELECT * FROM baz"
},
"RoleArn": {
"Fn::GetAtt": [
"Timer3EventsRole909B99A1",
"Arn"
]
}
}
]
}
},
"Timer3EventsRole909B99A1": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "events.amazonaws.com"
}
}
],
"Version": "2012-10-17"
}
}
},
"Timer3EventsRoleDefaultPolicy3A2ECE32": {
"Type": "AWS::IAM::Policy",
"Properties": {
"PolicyDocument": {
"Statement": [
{
"Action": "redshift-data:ExecuteStatement",
"Effect": "Allow",
"Resource": {
"Fn::GetAtt": [
"WorkGroup",
"Workgroup.WorkgroupArn"
]
}
}
],
"Version": "2012-10-17"
},
"PolicyName": "Timer3EventsRoleDefaultPolicy3A2ECE32",
"Roles": [
{
"Ref": "Timer3EventsRole909B99A1"
}
]
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}
Loading
Loading