-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
cloudtrail: Also make onCloudTrailEvent a static method #6716
Labels
@aws-cdk/aws-cloudtrail
Related to AWS CloudTrail
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
Comments
You are unlikely to need to import trails into CDK. If you do, there is an issue with the construct library. Most of the event based methods don't actually require THE trail, just A trail be present in the account. As a workaround, you should probably just emulate what |
Yes thanks, thats exactly what I ended up doing. Because cloud trail sends
off to cloud watch I was able to just create a cloud watch rule do
accomplish it.
Thanks
…On Mon, Mar 16, 2020 at 2:18 AM Rico Huijbers ***@***.***> wrote:
You are unlikely to need to import trails into CDK. If you do, there is an
issue with the construct library. Most of the event based methods don't
actually require THE trail, just A trail be present in the account.
As a workaround, you should probably just emulate what onCloudTrailEvent
does and create a Rule object directly:
***@***.***/aws-cloudtrail/lib/index.ts#L259
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6716 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOGPUOZUECE4YWMWLWUBMSLRHXOEHANCNFSM4LHGE7FQ>
.
--
*Anthony Neithercut*
*Senior Developer / Développeur Principale*
*Information Technology / Information et technologies*
*Farm Credit Canada / Financement agricole Canada*
1800 Hamilton Street, PO Box 4320 / 1800, rue Hamilton, CP 4320
Regina SK S4P 4L3
*c*: 306-591-2534
*e*: anthony.neithercut@gmail.com <anthony.neithercut@sasktel.com>
|
nija-at
pushed a commit
that referenced
this issue
May 19, 2020
karupanerura
pushed a commit
to karupanerura/aws-cdk
that referenced
this issue
May 22, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-cloudtrail
Related to AWS CloudTrail
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
❓ Can you add a mthod to import an existing cloud trail into the stack?
The Question
Can you add an import/lookup method to the trail construct?
I have been tasked with multiple projects to fire to lambda based on cloud trail events. Each time I have had to create a new trail because thre is no lookup method. Is there currently a work around? We have already reached out hard cap of 5 trails.
Thanks
Environment
Other information
AWS has a hard limit of 5 cloud trails per account. Not having a method to import existing trails on the trail construct really limits what you can do with this service in CDK.
The text was updated successfully, but these errors were encountered: