-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90b1ac5
commit 31a0d90
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
apiVersion: deployments.plural.sh/v1alpha1 | ||
kind: CustomStackRun | ||
metadata: | ||
name: force-unlock | ||
spec: | ||
name: force-unlock | ||
documentation: "force release a terraform lock if present" | ||
commands: | ||
- cmd: terraform | ||
args: [init] | ||
- cmd: terraform | ||
args: | ||
- force-unlock | ||
- '-force' | ||
- "{{ context.lockId }}" | ||
configuration: | ||
- name: lockId | ||
type: STRING | ||
documentation: the lock id to release | ||
--- | ||
apiVersion: deployments.plural.sh/v1alpha1 | ||
kind: CustomStackRun | ||
metadata: | ||
name: state-rm | ||
spec: | ||
name: state-rm | ||
documentation: "remove a resource from tf state" | ||
commands: | ||
- cmd: terraform | ||
args: [init] | ||
- cmd: terraform | ||
args: | ||
- state | ||
- rm | ||
- "{{ context.resource }}" | ||
configuration: | ||
- name: resource | ||
type: STRING | ||
documentation: the resource path to remove | ||
--- | ||
apiVersion: deployments.plural.sh/v1alpha1 | ||
kind: CustomStackRun | ||
metadata: | ||
name: import | ||
spec: | ||
name: import | ||
documentation: "import a resource into tf state" | ||
commands: | ||
- cmd: terraform | ||
args: [init] | ||
- cmd: terraform | ||
args: | ||
- import | ||
- "{{ context.resource }}" | ||
- "{{ context.identifier }}" | ||
configuration: | ||
- name: resource | ||
type: STRING | ||
documentation: the resource path to import | ||
- name: identifier | ||
type: STRING | ||
documentation: the provider-specific identifier to import |