hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.12k forks source link

[Bug]: AppConfig Configuration Profile Names Allow 64 Characters. Should be 128. #37538

Closed kmazurek13 closed 1 month ago

kmazurek13 commented 4 months ago

Terraform Core Version

1.6.2

AWS Provider Version

5.23.1

Affected Resource(s)

aws_appconfig_configuration_profile

Expected Behavior

I should be able to add a configuration profile with a name longer than 64 characters and less than or equal to 128 characters.

Actual Behavior

I receive an error regarding the length of my name being too long.

Relevant Error/Panic Output Snippet

╷
│ Error: expected length of name to be in the range (1 - 64), got /microservices-test/notifications-api/nginx/conf.d/notifications-api.conf
│ 
│   with aws_appconfig_configuration_profile.microservices_test_notifications_api_nginx_configuration,
│   on appconfig.tf line 111, in resource "aws_appconfig_configuration_profile" "microservices_test_notifications_api_nginx_configuration":
│  111:   name               = "${local.microservices_test_notifications_api_namespace}/nginx/conf.d/notifications-api.conf"
│ 
╵

Terraform Configuration Files

resource "aws_appconfig_configuration_profile" "microservices_test_notifications_api_nginx_configuration" {
  application_id = aws_appconfig_application.notifications_api.id
  name               = "${local.microservices_test_notifications_api_namespace}/nginx/conf.d/notifications-api.conf"
  description        = "Managed by Terraform"
  location_uri       = "${local.microservices_test_notifications_api_namespace}/nginx/conf.d/notifications-api.conf://ssm-parameter"
  retrieval_role_arn = "arn:aws:iam::349646072622:role/service-role/AWSAppConfigServiceRole_microservices-test"
  tags = {
    ecs_cluster_name = local.microservices_test_ecs_cluster_name
  }
}

Steps to Reproduce

  1. Try to create a new aws_appconfig_configuration_profile with a name longer than 64 characters.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

AWS Docs: https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_CreateConfigurationProfile.html Terraform Docs: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appconfig_configuration_profile

Would you like to implement a fix?

Yes

github-actions[bot] commented 4 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 1 month ago

[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

github-actions[bot] commented 1 month ago

This functionality has been released in v5.62.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

github-actions[bot] commented 3 weeks ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.