Skip to content

Commit

Permalink
add default customstackruns
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Sep 27, 2024
1 parent 90b1ac5 commit 31a0d90
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions setup/stacks/customruns.yaml
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

0 comments on commit 31a0d90

Please sign in to comment.