hashicorp / terraform-provider-awscc

Terraform AWS Cloud Control provider
https://registry.terraform.io/providers/hashicorp/awscc/latest/docs
Mozilla Public License 2.0
260 stars 118 forks source link

awscc_ec2_vpc_endpoints fails reporting the AWS::EC2::VPCEndpoint is not yet supported in CloudControl API #677

Open absa-rsuarez opened 2 years ago

absa-rsuarez commented 2 years ago

Community Note

Terraform CLI and Terraform AWS Cloud Control Provider Version

Affected Resource(s)

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

terraform {
  required_providers {
    awscc = {
      source = "hashicorp/awscc"
      version = "0.32.0"
    }
  }
}
provider "awscc" {
  region = "af-south-1"
}
data "awscc_ec2_vpc_endpoints" "this" {}

Debug Output

$ terraform plan data.awscc_ec2_vpc_endpoints.this: Reading... ╷ │ Error: AWS SDK Go Service Operation Unsuccessful │ │ with data.awscc_ec2_vpc_endpoints.this, │ on main.tf line 15, in data "awscc_ec2_vpc_endpoints" "this": │ 15: data "awscc_ec2_vpc_endpoints" "this" {} │ │ Calling CloudControl service ListResources operation returned: operation error CloudControl: ListResources, https response error StatusCode: 400, RequestID: 846ba987-e6e6-4746-b81c-78f2a3271260, UnsupportedActionException: The resource AWS::EC2::VPCEndpoint is not yet supported via Cloud Control API

Panic Output

Expected Behavior

Return list of VPC Endpoints

Actual Behavior

Error

Steps to Reproduce

  1. terraform apply

Important Factoids

References

breathingdust commented 2 years ago

This is likely a result of this resource not being supported in af-south-1.