terraform-provider-awscc
terraform-provider-awscc copied to clipboard
awscc_ec2_nat_gateway - GeneralServiceException
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
- The resources and data sources in this provider are generated from the CloudFormation schema, so they can only support the actions that the underlying schema supports. For this reason submitted bugs should be limited to defects in the generation and runtime code of the provider. Customizing behavior of the resource, or noting a gap in behavior are not valid bugs and should be submitted as enhancements to AWS via the CloudFormation Open Coverage Roadmap.
Terraform CLI and Terraform AWS Cloud Control Provider Version
Terraform v1.4.2 on darwin_arm64
- provider registry.terraform.io/hashicorp/awscc v0.55.0
Affected Resource(s)
- awscc_ec2_nat_gateway
Terraform Configuration Files
resource "awscc_ec2_vpc" "main" {
cidr_block = "10.0.0.0/16"
}
resource "awscc_ec2_subnet" "main" {
vpc_id = resource.awscc_ec2_vpc.main.id
cidr_block = "10.0.1.0/24"
tags = [{
key = "Modified By"
value = "AWSCC"
}]
}
resource "awscc_ec2_nat_gateway" "this" {
subnet_id = resource.awscc_ec2_subnet.main.subnet_id
}
Debug Output
wscc_ec2_nat_gateway.this: Creating... ╷ │ Error: AWS SDK Go Service Operation Incomplete │ │ with awscc_ec2_nat_gateway.this, │ on main.tf line 14, in resource "awscc_ec2_nat_gateway" "this": │ 14: resource "awscc_ec2_nat_gateway" "this" { │ │ Waiting for Cloud Control API service CreateResource operation completion returned: waiter state transitioned to FAILED. StatusMessage: The request │ received was invalid. (Service: Ec2, Status Code: 400, Request ID: f7898d63-d29e-42f0-a79c-a87dab0178cb). ErrorCode: GeneralServiceException
Steps to Reproduce
-
terraform apply
Important Factoids
I can replicate the problem using CCAPI CLI directly
aws cloudcontrol create-resource \
--type-name AWS::EC2::NatGateway \
--desired-state "{\"ConnectivityType\": \"private\",\"SubnetId\":\"subnet-1966a927\"}"
And the request response:
{
"ProgressEvent": {
"TypeName": "AWS::EC2::NatGateway",
"RequestToken": "405959e3-2fe5-4aad-8468-b2595f5f9193",
"Operation": "CREATE",
"OperationStatus": "FAILED",
"EventTime": "2023-07-14T14:55:28.576000-07:00",
"StatusMessage": "The request received was invalid. (Service: Ec2, Status Code: 400, Request ID: ccc58328-2690-4353-9d76-4692436dde68)",
"ErrorCode": "GeneralServiceException"
}
}
upstream CCAPI / EC2 NatGateway issue, we are escalating this internally
closing this issue as the upstream bug fix is available now.