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

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

Open
kmazurek13 opened this issue May 15, 2024 · 1 comment · May be fixed by #37539
Open

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

kmazurek13 opened this issue May 15, 2024 · 1 comment · May be fixed by #37539
Labels
bug Addresses a defect in current functionality. service/appconfig Issues and PRs that pertain to the appconfig service.

Comments

@kmazurek13
Copy link

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

@kmazurek13 kmazurek13 added the bug Addresses a defect in current functionality. label May 15, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/appconfig Issues and PRs that pertain to the appconfig service. label May 15, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label May 15, 2024
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/appconfig Issues and PRs that pertain to the appconfig service.
Projects
None yet
2 participants