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

Error creating Route53 Record Set with awscc_route53_record_set resource #2162

Closed
novekm opened this issue Jan 16, 2025 · 1 comment
Closed
Assignees
Labels

Comments

@novekm
Copy link
Contributor

novekm commented Jan 16, 2025

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.10.4 on darwin_arm64

Affected Resource(s)

  • awscc_route53_record_set

Terraform Configuration Files

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

resource "awscc_route53_record_set" "test" {
  hosted_zone_name = "${var.root_domain_name}."

  name             = "test"
  type             = "CNAME"
  resource_records = ["testing"]
}

Debug Output

Panic Output

Expected Behavior

Successful creation of the Route53 record. The docs for awscc_route53_record_set show this as a supported resource however AWS::Route53::RecordSet is not listed as a supported resource in the Cloud Control API as of now: https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/supported-resources.html

Actual Behavior

Failure with the following error message:

╷
│ Error: AWS SDK Go Service Operation Unsuccessful
│ 
│   with awscc_route53_record_set.test,
│   on ses.tf line 27, in resource "awscc_route53_record_set" "test":
│   27: resource "awscc_route53_record_set" "test" {
│ 
│ Calling Cloud Control API service CreateResource operation returned: operation error
│ CloudControl: CreateResource, https response error StatusCode: 400, RequestID:
│ 08ae2645-9f97-481a-baba-1b61099747ff, UnsupportedActionException: The resource
│ AWS::Route53::RecordSet is not yet supported via Cloud Control API
╵

Steps to Reproduce

  1. create file with the above code snippet
  2. terraform apply

Important Factoids

It appears that somehow during the weekly poll of resources available in CCAPI, this resource was inadvertently recognized. Either that, or it may have been removed from the Cloud Control API. I have not come across a situation where the latter has happened yet, but it is possible. This resource should be removed from the awscc docs until supported in the AWS Cloud Control API to prevent user confusion.

@quixoticmonk
Copy link
Collaborator

@novekm We are aware of this one and working with the Route53 team on this. #2129.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants