last day (32 days later) » 

7:10 AM
3
A: stream logs to elastic using cloudformation template

Amit BaranesUpdate: If you are using aws-cli, take a look at my answer here. Well, after a few hours of exploring and reading a lot of documentation I finally succeeded to create this template. Designer Overview : In order to enable the stream logs to elasticsearch we need to create the following res...

 
everything is successfully installed through template, but elastic is not populated. This is lambda error: TypeError: Cannot read property 'data' of undefined at exports.handler (/var/task/index.js:15:53)
The lambda function does not install a trigger? How will the function invoke? The error mentioned above is shown when I run the function manually.
 
It does install the trigger, take a look at the first result image I share. The function invoke when new data stream to cloudwatch, and then the cloudwatch group log triggers the lambda with the relevant event, which is the new log.
The reason you get this error: Cannot read property 'data' of undefined at exports.handler is because the lambda function expects to get data as the input. when you run the lambda manually, there is no input (or wrong input)
 
Yes. You are correct. Everything is working as expected. I did not check correctly. The problem was that I was using domain with "https" part in step 2 of updating var endpoint.
 
Great, im glad everything is working :)
 
Can you suggest me a way to merge this template with my template? datameetgeobk.s3.amazonaws.com/cftemplates/audit_trail.yaml
 
7:10 AM
Access Denied
 
I did not unerstand "Access Denied" message.
If you have any tips for me to learn cloudformation, Please send at shantanu.oak@gmail.com
 
well, to be honest I just read the documention.. I think cloudformation is a pain in the ass
 
But it is very powerful. I will like to learn.
 
i would love to help you in the future as well
hit me on linkedin
Amit Baranes
 
I am not able to get the linkedin link.
 
7:14 AM
I took course by linuxacademy about cloudformation - linuxacademy.com/course/cloud-formation-deep-dive-2019
 
My template creates an elastic server. I need to wait for 10 minutes to get the ES endpoint. Is it possible to wait and then continue with your template?
 
Looks like this is the way...
You can open another question and i'll post the template once i'll have few free hours
 
ok. I will do that.
0
Q: pause the template execution for a few minutes

shantanuoI have a cloudformation template that works correctly. It initiates an elastic server along with cloud-trail. datameetgeobk.s3.amazonaws.com/cftemplates/audit_trail.yaml I have to wait 10 minute to get the endpoint. The endpoint is used in Lambda function that is part of another template. str...

 
7:52 AM
You can use environment variable for ES domain in Lambda. That will reduce one step from the process!
 

  last day (32 days later) »