Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60c7d3f
commit 61b7eb8
Showing
5 changed files
with
88 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
# ------------------------------------------------------------------------------ | ||
# Output | ||
# ------------------------------------------------------------------------------ | ||
output "repository_arn" { | ||
description = "Full ARN of the repository." | ||
value = "${aws_ecr_repository.ecr-repo.arn}" | ||
} | ||
|
||
output "repository_url" { | ||
description = "The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName )" | ||
value = "${aws_ecr_repository.ecr-repo.repository_url}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
# ------------------------------------------------------------------------------ | ||
# Variables | ||
# ------------------------------------------------------------------------------ | ||
|
||
variable "name_prefix" { | ||
description = "A prefix used for naming resources." | ||
} | ||
|
||
variable "lifecycle_count_number" { | ||
description = "The max number of images to keep in the repository before expiring the oldest" | ||
default = "100" | ||
} | ||
|
||
variable "tags" { | ||
description = "A map of tags (key-value pairs) passed to resources." | ||
type = "map" | ||
default = {} | ||
} | ||
|
||
variable "trusted_accounts" { | ||
description = "IDs of other accounts that are trusted to pull and push to this repostitory" | ||
type = "list" | ||
default = [] | ||
} |