Skip to content

Improve resource naming #208

@xescugc

Description

@xescugc

Abstract

Right now the logic for the names of the resources is the following:

  • tag.Name
  • id
  • Random alphanumeric value of length 5

For each of those we test if it's a valid name for a resource and if not we fallback to the next one. A good idea would be that if the tag.Name has a value, try to remove/alter it to fit into the Terraform validation of a resource name, so it would be much more readable.

Proposal

Have a way to remove the invalid characters of a potential resource name to make it more readable for the end user

Implementation

I would say that having a regexp that matches all those invalid charaters and try to remove them directly.

Open issues (if applicable)

Metadata

Metadata

Assignees

Labels

Featureroadmap featureType: EnhancementProvide a new feature or improve an existing one

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions