Skip to content

Commit

Permalink
chore(modules/repository-template): add prefix, upstream urls to outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
a1k0u committed Feb 27, 2025
1 parent 8105d04 commit c22c4d9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/repository-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,12 @@ No modules.

| Name | Description |
|------|-------------|
| <a name="output_create_pull_through_cache_rule"></a> [create\_pull\_through\_cache\_rule](#output\_create\_pull\_through\_cache\_rule) | Determines whether a pull through cache rule will be created |
| <a name="output_iam_role_arn"></a> [iam\_role\_arn](#output\_iam\_role\_arn) | IAM role ARN |
| <a name="output_iam_role_name"></a> [iam\_role\_name](#output\_iam\_role\_name) | IAM role name |
| <a name="output_iam_role_unique_id"></a> [iam\_role\_unique\_id](#output\_iam\_role\_unique\_id) | Stable and unique string identifying the IAM role |
| <a name="output_prefix"></a> [prefix](#output\_prefix) | The repository name prefix |
| <a name="output_upstream_registry_url"></a> [upstream\_registry\_url](#output\_upstream\_registry\_url) | The registry URL of the upstream public registry to use as the source for the pull through cache rule |
<!-- END_TF_DOCS -->

## License
Expand Down
15 changes: 15 additions & 0 deletions modules/repository-template/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,18 @@ output "iam_role_unique_id" {
description = "Stable and unique string identifying the IAM role"
value = try(aws_iam_role.this[0].unique_id, null)
}

output "prefix" {
description = "The repository name prefix"
value = var.prefix
}

output "upstream_registry_url" {
description = "The registry URL of the upstream public registry to use as the source for the pull through cache rule"
value = var.upstream_registry_url
}

output "create_pull_through_cache_rule" {
description = "Determines whether a pull through cache rule will be created"
value = var.create && var.create_pull_through_cache_rule
}

0 comments on commit c22c4d9

Please sign in to comment.