Skip to content

Commit 9362940

Browse files
committed
move example and add readme
1 parent 2c160d8 commit 9362940

File tree

5 files changed

+29
-7
lines changed

5 files changed

+29
-7
lines changed

example/basic/global.auto.tfvars

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/basic/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# basic example
2+
A basic example for this repository
3+
4+
## Code
5+
```hcl
6+
module "test_pipeline" {
7+
source = "rhythmictech/imagebuilder-recipe/aws"
8+
version = "~> 0.2.0"
9+
10+
description = "Testing pipeline"
11+
name = "test-pipeline"
12+
tags = local.tags
13+
recipe_arn = module.test_recipe.recipe_arn
14+
public = false
15+
}
16+
```
17+
18+
## Applying
19+
```
20+
> terraform apply
21+
22+
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
23+
24+
Outputs:
25+
26+
pipeline_arn = arn:aws:imagebuilder:us-east-1:000000000000:image-pipeline/test-pipeline
27+
```
File renamed without changes.

example/basic/main.tf renamed to examples/basic/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ module "test_recipe" {
5353
}
5454

5555
module "test_pipeline" {
56-
source = "rhythmictech/imagebuilder-pipeline/aws"
57-
version = "~> 0.1.0"
56+
source = "../../"
5857

5958
description = "Testing pipeline"
6059
name = "test-pipeline"
6160
tags = local.tags
6261
recipe_arn = module.test_recipe.recipe_arn
62+
public = false
6363
}
File renamed without changes.

0 commit comments

Comments
 (0)