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

Default value per operation #118

Closed
1 task done
sveba opened this issue Mar 21, 2024 · 2 comments
Closed
1 task done

Default value per operation #118

sveba opened this issue Mar 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@sveba
Copy link

sveba commented Mar 21, 2024

Terraform CLI and Framework Versions

TF-CLI
1.6
TF-Framework
1.5.0

Terraform Plugin Framework Code

func (r *pin) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
    resp.Schema = schema.Schema{
        MarkdownDescription: "Represents a pin.",
        Attributes: map[string]schema.Attribute{
            "timeouts": timeouts.Attributes(ctx, timeouts.Opts{
                Create: true,
                Delete: true,
            }),

Terraform Configuration

none

Expected Behavior

Set default value per operation. At least I can not find documentation

Actual Behavior

Be able to set default timeout value per operation or at least default for all nested attributes somehow

Steps to Reproduce

  1. terraform apply

Logs

No response

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@sveba sveba added the bug Something isn't working label Mar 21, 2024
@sveba
Copy link
Author

sveba commented Mar 21, 2024

i unerstood now. it can be done only in the code. this works for me

@sveba sveba closed this as completed Mar 21, 2024
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant