https://infracost.io logo
#contributors
Title
# contributors
w

white-airport-8778

07/23/2021, 9:28 AM
looking into the failing test on master…
https://github.com/hashicorp/terraform-provider-aws/pull/10807/files is what’s causing the AWS tests to require creds, it was added in the AWS provider 3.51.0 (latest version), I can’t find a way to work around it without creds though. what’s odd is that when aws_instance.ami is set, it shouldn’t look for a launch_template. I’d rather not lock our demo/examples to 3.50 as they won’t work for ppl who have newer versions (we use to have those issues in the past). Any ideas?
l

little-author-61621

07/23/2021, 2:15 PM
I think we should file an issue in the provider repo. The AWS provider has
skip_
options for other AWS calls that don't need creds in case you don't have permissions, e.g.
skip_get_ec2_platforms
. This new change requires permission for DescribeTags call, so maybe they can add something to allow that to be skipped
And maybe until we get an answer we can lock our tests to 3.50, but not sure what to do about demo.
w

white-airport-8778

07/23/2021, 2:44 PM
Good idea! I’ll follow-up with hashi and update the demo to use plan.json so it continues to work. I’ll also update infracost/internal/providers/terraform/tftest/tftest.go to lock to 3.50.
l

little-author-61621

07/23/2021, 3:23 PM
I would consider adding it as a new issue so it can go through proper triaging. I think that contribution was a community contribution.
👍 1
7 Views