Skip to content

Conversation

@kakakakakku
Copy link
Contributor

@kakakakakku kakakakakku commented Dec 13, 2025

Issue #, if available:
N/A

Description of changes:
Hi😀 Thanks for the useful patterns!

This commit forces the Lambda Python runtime to 3.14, but it seems the update was made without verifying that it actually works.

As a result, I get the following error:

╷
│ Error: expected runtime to be one of [nodejs nodejs4.3 nodejs6.10 nodejs8.10 nodejs10.x nodejs12.x nodejs14.x java8 java8.al2 java11 python2.7 python3.6 python3.7 python3.8 python3.9 dotnetcore1.0 dotnetcore2.0 dotnetcore2.1 dotnetcore3.1 nodejs4.3-edge go1.x ruby2.5 ruby2.7 provided provided.al2], got python3.14
│ 
│   with aws_lambda_function.app,
│   on main.tf line 60, in resource "aws_lambda_function" "app":
│   60:   runtime = "python3.14"
│ 
╵

So I fixed it.

Check

$ curl -s https://bpikmq87k6.execute-api.us-east-1.amazonaws.com | jq .
{
  "message ": {
    "functionName": "test_apigw_integration",
    "xForwardedFor": "124.214.34.83",
    "method": "GET",
    "rawPath": "/",
    "queryString": null,
    "timestamp": "13/Dec/2025:14:07:21 +0000"
  }
}
$ curl -s "https://bpikmq87k6.execute-api.us-east-1.amazonaws.com/pets/dog/1?foo=bar" -X POST | jq .
{
  "message ": {
    "functionName": "test_apigw_integration",
    "xForwardedFor": "124.214.34.83",
    "method": "POST",
    "rawPath": "/pets/dog/1",
    "queryString": {
      "foo": "bar"
    },
    "timestamp": "13/Dec/2025:14:08:59 +0000",
    "body": null
  }
}

Thank you😀


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

block_public_acls = true
block_public_policy = true
ignore_public_acls = true
restrict_public_buckets = true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: Error occurred below. See blog article.

╷
│ Error: creating S3 Bucket (apigw-http-api-lambda20251213135832746300000001) ACL: operation error S3: PutBucketAcl, https response error StatusCode: 400, RequestID: F1PC1FKMGM80WSR6, HostID: rYWFaIU+gyVrqW6b+V+9IvEs17N2n6vjT5EbKq+C6oLMH6bhgyYR5SZuIc2uEYdGO4i7Ynm8jG8=, api error AccessControlListNotSupported: The bucket does not allow ACLs
│ 
│   with aws_s3_bucket_acl.private_bucket,
│   on main.tf line 31, in resource "aws_s3_bucket_acl" "private_bucket":
│   31: resource "aws_s3_bucket_acl" "private_bucket" {
│ 
╵

aws = {
source = "hashicorp/aws"
version = "~> 4.0.0"
version = "~> 6"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: Update AWS Provider to v6 for Python 3.14😀

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