-
Notifications
You must be signed in to change notification settings - Fork 3
/
plugin.yaml
53 lines (47 loc) · 1.09 KB
/
plugin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: terraform
spec:
description: |
This is a sample terraform script that provisions a temporary Amazon S3
bucket for use within a sandbox.
runner:
image: hashicorp/terraform:1.4.2
namespace: signadot
podTemplateOverlay: |
spec:
containers:
- name: main
env:
- name: TFSTATE_BUCKET
value: @{tfstate-bucket}
volumeMounts:
- name: aws-auth
mountPath: /root/.aws
volumes:
- name: aws-auth
secret:
secretName: aws-auth
create:
- name: provision
inputs:
- name: region
valueFromSandbox: true
as:
env: AWS_REGION
outputs:
- name: bucket-name
valueFromPath: /tmp/bucket-name
script: "@{embed: ./plugin/provision.sh}"
delete:
- name: deprovision
inputs:
- name: region
valueFromSandbox: true
as:
env: AWS_REGION
- name: bucket-name
valueFromStep:
name: provision
output: bucket-name
as:
env: BUCKET_NAME
script: "@{embed: ./plugin/deprovision.sh}"