File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ should build and push an image, and only then a lambda can be created.
19
19
20
20
This module streamlines this process by pushing some tiny image as a placeholder.
21
21
22
- Idea was borrowed from [ this StackOverflow answer] ( https://stackoverflow.com/a/78501527/14401160 ) ,
22
+ Idea and the initial code was borrowed from
23
+ [ this StackOverflow answer] ( https://stackoverflow.com/a/78501527/14401160 ) ,
23
24
but the implementation was significantly rewritten.
24
25
25
26
@@ -33,7 +34,8 @@ resource "aws_ecr_repository" "example" {
33
34
}
34
35
35
36
module "ecr_repo_image" {
36
- source = "./ecr_curl"
37
+ source = "sterliakov/ecr-image/aws"
38
+ version = "0.1.0"
37
39
38
40
push_ecr_is_public = false
39
41
push_repo_fqdn = replace(aws_ecr_repository.example.repository_url, "//.*$/", "") # remove everything after first slash
@@ -45,6 +47,9 @@ module "ecr_repo_image" {
45
47
## NOTES
46
48
47
49
* This module only works under Linux.
50
+ * Destroying this module does not remove the pushed image from the repository. Consider
51
+ setting ` force_delete = True ` on the ` aws_ecr_repository ` resource if you
52
+ want to remove the repository with terraform later.
48
53
* This module needs ` curl ` and ` jq ` on ` PATH ` . If ` jq ` are missing, it will fetch
49
54
and install ` jq 1.7.1 ` locally for the appropriate architecture.
50
55
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ resource "aws_ecr_repository" "example" {
4
4
}
5
5
6
6
module "ecr_repo_image" {
7
- source = " ../.."
7
+ source = " sterliakov/ecr-image/aws"
8
+ version = " 0.1.0"
8
9
9
10
push_ecr_is_public = false
10
11
push_repo_fqdn = replace (aws_ecr_repository. example . repository_url , " //.*$/" , " " ) # remove everything after first slash
You can’t perform that action at this time.
0 commit comments