Coder Social home page Coder Social logo

aws-samples / aws-kube-code-service Goto Github PK

View Code? Open in Web Editor NEW
189.0 18.0 160.0 15.47 MB

The Code Services Continuous Deployment reference architecture demonstrates how to achieve continuous deployment of an application to a Kubernetes cluster using AWS CodePipeline, AWS CodeCommit, AWS CodeBuild and AWS Lambda.

License: Apache License 2.0

Python 99.93% Makefile 0.01% Go 0.05% Dockerfile 0.01%

aws-kube-code-service's Introduction

Code Service - Continuous Deployment Reference Architecture for Kubernetes

The Code Service Continuous Deployment reference architecture demonstrates how to achieve continuous deployment of an application to a Kubernetes cluster using AWS CodePipeline, AWS CodeCommit, AWS CodeBuild and AWS Lambda.

Launching this AWS CloudFormation stack provisions a continuous deployment process that uses AWS CodePipeline to monitor an AWS CodeCommit repository for new commits, AWS CodeBuild to create a new Docker container image and to push it into Amazon ECR. Finally an AWS Lambda function with the Kubernetes Python SDK updates a Kubernetes deployment in a live cluster.

When you deploy the cloudformation stack there will be four parameters that are specific to your Kubernetes cluster. You will need the API endpoint (enter only the subdomain and omit 'api'), Certificate Authority Data, Client Certificate Data and Client Key Data. The last of these three are sensitive, the cloudformation parameter is marked with the "NoEcho" property set to true so that the contents are not exposed through cloudformation. In addition those strings are encrypted with the account default KMS key and stored in parameter store. The Lambda function that authenticates to your Kubernetes API endpoint is assigned an IAM role that has permission to access those keys. The Lambda function builds a config file in the tmpfs directory of the Lambda which is in memory so that when the Lambda function terminates the secrets are gone.

Architecture

Pre-Requisites

A functioning Kubernetes cluster and config file to authenticate to the cluster, by default this is located at ~/.kube/config

Clone this repository

git clone https://github.com/aws-samples/aws-kube-code-service

This creates a directory named aws-kube-code-service in your current directory, which contains the code we need for this tutorial. Change to this directory.

Application - initial deployment and service Provisioning

kubectl apply -f ./kube-manifests/deploy-first.yml

Find the service endpoint to view the application:

kubectl get svc code-service-demo -o wide

If you copy and paste the External IP from the code-service-demo service into a browser you should see the nginx homepage.

Deploy the CloudFormation stack

Note, deploy this stack in the same region as your k8s cluster. Your cluster nodes will require access via an IAM profile to download images from ECR. If you deployed this cluster through KOPS this will be already take care of for you.

Region

Launch Template for Kubernetes

Launch Template for Amazon EKS

N. Virginia (us-east-1)

deploy to aws
deploy to aws

Ohio (us-east-2)

deploy to aws

Oregon (us-west-2)

deploy to aws
deploy to aws

Ireland (eu-west-1)

deploy to aws
deploy to aws

Frankfurt (eu-central-1)

deploy to aws

Singapore (ap-southeast-1)

deploy to aws

Sydney (ap-southeast-2)

deploy to aws

Tokyo (ap-northeast-1)

deploy to aws

If you are deploying this architecture to an Amazon EKS cluster, you would need to give the Lambda execution role permissions in Amazon EKS cluster. You can get the ARN of your Lambda execution role from the Outputs tab in the CloudFormation template. Refer to this User Guide for detailed instructions.

  1. Edit the aws-auth ConfigMap of your cluster.

    kubectl -n kube-system edit configmap/aws-auth
  2. Add your Lambda execution role to the config

    # Please edit the object below. Lines beginning with a '#' will be ignored,
    # and an empty file will abort the edit. If an error occurs while saving this file will be
    # reopened with the relevant failures.
    #
    apiVersion: v1
    data:
      mapRoles: |
        - rolearn: arn:aws:iam::<AWS Account ID>:role/devel-worker-nodes-NodeInstanceRole-74RF4UBDUKL6
          username: system:node:{{EC2PrivateDNSName}}
          groups:
            - system:bootstrappers
            - system:nodes
        - rolearn: arn:aws:iam::<AWS Account ID>:role/<your lambda execution role>
          username: admin
          groups:
            - system:masters

