Skip to content

M polonczyk patch 1#103

Open
M-Polonczyk wants to merge 2 commits into
ine-labs:masterfrom
icwt-demo:M-Polonczyk-patch-1
Open

M polonczyk patch 1#103
M-Polonczyk wants to merge 2 commits into
ine-labs:masterfrom
icwt-demo:M-Polonczyk-patch-1

Conversation

@M-Polonczyk

Copy link
Copy Markdown

No description provided.

M-Polonczyk and others added 2 commits March 4, 2026 18:30
Added a print statement to output the JWT secret for debugging purposes.
Copilot AI review requested due to automatic review settings May 29, 2026 09:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Migrates the AWSGoat deployment region from us-east-1 to eu-central-1 across Terraform, application code, CI workflows, and documentation. Also adds a .gitignore and a new openapi.json for module-1.

Changes:

  • Replace us-east-1 region references with eu-central-1 in Terraform, Lambda code, DynamoDB populate script, and GitHub workflows.
  • Add .gitignore and a new modules/module-1/openapi.json API specification.
  • Update documentation (README and attack manual) to reflect the new region.

Reviewed changes

Copilot reviewed 9 out of 11 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
modules/module-2/main.tf Switch provider region and DB AZ to eu-central-1.
modules/module-1/main.tf Switch provider region and subnet AZ to eu-central-1.
modules/module-1/resources/lambda/data/lambda_function.py Region string update; adds a debug print of the JWT secret.
modules/module-1/resources/dynamodb/populate-table.py Update DynamoDB region.
modules/module-1/openapi.json New API Gateway OpenAPI spec referencing eu-central-1 Lambda ARNs.
attack-manuals/module-1/07-IAM Privilege Escalation.md Update example AWS CLI region.
README.md Update pricing region text.
.gitignore Add Terraform/Python ignore patterns.
.github/workflows/tf-apply-main.yml Update workflow AWS_REGION.
.github/workflows/tf-destroy-main.yml Update workflow AWS_REGION.
Files not reviewed (1)
  • modules/module-1/.terraform.lock.hcl: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

def generate_auth(userInfo):
if userInfo is not None:
JWT_SECRET = os.environ["JWT_SECRET"]
print(JWT_SECRET)
Comment on lines +44 to 45
location = "eu-central-1"
object_url = "https://%s.s3.amazonaws.com/%s" % (bucket, object_name)
}
},
"x-amazon-apigateway-integration" : {
"uri" : "arn:aws:apigateway:eu-central-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-central-1:140986930558:function:blog-application-data/invocations",
Comment thread README.md
# Pricing

The resources created with the deployment of AWSGoat will not incur any charges if the AWS account is under the free tier/trial period. However, upon exhaustion/ineligibility of the free tier/trial, the following charges will apply for the US-East region:
The resources created with the deployment of AWSGoat will not incur any charges if the AWS account is under the free tier/trial period. However, upon exhaustion/ineligibility of the free tier/trial, the following charges will apply for the eu-central region:
Comment thread modules/module-2/main.tf
@@ -138,7 +138,7 @@ resource "aws_db_instance" "database-instance" {
password = "T2kVB3zgeN3YbrKS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants