You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-9Lines changed: 27 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,31 +6,49 @@ Coming soon.
6
6
7
7
## Local Development
8
8
9
+
### 1) Start a Local AWX instance in a kubernetes cluster
10
+
A fresh AWX instance is required for automated tests, so they can ensure terraform provider is working by targetting a live AWX instance.
11
+
12
+
A new instance can be re-created by invoking the `reCreate`[mage](https://magefile.org/) target defined in `tools/magefile.go`.
13
+
Once executed it will deploy an AWX instance to a Kubernetes cluster, using [kind](https://kind.sigs.k8s.io/).
14
+
9
15
```sh
10
-
# Start a Local AWX deployed to a Kind
11
16
cd ./tools && go run mage.go -v reCreate &&cd ..
12
17
```
13
18
19
+
### 2) Build Provider
20
+
1. Ensure [GoReleaser](https://goreleaser.com/install/) is installed
21
+
2. Run build command:
14
22
```sh
15
-
# Build Provider
16
23
goreleaser build --snapshot --rm-dist
24
+
```
25
+
26
+
### 3) Copy Provider
27
+
Copy the provider to user's `~/.terraform.d` folder.
28
+
> Important: if building the provider in an operating system other than Linux x86_64, adjust the paths below replacing `linux_amd64` with the corresponding platform code. E.g.: `darwin_amd64` for macOS.
0 commit comments