acoustic-dress-83560
01/05/2023, 8:40 AMremove
option from the Pulumi GitHub action?
When my action runs, it shows a warning that remove
isn't recognised, continues and does not delete the stack from Pulumi after successfully destroying the resources:
Warning: Unexpected input(s) 'remove', valid inputs are ['command', 'stack-name', 'work-dir', 'comment-on-pr', 'comment-on-pr-number', 'github-token', 'cloud-url', 'secrets-provider', 'parallel', 'message', 'config-map', 'expect-no-changes', 'diff', 'replace', 'target', 'target-dependents', 'policyPacks', 'policyPackConfigs', 'refresh', 'upsert', 'edit-pr-comment', 'pulumi-version', 'color']
...
Resources:
- 35 deleted
Duration: 4m7s
The resources in the stack have been deleted, but the history and configuration associated with the stack are still maintained.
If you want to remove the stack completely, run `pulumi stack rm company/infra`.
I'm using @v3
on the action and I can see the remove
option in the docs:
- uses: pulumi/actions@v3
with:
command: destroy
stack-name: company/${{ inputs.environment_name }}
work-dir: ${{ env.working_directory }}
upsert: false
remove: true
high-translator-37096
01/05/2023, 9:15 AMacoustic-dress-83560
01/05/2023, 9:30 AMRun pulumi/actions@a8f22a75ed2d159b2b05326e3cba79b1fcdaab18
with:
command: destroy
stack-name: company/infra
work-dir: iac/pulumi
upsert: false
remove: true
...
Resources:
- 35 deleted
Duration: 4m42s
The resources in the stack have been deleted, but the history and configuration associated with the stack are still maintained.
If you want to remove the stack completely, run `pulumi stack rm company/infra`.