Skip to content

Conversation

@eddalmond1
Copy link
Collaborator

Description

Added in an API Gateway resource, along with method definition, cloudwatch logging and ability to invoke a lambda.
NOTE - this code needs the Lambda details editing in the config once this is in place

Also fixed a cross-stack dependency, as we want to deploy just the config in our stack.

Context

We need this for our full stack.

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@eddalmond1 eddalmond1 marked this pull request as draft May 2, 2025 15:06
@eddalmond1
Copy link
Collaborator Author

TO DO:

  1. Plug in Lambda
  2. Work out ACM certificate implementation
  3. Work out mtls certificate implementation

Karthikeyannhs
Karthikeyannhs previously approved these changes May 7, 2025
@Karthikeyannhs
Copy link
Contributor

Approved! :)

@eddalmond1 eddalmond1 marked this pull request as ready for review May 27, 2025 12:43
resource "aws_lambda_permission" "get_patient_check" {
statement_id = "AllowExecutionFromAPIGateway"
action = "lambda:InvokeFunction"
function_name = module.eligibility_signposting_lambda_function.aws_lambda_function_name # placeholder for the actual lambda function name
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

get rid of this comment

Copy link
Contributor

@TOEL2 TOEL2 left a comment

Choose a reason for hiding this comment

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

Walked through changes with Edd and Rob, looks good

@eddalmond1 eddalmond1 merged commit 094ae6f into main May 29, 2025
24 checks passed
@eddalmond1 eddalmond1 deleted the feature/eja-eli-204-add-api-gateway branch May 29, 2025 14:32
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.

3 participants