-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(alb): complete example can be applied without errors (#150)
* fix(example): complete example can be applied without errors * fix initial apply w/o target * Fix alb lookup * fixed ecr login in example * updated docs * fixed race conditions and trivy errors --------- Co-authored-by: Saef Taher <[email protected]>
- Loading branch information
1 parent
8b89520
commit 5a2bbef
Showing
10 changed files
with
111 additions
and
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
data "aws_caller_identity" "current" {} | ||
|
||
data "aws_availability_zones" "available" { | ||
state = "available" | ||
} | ||
|
||
data "aws_security_group" "default" { | ||
name = "default" | ||
vpc_id = module.vpc.vpc_id | ||
} |
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,3 +1,3 @@ | ||
output "alb_dns_name" { | ||
value = aws_lb.public.dns_name | ||
output "endpoint" { | ||
value = "http://${module.alb.dns_name}/" | ||
} |
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,9 +1,15 @@ | ||
FROM python:3.9-alpine | ||
FROM python:3.12-alpine | ||
|
||
ADD index.html index.html | ||
ADD server.py server.py | ||
RUN addgroup -S app && adduser -S app -G app | ||
WORKDIR /home/app | ||
|
||
ADD index.html /home/app/index.html | ||
ADD server.py /home/app/server.py | ||
|
||
RUN chown -R app:app /home/app | ||
|
||
USER app | ||
|
||
EXPOSE 8000 | ||
|
||
ENTRYPOINT ["python3", "server.py"] |
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
Oops, something went wrong.