Open DavidJohn197749 opened 1 year ago
@DavidJohn197749 have you figured out a workaround? I am facing the same issue.
In my case if I run terraform plan
form local with my admin user credentials I get the expected output and all vpcs are listed.
But when the GHA pipeline runs with the assumed role that has full VPC permissions the output is empty.
Hi @DavidJohn197749 @tamaskiraly What is the region of your vpc belongs? The provider default region is cn-beijing, and it will return empty data if your resources are not in cn-beijing. Maybe you can check it, set a right region and have a try.
@DavidJohn197749 that was the exact problem, my resources are created in cn-shanghai region and have not specified the region when tried to list the vpcs. Thanks for your help
Terraform Version
Affected Resource(s)
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Expected Behavior
the output should not be null, and the output data should same with using aliyun.
Actual Behavior
Steps to Reproduce
terraform init
terraform plan