Skip to content

Commit f79e0b4

Browse files
committed
update tags version in example
1 parent d2d03cc commit f79e0b4

File tree

2 files changed

+72
-5
lines changed

2 files changed

+72
-5
lines changed

examples/basic/README.md

+69-4
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,82 @@ A basic example for this repository
33

44
## Code
55
```hcl
6-
module "test_component" {
6+
data "aws_caller_identity" "current" {
7+
}
8+
9+
locals {
10+
account_id = data.aws_caller_identity.current.account_id
11+
tags = module.tags.tags_no_name
12+
}
13+
14+
module "tags" {
15+
source = "rhythmictech/tags"
16+
version = "~> 1.1.0"
17+
18+
19+
names = [
20+
"smiller",
21+
"imagebuilder-test"
22+
]
23+
24+
tags = merge({
25+
"Env" = "test"
26+
"Namespace" = "smiller"
27+
"notes" = "Testing only - Can be safely deleted"
28+
"Owner" = var.owner
29+
}, var.additional_tags)
30+
}
31+
32+
module "component_ansible_setup" {
33+
source = "rhythmictech/imagebuilder-component-ansible-setup/aws"
34+
version = "~> 1.0.0-rc1"
35+
36+
component_version = "1.0.0"
37+
description = "Testing ansible setup"
38+
name = "testing-setup-component"
39+
tags = local.tags
40+
}
41+
42+
module "component_ansible" {
743
source = "rhythmictech/imagebuilder-component-ansible/aws"
8-
version = "~> 0.2.0"
44+
version = "~> 2.0.0-rc1"
945
1046
component_version = "1.0.0"
1147
description = "Testing component"
1248
name = "testing-component"
13-
playbook_dir = "packer-generic-images/base"
14-
playbook_repo = "https://github.com/rhythmictech/packer-generic-images.git"
1549
tags = local.tags
1650
}
51+
52+
module "test_recipe" {
53+
source = "rhythmictech/imagebuilder-recipe/aws"
54+
version = "~> 0.2.0"
55+
56+
description = "Testing recipe"
57+
name = "test-recipe"
58+
parent_image = "arn:aws:imagebuilder:us-east-1:aws:image/amazon-linux-2-x86/x.x.x"
59+
recipe_version = "1.0.0"
60+
tags = local.tags
61+
update = true
62+
63+
component_arns = [
64+
module.component_ansible_setup.component_arn,
65+
module.component_ansible.component_arn,
66+
"arn:aws:imagebuilder:us-east-1:aws:component/simple-boot-test-linux/1.0.0/1",
67+
"arn:aws:imagebuilder:us-east-1:aws:component/reboot-test-linux/1.0.0/1"
68+
]
69+
}
70+
71+
module "test_pipeline" {
72+
source = "rhythmictech/imagebuilder-pipeline/aws"
73+
version = "~> 0.3.0"
74+
75+
description = "Testing pipeline"
76+
name = "test-pipeline"
77+
tags = local.tags
78+
recipe_arn = module.test_recipe.recipe_arn
79+
public = false
80+
}
81+
1782
```
1883

1984
## Applying

examples/basic/main.tf

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ locals {
77
}
88

99
module "tags" {
10-
source = "git::https://github.com/rhythmictech/terraform-terraform-tags.git?ref=v1.0.0"
10+
source = "rhythmictech/tags"
11+
version = "~> 1.1.0"
12+
1113

1214
names = [
1315
"smiller",

0 commit comments

Comments
 (0)