当前正在使用AWS Organizations在AWS中国从事项目。根据AWS支持,组织的端点仅存在于cn-northwest-1中,但是我们正在部署到cn-northwest-1。
我正在尝试在(aws_organizations_organization)中提取数据源。
我已经设置了以下AWS提供程序:
provider "aws" {
version = "3.4.0"
region = "cn-north-1"
}
provider "aws" {
version = "3.4.0"
region = "cn-northwest-1"
alias = "northwest"
}
我正在像这样提取数据:
data "aws_organizations_organization" "org" {
provider = aws.northwest
}
Error: error listing AWS Service Access for Organization (redacted): UnsupportedAPIEndpointException: This API endpoint is not supported in this region
有点需要
resource "aws_organizations_organizational_unit" "core" {
name = "core"
parent_id = data.aws_organizations_organization.org.roots.0.id
}