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

cdktf: add support for on_failure for local exec provider #3502

Open
1 task
klemmchr opened this issue Feb 18, 2024 · 1 comment
Open
1 task

cdktf: add support for on_failure for local exec provider #3502

klemmchr opened this issue Feb 18, 2024 · 1 comment
Labels
enhancement New feature or request needs-priority Issue has not yet been prioritized; this will prompt team review

Comments

@klemmchr
Copy link

Description

local-exec allows to set the failure behavior. Adding support for this would be great.

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@klemmchr klemmchr added enhancement New feature or request new Un-triaged issue labels Feb 18, 2024
@ansgarm
Copy link
Member

ansgarm commented Feb 19, 2024

Hi @klemmchr 👋

Thank you for raising this! Until we add support for this, you can use an override to set this attribute:

    const pwd = new Password(this, "password", {length: 12});
    pwd.provisioners = [{
      type: 'local-exec',
      command: `echo "The generated password is ${pwd.result}"`,
    }];

    pwd.addOverride("provisioner.0.on_failure", "continue");

@ansgarm ansgarm added needs-priority Issue has not yet been prioritized; this will prompt team review and removed new Un-triaged issue labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-priority Issue has not yet been prioritized; this will prompt team review
Projects
None yet
Development

No branches or pull requests

2 participants