From 55f5936d8b6cd196a0be3f1b8ab015cd090197a6 Mon Sep 17 00:00:00 2001 From: Dinesh Udayakumar Date: Sun, 26 Oct 2025 14:01:30 -0400 Subject: [PATCH 1/9] Update buildspec to use correct app directory --- day-14/simple-python-app/buildspec.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/day-14/simple-python-app/buildspec.yml b/day-14/simple-python-app/buildspec.yml index 8cccdf869..5432eb220 100644 --- a/day-14/simple-python-app/buildspec.yml +++ b/day-14/simple-python-app/buildspec.yml @@ -12,11 +12,11 @@ phases: pre_build: commands: - echo "Installing dependencies..." - - pip install -r day-13/simple-python-app/requirements.txt + - pip install -r day-14/simple-python-app/requirements.txt build: commands: - echo "Running tests..." - - cd day-13/simple-python-app/ + - cd day-14/simple-python-app/ - echo "Building Docker image..." - echo "$DOCKER_REGISTRY_PASSWORD" | docker login -u "$DOCKER_REGISTRY_USERNAME" --password-stdin "$DOCKER_REGISTRY_URL" - docker build -t "$DOCKER_REGISTRY_URL/$DOCKER_REGISTRY_USERNAME/simple-python-flask-app:latest" . From b0950604342771d84552a2e7d278ff90e5cebfe6 Mon Sep 17 00:00:00 2001 From: Dinesh Udayakumar Date: Sun, 26 Oct 2025 14:17:37 -0400 Subject: [PATCH 2/9] Update buildspec.yml --- day-14/simple-python-app/buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day-14/simple-python-app/buildspec.yml b/day-14/simple-python-app/buildspec.yml index 5432eb220..d1b891cf0 100644 --- a/day-14/simple-python-app/buildspec.yml +++ b/day-14/simple-python-app/buildspec.yml @@ -27,5 +27,5 @@ phases: artifacts: files: - '**/*' - base-directory: ../simple-python-app + base-directory: day-14/simple-python-app From f922a3d43bd9e90b1f4dac55e21b94dc01cdde6b Mon Sep 17 00:00:00 2001 From: Dinesh Udayakumar Date: Sun, 26 Oct 2025 14:21:47 -0400 Subject: [PATCH 3/9] Fix formatting issue in app.py --- day-14/simple-python-app/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/day-14/simple-python-app/app.py b/day-14/simple-python-app/app.py index ed673745b..908e3b87f 100644 --- a/day-14/simple-python-app/app.py +++ b/day-14/simple-python-app/app.py @@ -9,3 +9,4 @@ def hello(): if __name__ == '__main__': app.run() + From 4aadea0b931baf0440e5e3c6ddff787711464072 Mon Sep 17 00:00:00 2001 From: Dinesh Udayakumar Date: Sun, 26 Oct 2025 15:48:18 -0400 Subject: [PATCH 4/9] Update Docker image to use dineshuday version --- scripts/start_container.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/start_container.sh b/scripts/start_container.sh index c7617d846..7a818bf0a 100644 --- a/scripts/start_container.sh +++ b/scripts/start_container.sh @@ -2,7 +2,7 @@ set -e # Pull the Docker image from Docker Hub -docker pull abhishekf5/simple-python-flask-app +docker pull dineshuday/simple-python-flask-app # Run the Docker image as a container -docker run -d -p 5000:5000 abhishekf5/simple-python-flask-app +docker run -d -p 5000:5000 dineshuday/simple-python-flask-app From 893cced9413f4243d822f3eb6465b6375cf59829 Mon Sep 17 00:00:00 2001 From: Dinesh Udayakumar Date: Sun, 26 Oct 2025 15:59:35 -0400 Subject: [PATCH 5/9] test --- scripts/start_container.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/start_container.sh b/scripts/start_container.sh index 7a818bf0a..c25e07a52 100644 --- a/scripts/start_container.sh +++ b/scripts/start_container.sh @@ -6,3 +6,4 @@ docker pull dineshuday/simple-python-flask-app # Run the Docker image as a container docker run -d -p 5000:5000 dineshuday/simple-python-flask-app + From 980e50d441c3bd72e5e5bee9c6f256883712bcfe Mon Sep 17 00:00:00 2001 From: Dinesh Udayakumar Date: Sun, 26 Oct 2025 16:14:04 -0400 Subject: [PATCH 6/9] Update base-directory in buildspec.yml --- day-14/simple-python-app/buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day-14/simple-python-app/buildspec.yml b/day-14/simple-python-app/buildspec.yml index d1b891cf0..a5b1809d8 100644 --- a/day-14/simple-python-app/buildspec.yml +++ b/day-14/simple-python-app/buildspec.yml @@ -27,5 +27,5 @@ phases: artifacts: files: - '**/*' - base-directory: day-14/simple-python-app + base-directory: . From 7ab6144adabe4df82eeaf0d6719d7d81cd0124b4 Mon Sep 17 00:00:00 2001 From: Dinesh Udayakumar Date: Sun, 26 Oct 2025 16:24:12 -0400 Subject: [PATCH 7/9] Update base-directory in buildspec.yml --- day-14/simple-python-app/buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day-14/simple-python-app/buildspec.yml b/day-14/simple-python-app/buildspec.yml index a5b1809d8..5432eb220 100644 --- a/day-14/simple-python-app/buildspec.yml +++ b/day-14/simple-python-app/buildspec.yml @@ -27,5 +27,5 @@ phases: artifacts: files: - '**/*' - base-directory: . + base-directory: ../simple-python-app From b77cd460ca88679874649ed29ed657da042146a5 Mon Sep 17 00:00:00 2001 From: Dinesh Udayakumar Date: Sun, 26 Oct 2025 16:29:43 -0400 Subject: [PATCH 8/9] Update buildspec.yml to include new artifacts --- day-14/simple-python-app/buildspec.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/day-14/simple-python-app/buildspec.yml b/day-14/simple-python-app/buildspec.yml index 5432eb220..9cbaa8598 100644 --- a/day-14/simple-python-app/buildspec.yml +++ b/day-14/simple-python-app/buildspec.yml @@ -26,6 +26,8 @@ phases: - echo "Build completed successfully!" artifacts: files: + - ../../appspec.yml + - ../../scripts/**/* - '**/*' - base-directory: ../simple-python-app + base-directory: . From 5eb6634757cf2f9ea489be50327c0b25923678e1 Mon Sep 17 00:00:00 2001 From: Dinesh Udayakumar Date: Mon, 27 Oct 2025 20:27:56 -0400 Subject: [PATCH 9/9] changes to terraform tf --- day-24/main.tf | 14 +++++--------- day-24/outputs.tf | 4 ++++ day-24/provider.tf | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 day-24/outputs.tf diff --git a/day-24/main.tf b/day-24/main.tf index 2a466c1ca..e470c78f2 100644 --- a/day-24/main.tf +++ b/day-24/main.tf @@ -71,24 +71,24 @@ resource "aws_security_group" "webSg" { } resource "aws_s3_bucket" "example" { - bucket = "abhisheksterraform2023project" + bucket = "dineshudaysterraform2025project" } resource "aws_instance" "webserver1" { - ami = "ami-0261755bbcb8c4a84" + ami = "ami-0360c520857e3138f" instance_type = "t2.micro" vpc_security_group_ids = [aws_security_group.webSg.id] subnet_id = aws_subnet.sub1.id - user_data = base64encode(file("userdata.sh")) + user_data_base64 = base64encode(file("userdata.sh")) } resource "aws_instance" "webserver2" { - ami = "ami-0261755bbcb8c4a84" + ami = "ami-0360c520857e3138f" instance_type = "t2.micro" vpc_security_group_ids = [aws_security_group.webSg.id] subnet_id = aws_subnet.sub2.id - user_data = base64encode(file("userdata1.sh")) + user_data_base64 = base64encode(file("userdata1.sh")) } #create alb @@ -138,8 +138,4 @@ resource "aws_lb_listener" "listener" { target_group_arn = aws_lb_target_group.tg.arn type = "forward" } -} - -output "loadbalancerdns" { - value = aws_lb.myalb.dns_name } \ No newline at end of file diff --git a/day-24/outputs.tf b/day-24/outputs.tf new file mode 100644 index 000000000..ed645e076 --- /dev/null +++ b/day-24/outputs.tf @@ -0,0 +1,4 @@ +output "loadbalancerdns" { + description = "DNS of Load Balancer" + value = aws_lb.myalb.dns_name +} \ No newline at end of file diff --git a/day-24/provider.tf b/day-24/provider.tf index ce9a20ca8..5b99ab481 100644 --- a/day-24/provider.tf +++ b/day-24/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "5.11.0" + version = "6.18.0" } } }