-
Notifications
You must be signed in to change notification settings - Fork 168
Not able to get the emailable report even after successful cloudformation deployment #33
Comments
Do you see the report in the S3 bucket? |
I'm facing the same issue and I don't see the report in the S3 Bucket |
Have you set the bucket name in the S3_BUCKET environment value in the Lambda? |
Yes, I have |
That's certainly odd, maybe you could try to put some logging between:
something like |
Okay, first I had to deploy it and get it running. Then I had to change When I deployed and ran it, I got this error :
We don't need to create an organization. I can just hardcode it, right? |
Yeah, this is what I've done:
we're inside an org but we run linked accounts so I just deploy this code in my different accounts with Terraform and that's it. |
Can you please explain what I should enter in COST_TAGS, TAG_KEY and TAG_VALUE_FILTER My resources are tagged with Is that correct and what is an example of COST_TAGS? |
Also, I'm getting this error :
FYI, for now, the IAM role that this lambda is using has been given full access to S3 (until I can understand the issue) |
Well, that bit is quite confusing tbh, On the Lambda roles this is what I'm using:
You could probably make it more restrictive by just allowing S3 to write in a particular bucket, I'm not that concerned about that so I left it like this. I hope all of that is of any help. |
Hi. So in theory you can just ignore the first error. The list accounts error prints, but then it continues just to do the account it is running in instead. |
I didn't wanna expose my bucket name here so I just made up a fake name and replaced it. It was a policy error.Though, not on my end. I made the correct policy via the console in the first place but AWS only saved the first statement which had the Cost Explorer service part. Manually writing the JSON and saving it worked. Could you please explain the differnce between using Right now their values are as follows :
My main confusion is with |
@kkashyap1707 did you solve email error? Actually I am getting same error.Even if boto client gave me 200 response code, I could not receive email. I have same configuration from this link (#33 (comment)) |
@ardasendurplentific Is the SES account in Sandbox mode? If that's the case you either need to request to put it in production mode, or either pre-validate the e-mails addresses. |
@nikolaigauss I am not using sandbox mode. email-address are validated. |
@ardasendurplentific What do you see in the Lambda logs in the monitoring section? You might need to give permissions so that the Lambda can write to Cloud watch to get them. I can't remember from the top of my head what those permissions are but p sure there is a lot of documentation about it. |
@nikolaigauss To be honest if it related to permission boto client gives me 403 error. Btw I checked my lambda execution role it contains ses related things. We solved the issue it is related to filter of mail domain. thanks for your support and effort @nikolaigauss |
Hi team,
I am not able to get the emailable report even after successful cloud formation deployment.
Steps:
Updated the deploy.sh file.
export BUCKET=test-awsbilling-cost
export SES_TO=[email protected] -- verified from SES
export SES_FROM=[email protected] -- verified from SES
Please suggest the steps.
The text was updated successfully, but these errors were encountered: