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

Updated #81

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Use the `python:3.7` as a source image from the Amazon ECR Public Gallery
# We are not using `python:3.7.2-slim` from Dockerhub because it has put a pull rate limit.
FROM public.ecr.aws/sam/build-python3.7:latest
FROM public.ecr.aws/sam/build-python3.8:latest

# Set up an app directory for your code
COPY . /app
Expand Down
6 changes: 3 additions & 3 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 0.2
phases:
install:
runtime-versions:
python: 3.7
python: 3.8
commands:
- echo 'about to call dockerd'
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2&
Expand All @@ -17,9 +17,9 @@ phases:
# For example, a 1.21 kubectl client works with Kubernetes 1.20, 1.21 and 1.22 clusters.
# Ref: https://docs.aws.amazon.com/eks/latest/userguide/install-kubectl.html OR https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
# To download a specific version v1.22.0 on Linux, use:
- curl -LO https://dl.k8s.io/release/v1.23.6/bin/linux/amd64/kubectl
- curl -LO https://dl.k8s.io/release/v1.29.0/bin/linux/amd64/kubectl
# Download the kubectl checksum file
- curl -LO "https://dl.k8s.io/v1.23.6/bin/linux/amd64/kubectl.sha256"
- curl -LO "https://dl.k8s.io/v1.29.0/bin/linux/amd64/kubectl.sha256"
# Validate the kubectl binary against the checksum file
- echo "$(cat kubectl.sha256) kubectl" | sha256sum --check
# Install kubectl
Expand Down
4 changes: 2 additions & 2 deletions ci-cd-codepipeline.cfn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Parameters:

GitHubUser:
Type: String
Default: SudKul
Default: Mujeebla
Description: GitHub username or organization
MinLength: 3
MaxLength: 100
Expand Down Expand Up @@ -161,7 +161,7 @@ Resources:

Handler: index.handler
Role: !GetAtt CustomResourceLambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.8
Timeout: 300

CustomResourceLambdaExecutionRole:
Expand Down
Loading