Test CI/CD platform

Install credential helper

git config --global credential.helper '!aws codecommit credential-helper $@'
git config --global credential.UseHttpPath true

Clone CodeCommit Repository (url will be in CloudFormation Output), change directories up one level cd .. so that both repositories are at the same directory structure. Check the outputs page for your CloudFormation stack:

git clone <name_of_your_codecommit_repository>

This creates a directory named code-service-demo in your current directory.

Copy contents from aws-kube-code-service/sample-app to this repository folder.

cp aws-kube-code-service/sample-app/* code-service-demo/

Make a change to the code-service-demo/hello.py file and then change into that directory cd code-service-demo

Add, commit and push:

git add . && git commit -m "test Code Service" && git push origin master

To view the pipeline in the AWS console go to the outputs tab for the pipeline cloudformation template and click on the Pipeline URL link:

pipeline-url

You can then see the pipeline move through the various stages:

pipeline

Once the final Lambda stage is complete you should be able to see the new deployment exposed through the same service load balancer.

kubectl get svc code-service-demo -o wide

Now if you copy and paste the External IP from the code-service-demo service into a browser you should see the flask page reflecting the changes you applied.

Cleaning up the example resources

To remove all resources created by this example do the following:

  1. Delete the main CloudFormation stack which deletes the substacks and resources.

  2. Manually delete resources which may contain files:

    • S3 bucket: ArtifactBucket

    • S3 bucket: LambdaCopy bucket

    • ECR repository: Repository

  3. Delete the Kubernetes deployment and service

CloudFormation template resources

The following section explains all of the resources created the CloudFormation template provided with this example.

This creates a Lambda function that copies the Lambda code from the central account into the user account.

Deploys a custom resource via Lambda which creates secure string key value pairs for all of the secrets required to authenticate to the Kubernetes cluster.

Resources that compose the deployment pipeline include the CodeBuild project, the CodePipeline pipeline, an S3 bucket for deployment artifacts, and ECR repository for the container images and all necessary IAM roles used by those services.

License Summary

This sample code is made available under a modified MIT license. See the LICENSE file.

aws-kube-code-service's People

Contributors

c-jcarlsen-godaddy avatar chankh avatar janerikcarlsen avatar neilzhao-aws avatar omarlari avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-kube-code-service's Issues

Cannot change name of CloudFormation Stack

If you change the name of the CF stack then deployment will fail due to the s3 bucket name being generated off the CF template name. For example I used the template name "codesuite-k8s-demo", this caused the error:

Starting new HTTPS connection (1): codesuite-k8s-demo-public.s3.amazonaws.com

Error: An error occurred (NoSuchBucket) when calling the ListObjectsV2 operation: The specified bucket does not exist

The template must connect to the source bucket codesuite-demo-public.s3.amazonaws.com

Name or service not known

When Lambda tries to deploy the changes it fails. Here's the CloudWatch Logs dump:

START RequestId: f5ff58dd-fc68-11e7-8aaf-910e87942b5f Version: $LATEST

XXXXXXXXXXX.dkr.ecr.us-west-2.amazonaws.com/k8s-c-repos-1bdxoih448581 d8d49eb0 codesuite-demo

2018-01-18 16:02:22,662 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7567c3a7f0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /apis/extensions/v1beta1/namespaces/default/deployments/codesuite-demo

[WARNING] 2018-01-18T16:02:22.662Z f5ff58dd-fc68-11e7-8aaf-910e87942b5f Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7567c3a7f0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /apis/extensions/v1beta1/namespaces/default/deployments/codesuite-demo

2018-01-18 16:02:22,663 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7567c3afd0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /apis/extensions/v1beta1/namespaces/default/deployments/codesuite-demo

[WARNING] 2018-01-18T16:02:22.663Z f5ff58dd-fc68-11e7-8aaf-910e87942b5f Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7567c3afd0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /apis/extensions/v1beta1/namespaces/default/deployments/codesuite-demo

2018-01-18 16:02:22,665 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7567c3a7b8>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /apis/extensions/v1beta1/namespaces/default/deployments/codesuite-demo

[WARNING] 2018-01-18T16:02:22.665Z f5ff58dd-fc68-11e7-8aaf-910e87942b5f Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7567c3a7b8>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /apis/extensions/v1beta1/namespaces/default/deployments/codesuite-demo

HTTPSConnectionPool(host='XXXXXXXXXXXXXXXXXX.us-west-2.elb.amazonaws.com', port=443): Max retries exceeded with url: /apis/extensions/v1beta1/namespaces/default/deployments/codesuite-demo (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7567c3a518>: Failed to establish a new connection: [Errno -2] Name or service not known',))

Here's some information about my k8s cluster:

Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.1", GitCommit:"3a1c9449a956b6026f075fa3134ff92f7d55f812", GitTreeState:"clean", BuildDate:"2018-01-04T11:52:23Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.4", GitCommit:"9befc2b8928a9426501d3bf62f72849d5cbcd5a3", GitTreeState:"clean", BuildDate:"2017-11-20T05:17:43Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

kubeProxyVersion: v1.8.4
kubeletVersion: v1.8.4
KOPS version: Version 1.8.0

Access Denied when calling the ListObjectsV2

Some info is hidden for security purposes

Seems like the Lambda Copy function is not being able to actually copy the code from the source bucket. Here's the IAM Role attached to the Lambda function:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": [
                "logs:CreateLogGroup",
                "logs:CreateLogStream",
                "logs:PutLogEvents"
            ],
            "Resource": "*",
            "Effect": "Allow",
            "Sid": "AllowLogging"
        },
        {
            "Action": [
                "s3:List*",
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::codesuite-demo-public",
                "arn:aws:s3:::codesuite-demo-public/Archive.zip"
            ],
            "Effect": "Allow",
            "Sid": "SourceBucketReadAccess"
        },
        {
            "Action": [
                "s3:List*",
                "s3:GetObject",
                "s3:PutObject",
                "s3:PutObjectAcl",
                "s3:PutObjectVersionAcl",
                "s3:DeleteObject",
                "s3:DeleteObjectVersion",
                "s3:CopyObject"
            ],
            "Resource": [
                "arn:aws:s3:::k8s-ci-cd-4-lambdacopy-XXXXXXXXX",
                "arn:aws:s3:::k8s-ci-cd-4-lambdacopy-XXXXXXXXX/*"
            ],
            "Effect": "Allow",
            "Sid": "DestBucketWriteAccess"
        }
    ]
}

-Region: Oregon and N. Virginia (each on different accounts)
-CloudFormation Error Message:

The following resource(s) failed to create: [ImportCode].
Failed to create resource. See the details in CloudWatch Log Stream

-CloudWatch Logs dump:

START RequestId: 5941bc8d-fba7-11e7-af7f-f79427db5ecd Version: $LATEST

[INFO]	2018-01-17T16:56:23.810Z	5941bc8d-fba7-11e7-af7f-f79427db5ecd	Received event:
{
    "StackId": "arn:aws:cloudformation:us-west-2:XXXXXXXXXXX:stack/k8s-ci-cd-4-LambdaCopy-FXB141HTGIOS/3719fe10-fba7-11e7-876d-503aca41a035",
    "ResponseURL": "https://cloudformation-custom-resource-response-uswest2.s3-us-west-2.amazonaws.com/arn%3Aaws%3Acloudformation%3Aus-west-2%3A109434434086%3Astack/k8s-ci-cd-4-LambdaCopy-FXB141HTGIOS/3719fe10-fba7-11e7-876d-503aca41a035%7CImportCode%7C8ce16337-8162-4de7-ad4c-7d82fc519fa1?AWSAccessKeyId=XXXXXXXXXXXXX&Expires=1516215383&Signature=0K6%2FzZnKeppp38xdXv4nMfsOG0M%3D",
    "ResourceProperties": {
        "LocalBucket": "k8s-ci-cd-4-lambdacopy-XXXXXXXXXXX",
        "SourceBucket": "codesuite-demo-public",
        "ServiceToken": "arn:aws:lambda:us-west-2:XXXXXXXXXXXX:function:k8s-ci-cd-4-LambdaCopy-FXB14-CopyS3ObjectsFunction-OT9C1VMH17MH",
        "SourcePrefix": "Archive.zip"
    },
    "RequestType": "Create",
    "ServiceToken": "arn:aws:lambda:us-west-2:XXXXXXXXXXXXX:function:k8s-ci-cd-4-LambdaCopy-FXB14-CopyS3ObjectsFunction-OT9C1VMH17MH",
    "ResourceType": "Custom::S3Objects",
    "RequestId": "8ce16337-8162-4de7-ad4c-7d82fc519fa1",
    "LogicalResourceId": "ImportCode"
}

[INFO]	2018-01-17T16:56:23.878Z	5941bc8d-fba7-11e7-af7f-f79427db5ecd	Starting new HTTPS connection (1): s3.us-west-2.amazonaws.com

[INFO]	2018-01-17T16:56:24.39Z	5941bc8d-fba7-11e7-af7f-f79427db5ecd	Starting new HTTPS connection (1): s3.amazonaws.com

[ERROR]	2018-01-17T16:56:24.532Z	5941bc8d-fba7-11e7-af7f-f79427db5ecd	Error: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied
https://cloudformation-custom-resource-response-uswest2.s3-us-west-2.amazonaws.com/arn%3Aaws%3Acloudformation%3Aus-west-2%3A109434434086%3Astack/k8s-ci-cd-4-LambdaCopy-FXB141HTGIOS/3719fe10-fba7-11e7-876d-503aca41a035%7CImportCode%7C8ce16337-8162-4de7-ad4c-7d82fc519fa1?AWSAccessKeyId=XXXXXXXXXXXXXX&Expires=1516215383&Signature=0K6%2FzZnKeppp38xdXv4nMfsOG0M%3D
Response body:
{
    "Status": "FAILED",
    "StackId": "arn:aws:cloudformation:us-west-2:XXXXXXXXXXXXX:stack/k8s-ci-cd-4-LambdaCopy-FXB141HTGIOS/3719fe10-fba7-11e7-876d-503aca41a035",
    "PhysicalResourceId": "2018/01/17/[$LATEST]7978d80d7c584cdea7ea910dbcf20ead",
    "Reason": "See the details in CloudWatch Log Stream: 2018/01/17/[$LATEST]7978d80d7c584cdea7ea910dbcf20ead",
    "NoEcho": false,
    "RequestId": "8ce16337-8162-4de7-ad4c-7d82fc519fa1",
    "Data": {},
    "LogicalResourceId": "ImportCode"
}

SSL issue

Pipeline is failing in the deploy stage where the lambda gets executed. I am getting the Max retries exceeded. I created the cluster using eksctl and followed all the steps. For client certificate I had generated using API gateway. After completing the build step it keeps failing with max retries exceeded. I checked the access on VPC etc and looks like it is all set correctly. Made the s3 buckets public to avoid access issue but still same issue.
Exact error from the log HTTPSConnectionPool(host='2919fee7a7489d0c8e3ba91ca442c4c4.sk1.us-east-2.eks.amazonaws.com', port=443): Max retries exceeded with url: /apis/extensions/v1beta1/namespaces/default/deployments/codesuite-demo (Caused by SSLError(SSLError(336445449, '[SSL] PEM lib (_ssl.c:3499)'),))

Temple Bucket Error

pipeline fails at the deplozment stage as it does not find the bucket wihich has "Webserver Deployment.yaml"

Gossip-based Kubernetes clusters are not supported

Kops allows creation of gossip-based cluster. This pipeline throws an error during Deploy stage for such a cluster. Here is the exact error:

HTTPSConnectionPool(host='api.api-cluster-k8s-local-ohpk1a-982509592.us-west-2.elb.amazonaws.com', port=443): Max retries exceeded with url: /apis/extensions/v1beta1/namespaces/default/deployments/codesuite-demo (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb86304d2e8>: Failed to establish a new connection: [Errno -2] Name or service not known',)): MaxRetryError
Traceback (most recent call last):
File "/var/task/kube-lambda.py", line 55, in lambda_handler
raise e
File "/var/task/kube-lambda.py", line 47, in lambda_handler
body=dep, namespace="default")
File "/var/task/kubernetes/client/apis/extensions_v1beta1_api.py", line 4727, in patch_namespaced_deployment
(data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs)
File "/var/task/kubernetes/client/apis/extensions_v1beta1_api.py", line 4823, in patch_namespaced_deployment_with_http_info
collection_formats=collection_formats)
File "/var/task/kubernetes/client/api_client.py", line 335, in call_api
_preload_content, _request_timeout)
File "/var/task/kubernetes/client/api_client.py", line 148, in __call_api
_request_timeout=_request_timeout)
File "/var/task/kubernetes/client/api_client.py", line 409, in request
body=body)
File "/var/task/kubernetes/client/rest.py", line 307, in PATCH
body=body)
File "/var/task/kubernetes/client/rest.py", line 177, in request
timeout=timeout, headers=headers)
File "/var/task/urllib3/request.py", line 70, in request
**urlopen_kw)
File "/var/task/urllib3/request.py", line 148, in request_encode_body
return self.urlopen(method, url, **extra_kw)
File "/var/task/urllib3/poolmanager.py", line 321, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File "/var/task/urllib3/connectionpool.py", line 668, in urlopen
**response_kw)
File "/var/task/urllib3/connectionpool.py", line 668, in urlopen
**response_kw)
File "/var/task/urllib3/connectionpool.py", line 668, in urlopen
**response_kw)
File "/var/task/urllib3/connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "/var/task/urllib3/util/retry.py", line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.api-cluster-k8s-local-ohpk1a-982509592.us-west-2.elb.amazonaws.com', port=443): Max retries exceeded with url: /apis/extensions/v1beta1/namespaces/default/deployments/codesuite-demo (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb86304d2e8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

Also see aws-samples/aws-microservices-deploy-options#65.

deployments.apps \"codesuite-demo\" not found"

when deploying the CICD I changed deployment name but when deploying build image on eks cluster then the error shows level=fatal msg="failed to update deployment" error="deployments.apps "codesuite-demo" not found"

Getting error in Codesuite-Demo-Pipeline lambda which is failing the deployment

Hi,

We were implementing the solution in our test account but we are getting below error in Codesuite-Demo-Pipeline lambda which is not giving response to code deploy and the deployment is getting failed.
Error:
time="2020-02-17T14:39:37Z" level=fatal msg="unable to get deployment file" error="AuthorizationHeaderMalformed: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-west-2'\n\tstatus code: 400, request id: 6AF30721E6C2AC3E, host id: 7nZTwF7VC8wXcpUJT4szML5HD0KrZNZ1vUU+h+U2V+XbxYsXin/zykfvErJkQXch5iS2BliZ7L4="

The lambda code is go language which we can't see the code.

Where to get Client Certificate Data and Client Certificate Data

The cloudformation template needs Client Certificate Data and Client Certificate Data but it is not specified where to get those values. If you are new to K8s and EKS it is not obvious where to get those values. Could you please specify this, like you have done with the 'Server key'?

Error when creating stack

Getting a cloudformation error in nested stack Codesuite-Demo-SSMInject which causes the entire stack to fail:

CREATE_FAILED | The following resource(s) failed to create: [ImportCode].

The account used also has full admin permissions for AWS resources.

Delopy Fails

The deploy part of the codepipeline fais.
with all default settings fail logs:

TART RequestId: d454e22e-f4e9-11e8-aa25-4fa624337b37 Version: $LATEST
time="2018-11-30T21:49:36Z" level=info msg="Deployment started" bucket=codesuite-demo-pipeline-8xlviipaha-artifactbucket-ay45vyduwjb3 jobID=905624ed-97a0-4ec3-8bf8-0deae2f90f17 key=Codesuite-Demo-Pipel/BuildOutpu/iUwbWXj
time="2018-11-30T21:49:37Z" level=fatal msg="unable to get deployment file" error="BucketRegionError: incorrect region, the bucket is not in 'eu-west-1' region\n\tstatus code: 301, request id: , host id: "
2018/11/30 21:49:37 unexpected EOF
2018/11/30 21:49:37 unexpected EOF
END RequestId: d454e22e-f4e9-11e8-aa25-4fa624337b37
REPORT RequestId: d454e22e-f4e9-11e8-aa25-4fa624337b37 Duration: 950.83 ms Billed Duration: 1000 ms Memory Size: 128 MB Max Memory Used: 54 MB
RequestId: d454e22e-f4e9-11e8-aa25-4fa624337b37 Process exited before completing request

START RequestId: d454e22e-f4e9-11e8-aa25-4fa624337b37 Version: $LATEST
time="2018-11-30T21:50:33Z" level=info msg="Deployment started" bucket=codesuite-demo-pipeline-8xlviipaha-artifactbucket-ay45vyduwjb3 jobID=905624ed-97a0-4ec3-8bf8-0deae2f90f17 key=Codesuite-Demo-Pipel/BuildOutpu/iUwbWXj
time="2018-11-30T21:50:34Z" level=fatal msg="unable to get deployment file" error="BucketRegionError: incorrect region, the bucket is not in 'eu-west-1' region\n\tstatus code: 301, request id: , host id: "
2018/11/30 21:50:34 unexpected EOF
2018/11/30 21:50:34 unexpected EOF
END RequestId: d454e22e-f4e9-11e8-aa25-4fa624337b37
REPORT RequestId: d454e22e-f4e9-11e8-aa25-4fa624337b37 Duration: 923.47 ms Billed Duration: 1000 ms Memory Size: 128 MB Max Memory Used: 48 MB
RequestId: d454e22e-f4e9-11e8-aa25-4fa624337b37 Process exited before completing request

START RequestId: d454e22e-f4e9-11e8-aa25-4fa624337b37 Version: $LATEST
time="2018-11-30T21:52:32Z" level=info msg="Deployment started" bucket=codesuite-demo-pipeline-8xlviipaha-artifactbucket-ay45vyduwjb3 jobID=905624ed-97a0-4ec3-8bf8-0deae2f90f17 key=Codesuite-Demo-Pipel/BuildOutpu/iUwbWXj
time="2018-11-30T21:52:32Z" level=fatal msg="unable to get deployment file" error="BucketRegionError: incorrect region, the bucket is not in 'eu-west-1' region\n\tstatus code: 301, request id: , host id: "
2018/11/30 21:52:33 unexpected EOF
2018/11/30 21:52:33 unexpected EOF
END RequestId: d454e22e-f4e9-11e8-aa25-4fa624337b37
REPORT RequestId: d454e22e-f4e9-11e8-aa25-4fa624337b37 Duration: 957.76 ms Billed Duration: 1000 ms Memory Size: 128 MB Max Memory Used: 47 MB
RequestId: d454e22e-f4e9-11e8-aa25-4fa624337b37 Process exited before completing request

START RequestId: b147018e-f4ec-11e8-a76a-81c5906b4a97 Version: $LATEST
time="2018-11-30T22:10:05Z" level=info msg="Deployment started" bucket=codesuite-demo-pipeline-8xlviipaha-artifactbucket-ay45vyduwjb3 jobID=5ba32653-fd3f-47fd-a8f5-2915bd364cda key=Codesuite-Demo-Pipel/BuildOutpu/UhevLWs
time="2018-11-30T22:10:06Z" level=fatal msg="unable to get deployment file" error="BucketRegionError: incorrect region, the bucket is not in 'eu-west-1' region\n\tstatus code: 301, request id: , host id: "
2018/11/30 22:10:06 unexpected EOF
2018/11/30 22:10:06 unexpected EOF
END RequestId: b147018e-f4ec-11e8-a76a-81c5906b4a97
REPORT RequestId: b147018e-f4ec-11e8-a76a-81c5906b4a97 Duration: 965.84 ms Billed Duration: 1000 ms Memory Size: 128 MB Max Memory Used: 48 MB
RequestId: b147018e-f4ec-11e8-a76a-81c5906b4a97 Process exited before completing request

START RequestId: b147018e-f4ec-11e8-a76a-81c5906b4a97 Version: $LATEST
time="2018-11-30T22:11:14Z" level=info msg="Deployment started" bucket=codesuite-demo-pipeline-8xlviipaha-artifactbucket-ay45vyduwjb3 jobID=5ba32653-fd3f-47fd-a8f5-2915bd364cda key=Codesuite-Demo-Pipel/BuildOutpu/UhevLWs
time="2018-11-30T22:11:15Z" level=fatal msg="unable to get deployment file" error="BucketRegionError: incorrect region, the bucket is not in 'eu-west-1' region\n\tstatus code: 301, request id: , host id: "
2018/11/30 22:11:15 unexpected EOF
2018/11/30 22:11:15 unexpected EOF
END RequestId: b147018e-f4ec-11e8-a76a-81c5906b4a97
REPORT RequestId: b147018e-f4ec-11e8-a76a-81c5906b4a97 Duration: 1012.33 ms Billed Duration: 1100 ms Memory Size: 128 MB Max Memory Used: 48 MB
RequestId: b147018e-f4ec-11e8-a76a-81c5906b4a97 Process exited before completing request

START RequestId: b147018e-f4ec-11e8-a76a-81c5906b4a97 Version: $LATEST
time="2018-11-30T22:13:12Z" level=info msg="Deployment started" bucket=codesuite-demo-pipeline-8xlviipaha-artifactbucket-ay45vyduwjb3 jobID=5ba32653-fd3f-47fd-a8f5-2915bd364cda key=Codesuite-Demo-Pipel/BuildOutpu/UhevLWs
time="2018-11-30T22:13:13Z" level=fatal msg="unable to get deployment file" error="BucketRegionError: incorrect region, the bucket is not in 'eu-west-1' region\n\tstatus code: 301, request id: , host id: "
2018/11/30 22:13:13 unexpected EOF
2018/11/30 22:13:13 unexpected EOF
END RequestId: b147018e-f4ec-11e8-a76a-81c5906b4a97
REPORT RequestId: b147018e-f4ec-11e8-a76a-81c5906b4a97 Duration: 1073.99 ms Billed Duration: 1100 ms Memory Size: 128 MB Max Memory Used: 48 MB
RequestId: b147018e-f4ec-11e8-a76a-81c5906b4a97 Process exited before completing request

START RequestId: 29672097-f516-11e8-83ab-cdfe3f33828d Version: $LATEST

After attaching VPC and subnets attached to the lambda function Codesuite-Demo-Pipeline-8-LambdaKubernetesDeployme-1CKPUX73SZR3R fail logs:


03:07:10
time="2018-12-01T03:07:10Z" level=info msg="Deployment started" bucket=codesuite-demo-pipeline-8xlviipaha-artifactbucket-ay45vyduwjb3 jobID=60df1ef8-c6f6-4531-8df6-6b0f6b431952 key=Codesuite-Demo-Pipel/BuildOutpu/UhevLWs

03:08:10
END RequestId: 29672097-f516-11e8-83ab-cdfe3f33828d

03:08:10
REPORT RequestId: 29672097-f516-11e8-83ab-cdfe3f33828d Duration: 60001.40 ms Billed Duration: 60000 ms Memory Size: 128 MB Max Memory Used: 47 MB

03:08:10
2018-12-01T03:08:10.445Z 29672097-f516-11e8-83ab-cdfe3f33828d Task timed out after 60.00 seconds

03:09:14
START RequestId: 29672097-f516-11e8-83ab-cdfe3f33828d Version: $LATEST

03:09:14
time="2018-12-01T03:09:14Z" level=info msg="Deployment started" bucket=codesuite-demo-pipeline-8xlviipaha-artifactbucket-ay45vyduwjb3 jobID=60df1ef8-c6f6-4531-8df6-6b0f6b431952 key=Codesuite-Demo-Pipel/BuildOutpu/UhevLWs

03:10:14
END RequestId: 29672097-f516-11e8-83ab-cdfe3f33828d

03:10:14
REPORT RequestId: 29672097-f516-11e8-83ab-cdfe3f33828d Duration: 60060.33 ms Billed Duration: 60000 ms Memory Size: 128 MB Max Memory Used: 42 MB

03:10:14
2018-12-01T03:10:14.668Z 29672097-f516-11e8-83ab-cdfe3f33828d Task timed out after 60.06 seconds

03:12:28
START RequestId: 29672097-f516-11e8-83ab-cdfe3f33828d Version: $LATEST

03:12:28
time="2018-12-01T03:12:28Z" level=info msg="Deployment started" bucket=codesuite-demo-pipeline-8xlviipaha-artifactbucket-ay45vyduwjb3 jobID=60df1ef8-c6f6-4531-8df6-6b0f6b431952 key=Codesuite-Demo-Pipel/BuildOutpu/UhevLWs

03:13:28
END RequestId: 29672097-f516-11e8-83ab-cdfe3f33828d

03:13:28
REPORT RequestId: 29672097-f516-11e8-83ab-cdfe3f33828d Duration: 60001.06 ms Billed Duration: 60000 ms Memory Size: 128 MB Max Memory Used: 42 MB

03:13:28
2018-12-01T03:13:28.845Z 29672097-f516-11e8-83ab-cdfe3f33828d Task timed out after 60.00 seconds

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.