Boilerplate adjustments to avoid Pods creation issue #82
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem 1: Outdated Python 3.7 runtime
The Python runtime set to 3.7 is no longer accepted. I updated it within the
ci-cd-codepipeline.cfn.yml
template.Source: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
Problem 2: Invalid
from botocore.vendored import requests
importPython 3.9 does not include requests as it did before with vendor imports. I replaced the PUT request with
urllib3
.Problem 3: Invalid image checksum
The
https://dl.k8s.io
source is valid, but the AWS pipeline is not accepting it for some reason.Problem 4: Packages not available during test execution
The unit tests were failing due to missing packages like jwt. They were included before, but not anymore. I added a
pip install—r requirements.txt
instruction within the pre-build phase.Problem 5: Outdated Dockerfile base image
The Python version in the Dockerfile base image was 3.7. I updated it to 3.9.