Skip to content

Functions to convert to and between different identifier case schemes (camelcase, etc) #25230

@MalikBagwala

Description

@MalikBagwala

Hello,

I wanted to programmatically set names to a few resources (which requires some manipulation), however since the terraform language does not support user defined functions this has become a limitation

eg. I want to dynamically set the name of an AWS S3 bucket to the name of the current project
so My Project -> my-project (kebab case)

My suggestion would be to add these utility functions which will greatly extend the flexibility of naming resources

  1. camelCase
  2. kebab-case
  3. snake_case
  4. PascalCase

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions