Skip to content

Commit c918490

Browse files
committed
document imports (#35)
1 parent 0b6ede0 commit c918490

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

docs/resources/application.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,10 @@ The `plugin` block has the following attributes:
210210
Each `plugin/env` block has the following attributes:
211211
* `name` - (Optional) string.
212212
* `value` - (Optional) string.
213+
214+
## Import
215+
216+
ArgoCD applications can be imported using an id consisting of `{name}`, e.g.
217+
```
218+
$ terraform import argocd_application.myapp myapp
219+
```

docs/resources/project.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,10 @@ Each `sync_window` block can have the following attributes:
128128
* `manual_sync` - (Optional) Boolean, enables manual syncs when they would otherwise be blocked.
129129
* `namespaces` - (Optional) List of namespaces that the window will apply to.
130130
* `schedule` - (Optional) Time the window will begin, specified in cron format.
131+
132+
## Import
133+
134+
ArgoCD projects can be imported using an id consisting of `{name}`, e.g.
135+
```
136+
$ terraform import argocd_project.myproject myproject
137+
```

docs/resources/repository.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,12 @@ resource "argocd_repository" "private" {
4343

4444
* `connection_state_status` - string, repository connection state status.
4545
* `inherited_creds` - boolean, whether credentials wre inherited fron a credential set.
46+
47+
## Import
48+
49+
ArgoCD repositories can be imported using an id consisting of `{repo}`, e.g.
50+
```
51+
$ terraform import argocd_repository.myrepo [email protected]:somerepo.git
52+
```
53+
54+
**NOTE**: as ArgoCD API does not return any sensitive information, a subsequent _terraform apply_ should be executed to make the password, ssh_private_key and tls_client_cert_key attributes converge to their expected values defined within the plan.

docs/resources/repository_credentials.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,12 @@ resource "argocd_repository" "private" {
2626
* `ssh_private_key` - (Optional), string, SSH private key data to authenticate against the repository server. **Only for Git repositories**.
2727
* `tls_client_cert_data` - (Optional), TLS client cert data to authenticate against the repository server.
2828
* `tls_client_cert_key` - (Optional), TLS client cert key to authenticate against the repository server.
29+
30+
## Import
31+
32+
ArgoCD repository credentials can be imported using an id consisting of `{url}`, e.g.
33+
```
34+
$ terraform import argocd_repository_credentials.myrepocreds [email protected]:somerepo.git
35+
```
36+
37+
**NOTE**: as ArgoCD API does not return any sensitive information, a subsequent _terraform apply_ should be executed to make the password, ssh_private_key and tls_client_cert_key attributes converge to their expected values defined within the plan.

0 commit comments

Comments
 (0)