But I’m getting errors executing the module. The errors are around access denied issues trying to access s3 bucket to add a policy or delete the bucket.
The AWS provider resource “aws_cur_report_definition” must run against the us-east-1 region. This can be achieved by using a second aws provider with an alias. However I currently cannot get this to work in an acceptance test.
Futhermore, this resource can fail with a “ValidationException: Failed to verify customer bucket permission…”. This looks like an eventual consistency issue and this error should be retryable. I’ll raise an issue in the AWS provider channel.
Just to add more feedback for anyone else that finds this. I found some additional documentation on acceptance testing cross regions here. I think it would make sense to include this in the current acceptance testing documentation because this is important info.
Hi skyscrapr, did you ever get this working? What cloudability features / info were you able to integrate?
Looking at a project to figure out how to get rightsizing from cloudability into terraform.