Skip to content

Commit

Permalink
update tags version in example
Browse files Browse the repository at this point in the history
  • Loading branch information
smiller171 committed Sep 21, 2020
1 parent d2d03cc commit f79e0b4
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 5 deletions.
73 changes: 69 additions & 4 deletions examples/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,82 @@ A basic example for this repository

## Code
```hcl
module "test_component" {
data "aws_caller_identity" "current" {
}
locals {
account_id = data.aws_caller_identity.current.account_id
tags = module.tags.tags_no_name
}
module "tags" {
source = "rhythmictech/tags"
version = "~> 1.1.0"
names = [
"smiller",
"imagebuilder-test"
]
tags = merge({
"Env" = "test"
"Namespace" = "smiller"
"notes" = "Testing only - Can be safely deleted"
"Owner" = var.owner
}, var.additional_tags)
}
module "component_ansible_setup" {
source = "rhythmictech/imagebuilder-component-ansible-setup/aws"
version = "~> 1.0.0-rc1"
component_version = "1.0.0"
description = "Testing ansible setup"
name = "testing-setup-component"
tags = local.tags
}
module "component_ansible" {
source = "rhythmictech/imagebuilder-component-ansible/aws"
version = "~> 0.2.0"
version = "~> 2.0.0-rc1"
component_version = "1.0.0"
description = "Testing component"
name = "testing-component"
playbook_dir = "packer-generic-images/base"
playbook_repo = "https://github.com/rhythmictech/packer-generic-images.git"
tags = local.tags
}
module "test_recipe" {
source = "rhythmictech/imagebuilder-recipe/aws"
version = "~> 0.2.0"
description = "Testing recipe"
name = "test-recipe"
parent_image = "arn:aws:imagebuilder:us-east-1:aws:image/amazon-linux-2-x86/x.x.x"
recipe_version = "1.0.0"
tags = local.tags
update = true
component_arns = [
module.component_ansible_setup.component_arn,
module.component_ansible.component_arn,
"arn:aws:imagebuilder:us-east-1:aws:component/simple-boot-test-linux/1.0.0/1",
"arn:aws:imagebuilder:us-east-1:aws:component/reboot-test-linux/1.0.0/1"
]
}
module "test_pipeline" {
source = "rhythmictech/imagebuilder-pipeline/aws"
version = "~> 0.3.0"
description = "Testing pipeline"
name = "test-pipeline"
tags = local.tags
recipe_arn = module.test_recipe.recipe_arn
public = false
}
```

## Applying
Expand Down
4 changes: 3 additions & 1 deletion examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ locals {
}

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


names = [
"smiller",
Expand Down

0 comments on commit f79e0b4

Please sign in to comment.