This message was deleted.
# help
b
This message was deleted.
c
Hi Shaq, let me take a look
So you’re surprised to see the s3 bucket created in
us-east-2
even though you’re passing the
<http://aws.us|aws.us>__east_1_
alias to the module right? I think this is actually ok. The
aws_cur_report_definition
needs to be created in us-east-1, but the s3 bucket itself can be in another region.
g
Thanks for the reply Tim! If that's not the issue then I'll keep digging to figure out where the issue is on my end.
c
What’s the problem you’re running into? Are the CUR reports being created?
g
It previously was this error:
Copy code
│ Error: putting S3 Bucket Notification Configuration: InvalidArgument: Unable to validate the following destination configurations
│       status code: 400, request id: 2NMDPPYZ8YECJJ2V, host id: b51xW0qHu8EqBYC8vZYk7VZmT1cGaAt275S5bWpGAWCl1haHMclb5lsiTWLlTgAK9CXGzuXTjt4=
│ 
│   with module.infracost.aws_s3_bucket_notification.sns_topic,
│   on .terraform/modules/infracost/main.tf line 356, in resource "aws_s3_bucket_notification" "sns_topic":
│  356: resource "aws_s3_bucket_notification" "sns_topic" {
│ 
╵
╷
│ Error: creating Cost And Usage Report Definition (InfracostReportXXXXXXXXXXXXX): ValidationException: Failed to verify customer bucket permission. accountId= XXXXXXXX, bucket name: infracost-cur-XXXXXXXXXXXX, bucket region: us-east-2
│ 
│   with module.infracost.aws_cur_report_definition.costand_usage_report,
│   on .terraform/modules/infracost/main.tf line 418, in resource "aws_cur_report_definition" "costand_usage_report":
│  418: resource "aws_cur_report_definition" "costand_usage_report" {
Which I thought may have been correlated with the regions for Infracost, but now I see it may have been because my default provider uses a
profile
variable to separate my AWS creds for CLI. And it was using my default credentials instead of the
profile
credentials. After adding my
profile
to the
provider
for Infracost, I'm getting a better error that's permissions related.
👍 1