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

feat!: Use data source for convention and function for generating name #54

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

anmoel
Copy link
Member

@anmoel anmoel commented May 30, 2024

No description provided.

Comment on lines +33 to +39
max_length = 4
},
]
}

resource "random_string" "random" {
length = 16
Copy link
Collaborator

@stevie- stevie- May 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

der randomwert in der convention setzt max_length auf 4
der random_string generiert eine string mit length 16

Schneidet dann designation den Rest ab?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ja

make
```

To use the local build version you need tell terraform where to look for it via a terraform config override.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[...] you need to tell [...]


To use the local build version you need tell terraform where to look for it via a terraform config override.

Create `dev.tfrc` in your terraform code folder (f.e. in [dev.tfrc](./examples/development/dev.tfrc)):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"f.e." -> "e.g."

page_title: "generate_name function - terraform-provider-designation"
subcategory: ""
description: |-
Generate a name for a convention and with specified parameters
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Generate a name for a convention with specified parameters"

override_special = "/@£$"
}

output "name1" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warum heißt das "name1"? Wäre hier ein sprechenderer Bezeichner möglich / sinnvoll?

}

output "name_app" {
value = designation_name.app.result
output "name1" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kann "name1" sprechender benannt werden?

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

Successfully merging this pull request may close these issues.

None yet

3 participants