Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.232.0 does not use proxy to call Aliyun endpoints #7802

Open
garfield1143 opened this issue Oct 31, 2024 · 0 comments
Open

v1.232.0 does not use proxy to call Aliyun endpoints #7802

garfield1143 opened this issue Oct 31, 2024 · 0 comments

Comments

@garfield1143
Copy link

By using the latest version 1.232.0 even if http_proxy, https_proxy and no_proxy workspace variables are set, the provider does not use them to call alicloud endpoints

Terraform Version

Terraform 1.8.0

Terraform Configuration Files

provider "alicloud" {
  region = "cn-shanghai"
  assume_role {
    role_arn           = "acs:ram::xxxxx:role/myrole"
    session_name       = "xxxxxx"
  }
}

Actual Behavior

Terraform plan failed with the error
Error: refresh Ram Role Arn credential failed. Error: Post "https://sts.aliyuncs.com?AccessKeyId=xxxxx": read tcp xx.xx.xx.xx:45612->47.74.138.70:443: read: connection reset by peer

The proxy variables are not used to call the https://sts.aliyuncs.com endpoint with the 1.232.0 version

Expected Behavior

Plan succeeds with refreshing the RAM Role ARN credential by using the proxy

Workaround

Do not use the version 1.232.0

terraform {
  required_version = ">= 0.13"
  required_providers {
    alicloud = {
      source  = "aliyun/alicloud"
      version = "!=1.232.0"
    }
  }  
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant