Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This template is trying to create an AWS Lambda function that uses Python 3.7, which based on the message is no longer supported. #51

Open
chumanfoo opened this issue Mar 15, 2024 · 4 comments

Comments

@chumanfoo
Copy link

Describe the bug

This AWS CloudFormation Template doesn't build correctly

Expected behavior

This template should build environments based on input from deployer.

Current behavior

Template tries to deploy but doesn't due to it trying to create an AWS Lambda function that uses Python 3.7, which based on the message is no longer supported.

Possible solution

The templates use nested templates, and it looks like the issue lies in this nested template here:
https://github.com/F5Networks/f5-aws-cloudformation-v2/blob/main/examples/modules/function/function.yaml
Line: 232ff
Role !Ref amilookupRole
Runtime: python3.7
...

Steps to reproduce

  1. Build VPCs as required
  2. Deploy cloudformation template
  3. Watch error
  4. Watch deployment back out
    [Quick Create Link] (f5 only)

Screenshots

image

image

Context

Neither I nor our customers can use this template to build HA setups.

Your Environment

Standard multiple-AZ (same region) [or was it vice-versa?]

@mikeshimkus
Copy link
Collaborator

@chumanfoo Hi, thanks for reporting this. I created internal issue #479 to track this. For the time being, you should be able to provide the AMI of the image you want to use for the bigIpCustomImageId parameter. This should bypass the AMI lookup function.

@pedrorouremalta
Copy link

I tried to set bigIpCustomImageId to the AMI ID ami-04cb0918d5b8102a9 (BIGIP-17.1.1-0.2.6 PAYG-Best Plus 200Mbps on us-west-1) and left bigIpImage empty but I got the same error.

@gmallsh
Copy link

gmallsh commented Mar 21, 2024

I have tried to set version to 3.12 in "BigIp-Failover-Existing-Network-Example-Function-16PY5IQ9HJ9TK" template and uploaded template to s3 bucket and provided S3 URl in the root template and deployed the function stack created successfully but it is failing with custom resource.

@mikeshimkus
Copy link
Collaborator

mikeshimkus commented Mar 21, 2024

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

No branches or pull requests

4 participants