From 89685c334f42f6d11e4a0840cbe21380ee8398fc Mon Sep 17 00:00:00 2001 From: Rogerio Fernandes Dias Date: Sat, 28 Mar 2020 18:56:01 -0300 Subject: [PATCH 01/17] renaming environments --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index c7bea290..4a89630a 100644 --- a/main.go +++ b/main.go @@ -47,7 +47,7 @@ func (dplr *deployer) postWebHook(w http.ResponseWriter, r *http.Request) { // This application only accepts containers placed under the // `securingdevops` dockerhub organization. If this wasn't an // example application, we would make the namespacing configurable - if hookData.Repository.Namespace != `securingdevops` { + if hookData.Repository.Namespace != `rogerfdias` { httpError(w, http.StatusUnauthorized, "Invalid namespace") return } @@ -86,12 +86,12 @@ func testAndDeploy() { func deploy() { svc := elasticbeanstalk.New( session.New(), - &aws.Config{Region: aws.String("us-east-1")}, + &aws.Config{Region: aws.String("us-west-2")}, ) params := &elasticbeanstalk.UpdateEnvironmentInput{ - ApplicationName: aws.String("invoicer201707071231"), - EnvironmentId: aws.String("e-y8ubep55hp"), + ApplicationName: aws.String("invoices"), + EnvironmentId: aws.String("e-cprdgsjpvz"), VersionLabel: aws.String("invoicer-api"), } resp, err := svc.UpdateEnvironment(params) From c55fddca19ec2b0ff43b9f685a7f971050ed34f4 Mon Sep 17 00:00:00 2001 From: Rogerio Fernandes Dias Date: Sun, 29 Mar 2020 17:42:49 -0300 Subject: [PATCH 02/17] fixing circleci --- .circleci/config.yml | 44 ++++++++++++++++++++ create_ebs_env.sh | 7 ++-- main.go | 2 +- tmp/deployer202003252347/appversion.json | 14 +++++++ tmp/deployer202003252347/defaultvpc.json | 22 ++++++++++ tmp/deployer202003252347/e-qqy5c6qpy2.json | 22 ++++++++++ tmp/deployer202003252347/ebcreateapienv.json | 18 ++++++++ tmp/deployer202003252347/ebcreateapp.json | 24 +++++++++++ tmp/deployer202003252356/defaultvpc.json | 22 ++++++++++ tmp/deployer202003252356/ebcreateapienv.json | 0 tmp/deployer202003252356/ebcreateapp.json | 24 +++++++++++ tmp/deployer202003252359/defaultvpc.json | 1 + tmp/deployer202003260000/appversion.json | 14 +++++++ tmp/deployer202003260000/defaultvpc.json | 22 ++++++++++ tmp/deployer202003260000/e-fvbjfxxcmt.json | 22 ++++++++++ tmp/deployer202003260000/ebcreateapienv.json | 18 ++++++++ tmp/deployer202003260000/ebcreateapp.json | 24 +++++++++++ tmp/deployer202003281745/appversion.json | 14 +++++++ tmp/deployer202003281745/defaultvpc.json | 22 ++++++++++ tmp/deployer202003281745/e-gxspmnbpaq.json | 22 ++++++++++ tmp/deployer202003281745/ebcreateapienv.json | 18 ++++++++ tmp/deployer202003281745/ebcreateapp.json | 24 +++++++++++ tmp/deployer202003281815/appversion.json | 14 +++++++ tmp/deployer202003281815/defaultvpc.json | 22 ++++++++++ tmp/deployer202003281815/e-jamrsuqf3r.json | 22 ++++++++++ tmp/deployer202003281815/ebcreateapienv.json | 18 ++++++++ tmp/deployer202003281815/ebcreateapp.json | 24 +++++++++++ tmp/deployer202003281858/defaultvpc.json | 22 ++++++++++ tmp/deployer202003281858/ebcreateapienv.json | 0 tmp/deployer202003281858/ebcreateapp.json | 24 +++++++++++ tmp/deployer202003281900/appversion.json | 14 +++++++ tmp/deployer202003281900/defaultvpc.json | 22 ++++++++++ tmp/deployer202003281900/e-mhkwb75mni.json | 22 ++++++++++ tmp/deployer202003281900/ebcreateapienv.json | 18 ++++++++ tmp/deployer202003281900/ebcreateapp.json | 24 +++++++++++ tmp/deployer202003281921/appversion.json | 14 +++++++ tmp/deployer202003281921/defaultvpc.json | 22 ++++++++++ tmp/deployer202003281921/e-x5smxcbmdn.json | 22 ++++++++++ tmp/deployer202003281921/ebcreateapienv.json | 18 ++++++++ tmp/deployer202003281921/ebcreateapp.json | 24 +++++++++++ 40 files changed, 741 insertions(+), 5 deletions(-) create mode 100644 .circleci/config.yml create mode 100644 tmp/deployer202003252347/appversion.json create mode 100644 tmp/deployer202003252347/defaultvpc.json create mode 100644 tmp/deployer202003252347/e-qqy5c6qpy2.json create mode 100644 tmp/deployer202003252347/ebcreateapienv.json create mode 100644 tmp/deployer202003252347/ebcreateapp.json create mode 100644 tmp/deployer202003252356/defaultvpc.json create mode 100644 tmp/deployer202003252356/ebcreateapienv.json create mode 100644 tmp/deployer202003252356/ebcreateapp.json create mode 100644 tmp/deployer202003252359/defaultvpc.json create mode 100644 tmp/deployer202003260000/appversion.json create mode 100644 tmp/deployer202003260000/defaultvpc.json create mode 100644 tmp/deployer202003260000/e-fvbjfxxcmt.json create mode 100644 tmp/deployer202003260000/ebcreateapienv.json create mode 100644 tmp/deployer202003260000/ebcreateapp.json create mode 100644 tmp/deployer202003281745/appversion.json create mode 100644 tmp/deployer202003281745/defaultvpc.json create mode 100644 tmp/deployer202003281745/e-gxspmnbpaq.json create mode 100644 tmp/deployer202003281745/ebcreateapienv.json create mode 100644 tmp/deployer202003281745/ebcreateapp.json create mode 100644 tmp/deployer202003281815/appversion.json create mode 100644 tmp/deployer202003281815/defaultvpc.json create mode 100644 tmp/deployer202003281815/e-jamrsuqf3r.json create mode 100644 tmp/deployer202003281815/ebcreateapienv.json create mode 100644 tmp/deployer202003281815/ebcreateapp.json create mode 100644 tmp/deployer202003281858/defaultvpc.json create mode 100644 tmp/deployer202003281858/ebcreateapienv.json create mode 100644 tmp/deployer202003281858/ebcreateapp.json create mode 100644 tmp/deployer202003281900/appversion.json create mode 100644 tmp/deployer202003281900/defaultvpc.json create mode 100644 tmp/deployer202003281900/e-mhkwb75mni.json create mode 100644 tmp/deployer202003281900/ebcreateapienv.json create mode 100644 tmp/deployer202003281900/ebcreateapp.json create mode 100644 tmp/deployer202003281921/appversion.json create mode 100644 tmp/deployer202003281921/defaultvpc.json create mode 100644 tmp/deployer202003281921/e-x5smxcbmdn.json create mode 100644 tmp/deployer202003281921/ebcreateapienv.json create mode 100644 tmp/deployer202003281921/ebcreateapp.json diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..774e0923 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,44 @@ +version: 2 +jobs: + build: + # Variable expansion in working_directory not supported at this time + # You will need to modify the code below to reflect your github account/repo setup + working_directory: /go/src/github.com/rogerfdias/deployer + docker: + - image: circleci/golang:1.8 + environment: + GO15VENDOREXPERIMENT: 1 + branches: + only: + - master + steps: + - checkout + - setup_remote_docker + + - run: echo 'export GOPATH_HEAD="$(echo ${GOPATH}|cut -d ':' -f 1)"' >> $BASH_ENV + - run: echo 'export GOPATH_BASE="${GOPATH_HEAD}/src/github.com/${CIRCLE_PROJECT_USERNAME}"' >> $BASH_ENV + - run: echo 'export DOCKER_REPO="$(if [ ${CIRCLE_PROJECT_USERNAME} == 'rogerfdias' ]; then echo securingdevops; else echo $DOCKER_USER; fi)"' >> $BASH_ENV + - run: mkdir -p "${GOPATH_BASE}" + - run: mkdir -p "${GOPATH_HEAD}/bin" + - run: go get github.com/govend/govend + - run: sudo pip install awscli + + - run: + name: Build application container + command: | + go install --ldflags '-extldflags "-static"' github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}; + [ ! -e bin ] && mkdir bin; + cp "${GOPATH_HEAD}/bin/${CIRCLE_PROJECT_REPONAME}" bin/deployer; + chmod +x deploymentTests/* + docker build -t ${DOCKER_REPO}/${CIRCLE_PROJECT_REPONAME} .; + + - deploy: + # Push application container to dockerhub + command: | + if [ "${CIRCLE_BRANCH}" == "master" ]; then + echo ${DOCKER_PASS} | docker login -u ${DOCKER_USER} --password-stdin; + echo ${DOCKER_USER}/${CIRCLE_PROJECT_REPONAME}:${CIRCLE_TAG}; + docker images --no-trunc | awk '/^app/ {print $3}' | sudo tee $CIRCLE_ARTIFACTS/docker-image-shasum256.txt; + docker push ${DOCKER_REPO}/${CIRCLE_PROJECT_REPONAME}; + fi + diff --git a/create_ebs_env.sh b/create_ebs_env.sh index 279a32df..9d2fcb1c 100755 --- a/create_ebs_env.sh +++ b/create_ebs_env.sh @@ -3,14 +3,14 @@ # requires: pip install awscli awsebcli # uncomment to debug -#set -x +set -x fail() { echo configuration failed exit 1 } -export AWS_DEFAULT_REGION=us-east-1 +export AWS_DEFAULT_REGION=us-west-2 datetag=$(date +%Y%m%d%H%M) identifier=deployer$datetag @@ -30,8 +30,7 @@ aws elasticbeanstalk create-application \ echo "ElasticBeanTalk application created" # Get the name of the latest Docker solution stack -dockerstack="$(aws elasticbeanstalk list-available-solution-stacks | \ - jq -r '.SolutionStacks[]' | grep -P '.+Amazon Linux.+Docker.+' | head -1)" +dockerstack="$(aws elasticbeanstalk list-available-solution-stacks | jq -r '.SolutionStacks[]' | grep -i 'Amazon Linux' | grep -i docker | grep -i v2.14.2 | grep -i 18.09.9)" # Create the EB API environment aws elasticbeanstalk create-environment \ diff --git a/main.go b/main.go index 4a89630a..b1aef590 100644 --- a/main.go +++ b/main.go @@ -47,7 +47,7 @@ func (dplr *deployer) postWebHook(w http.ResponseWriter, r *http.Request) { // This application only accepts containers placed under the // `securingdevops` dockerhub organization. If this wasn't an // example application, we would make the namespacing configurable - if hookData.Repository.Namespace != `rogerfdias` { + if hookData.Repository.Namespace != `securingdevops` { httpError(w, http.StatusUnauthorized, "Invalid namespace") return } diff --git a/tmp/deployer202003252347/appversion.json b/tmp/deployer202003252347/appversion.json new file mode 100644 index 00000000..1b33bddc --- /dev/null +++ b/tmp/deployer202003252347/appversion.json @@ -0,0 +1,14 @@ +{ + "ApplicationVersion": { + "ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:applicationversion/deployer202003252347/deployer-api", + "ApplicationName": "deployer202003252347", + "VersionLabel": "deployer-api", + "SourceBundle": { + "S3Bucket": "deployer202003252347", + "S3Key": "app-version-deployer.json" + }, + "DateCreated": "2020-03-26T02:47:40.842000+00:00", + "DateUpdated": "2020-03-26T02:47:40.842000+00:00", + "Status": "UNPROCESSED" + } +} diff --git a/tmp/deployer202003252347/defaultvpc.json b/tmp/deployer202003252347/defaultvpc.json new file mode 100644 index 00000000..82a1cbcb --- /dev/null +++ b/tmp/deployer202003252347/defaultvpc.json @@ -0,0 +1,22 @@ +{ + "Vpcs": [ + { + "CidrBlock": "172.31.0.0/16", + "DhcpOptionsId": "dopt-9db711e7", + "State": "available", + "VpcId": "vpc-3ec2c744", + "OwnerId": "724831181620", + "InstanceTenancy": "default", + "CidrBlockAssociationSet": [ + { + "AssociationId": "vpc-cidr-assoc-e42a3c88", + "CidrBlock": "172.31.0.0/16", + "CidrBlockState": { + "State": "associated" + } + } + ], + "IsDefault": true + } + ] +} diff --git a/tmp/deployer202003252347/e-qqy5c6qpy2.json b/tmp/deployer202003252347/e-qqy5c6qpy2.json new file mode 100644 index 00000000..d9ae980a --- /dev/null +++ b/tmp/deployer202003252347/e-qqy5c6qpy2.json @@ -0,0 +1,22 @@ +{ + "EnvironmentName": "deployer-api", + "EnvironmentId": "e-qqy5c6qpy2", + "ApplicationName": "deployer202003252347", + "VersionLabel": "deployer-api", + "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running GlassFish 5.0 Java 8 (Preconfigured - Docker)", + "PlatformArn": "arn:aws:elasticbeanstalk:us-east-1::platform/Preconfigured Docker - GlassFish 5.0 with Java 8 running on 64bit Amazon Linux/2.14.2", + "Description": "deployer API environment", + "EndpointURL": "awseb-e-q-AWSEBLoa-1EZ791R7ERV56-61174272.us-east-1.elb.amazonaws.com", + "CNAME": "deployer-api.eba-mmmpqfd6.us-east-1.elasticbeanstalk.com", + "DateCreated": "2020-03-26T02:47:35.252000+00:00", + "DateUpdated": "2020-03-26T02:50:54.629000+00:00", + "Status": "Updating", + "AbortableOperationInProgress": true, + "Health": "Grey", + "Tier": { + "Name": "WebServer", + "Type": "Standard", + "Version": "1.0" + }, + "EnvironmentArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:environment/deployer202003252347/deployer-api" +} diff --git a/tmp/deployer202003252347/ebcreateapienv.json b/tmp/deployer202003252347/ebcreateapienv.json new file mode 100644 index 00000000..583b949f --- /dev/null +++ b/tmp/deployer202003252347/ebcreateapienv.json @@ -0,0 +1,18 @@ +{ + "EnvironmentName": "deployer-api", + "EnvironmentId": "e-qqy5c6qpy2", + "ApplicationName": "deployer202003252347", + "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running GlassFish 5.0 Java 8 (Preconfigured - Docker)", + "PlatformArn": "arn:aws:elasticbeanstalk:us-east-1::platform/Preconfigured Docker - GlassFish 5.0 with Java 8 running on 64bit Amazon Linux/2.14.2", + "Description": "deployer API environment", + "DateCreated": "2020-03-26T02:47:35.272000+00:00", + "DateUpdated": "2020-03-26T02:47:35.272000+00:00", + "Status": "Launching", + "Health": "Grey", + "Tier": { + "Name": "WebServer", + "Type": "Standard", + "Version": "1.0" + }, + "EnvironmentArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:environment/deployer202003252347/deployer-api" +} diff --git a/tmp/deployer202003252347/ebcreateapp.json b/tmp/deployer202003252347/ebcreateapp.json new file mode 100644 index 00000000..f1a890b0 --- /dev/null +++ b/tmp/deployer202003252347/ebcreateapp.json @@ -0,0 +1,24 @@ +{ + "Application": { + "ApplicationArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:application/deployer202003252347", + "ApplicationName": "deployer202003252347", + "Description": "deployer 202003252347", + "DateCreated": "2020-03-26T02:47:30.002000+00:00", + "DateUpdated": "2020-03-26T02:47:30.002000+00:00", + "ConfigurationTemplates": [], + "ResourceLifecycleConfig": { + "VersionLifecycleConfig": { + "MaxCountRule": { + "Enabled": false, + "MaxCount": 200, + "DeleteSourceFromS3": false + }, + "MaxAgeRule": { + "Enabled": false, + "MaxAgeInDays": 180, + "DeleteSourceFromS3": false + } + } + } + } +} diff --git a/tmp/deployer202003252356/defaultvpc.json b/tmp/deployer202003252356/defaultvpc.json new file mode 100644 index 00000000..82a1cbcb --- /dev/null +++ b/tmp/deployer202003252356/defaultvpc.json @@ -0,0 +1,22 @@ +{ + "Vpcs": [ + { + "CidrBlock": "172.31.0.0/16", + "DhcpOptionsId": "dopt-9db711e7", + "State": "available", + "VpcId": "vpc-3ec2c744", + "OwnerId": "724831181620", + "InstanceTenancy": "default", + "CidrBlockAssociationSet": [ + { + "AssociationId": "vpc-cidr-assoc-e42a3c88", + "CidrBlock": "172.31.0.0/16", + "CidrBlockState": { + "State": "associated" + } + } + ], + "IsDefault": true + } + ] +} diff --git a/tmp/deployer202003252356/ebcreateapienv.json b/tmp/deployer202003252356/ebcreateapienv.json new file mode 100644 index 00000000..e69de29b diff --git a/tmp/deployer202003252356/ebcreateapp.json b/tmp/deployer202003252356/ebcreateapp.json new file mode 100644 index 00000000..d2fb9c66 --- /dev/null +++ b/tmp/deployer202003252356/ebcreateapp.json @@ -0,0 +1,24 @@ +{ + "Application": { + "ApplicationArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:application/deployer202003252356", + "ApplicationName": "deployer202003252356", + "Description": "deployer 202003252356", + "DateCreated": "2020-03-26T02:56:57.166000+00:00", + "DateUpdated": "2020-03-26T02:56:57.166000+00:00", + "ConfigurationTemplates": [], + "ResourceLifecycleConfig": { + "VersionLifecycleConfig": { + "MaxCountRule": { + "Enabled": false, + "MaxCount": 200, + "DeleteSourceFromS3": false + }, + "MaxAgeRule": { + "Enabled": false, + "MaxAgeInDays": 180, + "DeleteSourceFromS3": false + } + } + } + } +} diff --git a/tmp/deployer202003252359/defaultvpc.json b/tmp/deployer202003252359/defaultvpc.json new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/tmp/deployer202003252359/defaultvpc.json @@ -0,0 +1 @@ + diff --git a/tmp/deployer202003260000/appversion.json b/tmp/deployer202003260000/appversion.json new file mode 100644 index 00000000..576e0bce --- /dev/null +++ b/tmp/deployer202003260000/appversion.json @@ -0,0 +1,14 @@ +{ + "ApplicationVersion": { + "ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:applicationversion/deployer202003260000/deployer-api", + "ApplicationName": "deployer202003260000", + "VersionLabel": "deployer-api", + "SourceBundle": { + "S3Bucket": "deployer202003260000", + "S3Key": "app-version-deployer.json" + }, + "DateCreated": "2020-03-26T03:00:32.334000+00:00", + "DateUpdated": "2020-03-26T03:00:32.334000+00:00", + "Status": "UNPROCESSED" + } +} diff --git a/tmp/deployer202003260000/defaultvpc.json b/tmp/deployer202003260000/defaultvpc.json new file mode 100644 index 00000000..82a1cbcb --- /dev/null +++ b/tmp/deployer202003260000/defaultvpc.json @@ -0,0 +1,22 @@ +{ + "Vpcs": [ + { + "CidrBlock": "172.31.0.0/16", + "DhcpOptionsId": "dopt-9db711e7", + "State": "available", + "VpcId": "vpc-3ec2c744", + "OwnerId": "724831181620", + "InstanceTenancy": "default", + "CidrBlockAssociationSet": [ + { + "AssociationId": "vpc-cidr-assoc-e42a3c88", + "CidrBlock": "172.31.0.0/16", + "CidrBlockState": { + "State": "associated" + } + } + ], + "IsDefault": true + } + ] +} diff --git a/tmp/deployer202003260000/e-fvbjfxxcmt.json b/tmp/deployer202003260000/e-fvbjfxxcmt.json new file mode 100644 index 00000000..479da71f --- /dev/null +++ b/tmp/deployer202003260000/e-fvbjfxxcmt.json @@ -0,0 +1,22 @@ +{ + "EnvironmentName": "deployer-api", + "EnvironmentId": "e-fvbjfxxcmt", + "ApplicationName": "deployer202003260000", + "VersionLabel": "deployer-api", + "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", + "PlatformArn": "arn:aws:elasticbeanstalk:us-east-1::platform/Docker running on 64bit Amazon Linux/2.14.2", + "Description": "deployer API environment", + "EndpointURL": "awseb-e-f-AWSEBLoa-1E9ATAUPXTA9J-649313496.us-east-1.elb.amazonaws.com", + "CNAME": "deployer-api.eba-cg48ftfz.us-east-1.elasticbeanstalk.com", + "DateCreated": "2020-03-26T03:00:27.136000+00:00", + "DateUpdated": "2020-03-26T03:03:44.656000+00:00", + "Status": "Updating", + "AbortableOperationInProgress": true, + "Health": "Grey", + "Tier": { + "Name": "WebServer", + "Type": "Standard", + "Version": "1.0" + }, + "EnvironmentArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:environment/deployer202003260000/deployer-api" +} diff --git a/tmp/deployer202003260000/ebcreateapienv.json b/tmp/deployer202003260000/ebcreateapienv.json new file mode 100644 index 00000000..d368a697 --- /dev/null +++ b/tmp/deployer202003260000/ebcreateapienv.json @@ -0,0 +1,18 @@ +{ + "EnvironmentName": "deployer-api", + "EnvironmentId": "e-fvbjfxxcmt", + "ApplicationName": "deployer202003260000", + "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", + "PlatformArn": "arn:aws:elasticbeanstalk:us-east-1::platform/Docker running on 64bit Amazon Linux/2.14.2", + "Description": "deployer API environment", + "DateCreated": "2020-03-26T03:00:27.151000+00:00", + "DateUpdated": "2020-03-26T03:00:27.151000+00:00", + "Status": "Launching", + "Health": "Grey", + "Tier": { + "Name": "WebServer", + "Type": "Standard", + "Version": "1.0" + }, + "EnvironmentArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:environment/deployer202003260000/deployer-api" +} diff --git a/tmp/deployer202003260000/ebcreateapp.json b/tmp/deployer202003260000/ebcreateapp.json new file mode 100644 index 00000000..815aad97 --- /dev/null +++ b/tmp/deployer202003260000/ebcreateapp.json @@ -0,0 +1,24 @@ +{ + "Application": { + "ApplicationArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:application/deployer202003260000", + "ApplicationName": "deployer202003260000", + "Description": "deployer 202003260000", + "DateCreated": "2020-03-26T03:00:22.106000+00:00", + "DateUpdated": "2020-03-26T03:00:22.106000+00:00", + "ConfigurationTemplates": [], + "ResourceLifecycleConfig": { + "VersionLifecycleConfig": { + "MaxCountRule": { + "Enabled": false, + "MaxCount": 200, + "DeleteSourceFromS3": false + }, + "MaxAgeRule": { + "Enabled": false, + "MaxAgeInDays": 180, + "DeleteSourceFromS3": false + } + } + } + } +} diff --git a/tmp/deployer202003281745/appversion.json b/tmp/deployer202003281745/appversion.json new file mode 100644 index 00000000..647fb236 --- /dev/null +++ b/tmp/deployer202003281745/appversion.json @@ -0,0 +1,14 @@ +{ + "ApplicationVersion": { + "ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:applicationversion/deployer202003281745/deployer-api", + "ApplicationName": "deployer202003281745", + "VersionLabel": "deployer-api", + "SourceBundle": { + "S3Bucket": "deployer202003281745", + "S3Key": "app-version-deployer.json" + }, + "DateCreated": "2020-03-28T20:46:19.757000+00:00", + "DateUpdated": "2020-03-28T20:46:19.757000+00:00", + "Status": "UNPROCESSED" + } +} diff --git a/tmp/deployer202003281745/defaultvpc.json b/tmp/deployer202003281745/defaultvpc.json new file mode 100644 index 00000000..87ad7ed0 --- /dev/null +++ b/tmp/deployer202003281745/defaultvpc.json @@ -0,0 +1,22 @@ +{ + "Vpcs": [ + { + "CidrBlock": "172.31.0.0/16", + "DhcpOptionsId": "dopt-5a65fa22", + "State": "available", + "VpcId": "vpc-77f0960f", + "OwnerId": "724831181620", + "InstanceTenancy": "default", + "CidrBlockAssociationSet": [ + { + "AssociationId": "vpc-cidr-assoc-2f4f7345", + "CidrBlock": "172.31.0.0/16", + "CidrBlockState": { + "State": "associated" + } + } + ], + "IsDefault": true + } + ] +} diff --git a/tmp/deployer202003281745/e-gxspmnbpaq.json b/tmp/deployer202003281745/e-gxspmnbpaq.json new file mode 100644 index 00000000..cd69a544 --- /dev/null +++ b/tmp/deployer202003281745/e-gxspmnbpaq.json @@ -0,0 +1,22 @@ +{ + "EnvironmentName": "deployer-api", + "EnvironmentId": "e-gxspmnbpaq", + "ApplicationName": "deployer202003281745", + "VersionLabel": "deployer-api", + "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", + "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", + "Description": "deployer API environment", + "EndpointURL": "awseb-e-g-AWSEBLoa-1RIRAV61BYHE6-740669816.us-west-2.elb.amazonaws.com", + "CNAME": "deployer-api.eba-mv2mmkgt.us-west-2.elasticbeanstalk.com", + "DateCreated": "2020-03-28T20:46:08.047000+00:00", + "DateUpdated": "2020-03-28T20:50:20.889000+00:00", + "Status": "Updating", + "AbortableOperationInProgress": true, + "Health": "Grey", + "Tier": { + "Name": "WebServer", + "Type": "Standard", + "Version": "1.0" + }, + "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281745/deployer-api" +} diff --git a/tmp/deployer202003281745/ebcreateapienv.json b/tmp/deployer202003281745/ebcreateapienv.json new file mode 100644 index 00000000..732b9747 --- /dev/null +++ b/tmp/deployer202003281745/ebcreateapienv.json @@ -0,0 +1,18 @@ +{ + "EnvironmentName": "deployer-api", + "EnvironmentId": "e-gxspmnbpaq", + "ApplicationName": "deployer202003281745", + "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", + "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", + "Description": "deployer API environment", + "DateCreated": "2020-03-28T20:46:08.061000+00:00", + "DateUpdated": "2020-03-28T20:46:08.061000+00:00", + "Status": "Launching", + "Health": "Grey", + "Tier": { + "Name": "WebServer", + "Type": "Standard", + "Version": "1.0" + }, + "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281745/deployer-api" +} diff --git a/tmp/deployer202003281745/ebcreateapp.json b/tmp/deployer202003281745/ebcreateapp.json new file mode 100644 index 00000000..e0478a14 --- /dev/null +++ b/tmp/deployer202003281745/ebcreateapp.json @@ -0,0 +1,24 @@ +{ + "Application": { + "ApplicationArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:application/deployer202003281745", + "ApplicationName": "deployer202003281745", + "Description": "deployer 202003281745", + "DateCreated": "2020-03-28T20:46:02.349000+00:00", + "DateUpdated": "2020-03-28T20:46:02.349000+00:00", + "ConfigurationTemplates": [], + "ResourceLifecycleConfig": { + "VersionLifecycleConfig": { + "MaxCountRule": { + "Enabled": false, + "MaxCount": 200, + "DeleteSourceFromS3": false + }, + "MaxAgeRule": { + "Enabled": false, + "MaxAgeInDays": 180, + "DeleteSourceFromS3": false + } + } + } + } +} diff --git a/tmp/deployer202003281815/appversion.json b/tmp/deployer202003281815/appversion.json new file mode 100644 index 00000000..d2907239 --- /dev/null +++ b/tmp/deployer202003281815/appversion.json @@ -0,0 +1,14 @@ +{ + "ApplicationVersion": { + "ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:applicationversion/deployer202003281815/deployer-api", + "ApplicationName": "deployer202003281815", + "VersionLabel": "deployer-api", + "SourceBundle": { + "S3Bucket": "deployer202003281815", + "S3Key": "app-version-deployer.json" + }, + "DateCreated": "2020-03-28T21:15:31.335000+00:00", + "DateUpdated": "2020-03-28T21:15:31.335000+00:00", + "Status": "UNPROCESSED" + } +} diff --git a/tmp/deployer202003281815/defaultvpc.json b/tmp/deployer202003281815/defaultvpc.json new file mode 100644 index 00000000..87ad7ed0 --- /dev/null +++ b/tmp/deployer202003281815/defaultvpc.json @@ -0,0 +1,22 @@ +{ + "Vpcs": [ + { + "CidrBlock": "172.31.0.0/16", + "DhcpOptionsId": "dopt-5a65fa22", + "State": "available", + "VpcId": "vpc-77f0960f", + "OwnerId": "724831181620", + "InstanceTenancy": "default", + "CidrBlockAssociationSet": [ + { + "AssociationId": "vpc-cidr-assoc-2f4f7345", + "CidrBlock": "172.31.0.0/16", + "CidrBlockState": { + "State": "associated" + } + } + ], + "IsDefault": true + } + ] +} diff --git a/tmp/deployer202003281815/e-jamrsuqf3r.json b/tmp/deployer202003281815/e-jamrsuqf3r.json new file mode 100644 index 00000000..0304cabb --- /dev/null +++ b/tmp/deployer202003281815/e-jamrsuqf3r.json @@ -0,0 +1,22 @@ +{ + "EnvironmentName": "deployer-api", + "EnvironmentId": "e-jamrsuqf3r", + "ApplicationName": "deployer202003281815", + "VersionLabel": "deployer-api", + "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", + "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", + "Description": "deployer API environment", + "EndpointURL": "awseb-e-j-AWSEBLoa-1QT3DPXZD95DF-396605049.us-west-2.elb.amazonaws.com", + "CNAME": "deployer-api.eba-7jrkki7h.us-west-2.elasticbeanstalk.com", + "DateCreated": "2020-03-28T21:15:24.942000+00:00", + "DateUpdated": "2020-03-28T21:18:54.250000+00:00", + "Status": "Updating", + "AbortableOperationInProgress": true, + "Health": "Grey", + "Tier": { + "Name": "WebServer", + "Type": "Standard", + "Version": "1.0" + }, + "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281815/deployer-api" +} diff --git a/tmp/deployer202003281815/ebcreateapienv.json b/tmp/deployer202003281815/ebcreateapienv.json new file mode 100644 index 00000000..e3b058b6 --- /dev/null +++ b/tmp/deployer202003281815/ebcreateapienv.json @@ -0,0 +1,18 @@ +{ + "EnvironmentName": "deployer-api", + "EnvironmentId": "e-jamrsuqf3r", + "ApplicationName": "deployer202003281815", + "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", + "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", + "Description": "deployer API environment", + "DateCreated": "2020-03-28T21:15:24.955000+00:00", + "DateUpdated": "2020-03-28T21:15:24.955000+00:00", + "Status": "Launching", + "Health": "Grey", + "Tier": { + "Name": "WebServer", + "Type": "Standard", + "Version": "1.0" + }, + "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281815/deployer-api" +} diff --git a/tmp/deployer202003281815/ebcreateapp.json b/tmp/deployer202003281815/ebcreateapp.json new file mode 100644 index 00000000..35f401db --- /dev/null +++ b/tmp/deployer202003281815/ebcreateapp.json @@ -0,0 +1,24 @@ +{ + "Application": { + "ApplicationArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:application/deployer202003281815", + "ApplicationName": "deployer202003281815", + "Description": "deployer 202003281815", + "DateCreated": "2020-03-28T21:15:19.859000+00:00", + "DateUpdated": "2020-03-28T21:15:19.859000+00:00", + "ConfigurationTemplates": [], + "ResourceLifecycleConfig": { + "VersionLifecycleConfig": { + "MaxCountRule": { + "Enabled": false, + "MaxCount": 200, + "DeleteSourceFromS3": false + }, + "MaxAgeRule": { + "Enabled": false, + "MaxAgeInDays": 180, + "DeleteSourceFromS3": false + } + } + } + } +} diff --git a/tmp/deployer202003281858/defaultvpc.json b/tmp/deployer202003281858/defaultvpc.json new file mode 100644 index 00000000..87ad7ed0 --- /dev/null +++ b/tmp/deployer202003281858/defaultvpc.json @@ -0,0 +1,22 @@ +{ + "Vpcs": [ + { + "CidrBlock": "172.31.0.0/16", + "DhcpOptionsId": "dopt-5a65fa22", + "State": "available", + "VpcId": "vpc-77f0960f", + "OwnerId": "724831181620", + "InstanceTenancy": "default", + "CidrBlockAssociationSet": [ + { + "AssociationId": "vpc-cidr-assoc-2f4f7345", + "CidrBlock": "172.31.0.0/16", + "CidrBlockState": { + "State": "associated" + } + } + ], + "IsDefault": true + } + ] +} diff --git a/tmp/deployer202003281858/ebcreateapienv.json b/tmp/deployer202003281858/ebcreateapienv.json new file mode 100644 index 00000000..e69de29b diff --git a/tmp/deployer202003281858/ebcreateapp.json b/tmp/deployer202003281858/ebcreateapp.json new file mode 100644 index 00000000..4655a64d --- /dev/null +++ b/tmp/deployer202003281858/ebcreateapp.json @@ -0,0 +1,24 @@ +{ + "Application": { + "ApplicationArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:application/deployer202003281858", + "ApplicationName": "deployer202003281858", + "Description": "deployer 202003281858", + "DateCreated": "2020-03-28T21:58:38.747000+00:00", + "DateUpdated": "2020-03-28T21:58:38.747000+00:00", + "ConfigurationTemplates": [], + "ResourceLifecycleConfig": { + "VersionLifecycleConfig": { + "MaxCountRule": { + "Enabled": false, + "MaxCount": 200, + "DeleteSourceFromS3": false + }, + "MaxAgeRule": { + "Enabled": false, + "MaxAgeInDays": 180, + "DeleteSourceFromS3": false + } + } + } + } +} diff --git a/tmp/deployer202003281900/appversion.json b/tmp/deployer202003281900/appversion.json new file mode 100644 index 00000000..8d508c2a --- /dev/null +++ b/tmp/deployer202003281900/appversion.json @@ -0,0 +1,14 @@ +{ + "ApplicationVersion": { + "ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:applicationversion/deployer202003281900/deployer-api", + "ApplicationName": "deployer202003281900", + "VersionLabel": "deployer-api", + "SourceBundle": { + "S3Bucket": "deployer202003281900", + "S3Key": "app-version-deployer.json" + }, + "DateCreated": "2020-03-28T22:00:37.005000+00:00", + "DateUpdated": "2020-03-28T22:00:37.005000+00:00", + "Status": "UNPROCESSED" + } +} diff --git a/tmp/deployer202003281900/defaultvpc.json b/tmp/deployer202003281900/defaultvpc.json new file mode 100644 index 00000000..87ad7ed0 --- /dev/null +++ b/tmp/deployer202003281900/defaultvpc.json @@ -0,0 +1,22 @@ +{ + "Vpcs": [ + { + "CidrBlock": "172.31.0.0/16", + "DhcpOptionsId": "dopt-5a65fa22", + "State": "available", + "VpcId": "vpc-77f0960f", + "OwnerId": "724831181620", + "InstanceTenancy": "default", + "CidrBlockAssociationSet": [ + { + "AssociationId": "vpc-cidr-assoc-2f4f7345", + "CidrBlock": "172.31.0.0/16", + "CidrBlockState": { + "State": "associated" + } + } + ], + "IsDefault": true + } + ] +} diff --git a/tmp/deployer202003281900/e-mhkwb75mni.json b/tmp/deployer202003281900/e-mhkwb75mni.json new file mode 100644 index 00000000..8f9b6724 --- /dev/null +++ b/tmp/deployer202003281900/e-mhkwb75mni.json @@ -0,0 +1,22 @@ +{ + "EnvironmentName": "deployer-api", + "EnvironmentId": "e-mhkwb75mni", + "ApplicationName": "deployer202003281900", + "VersionLabel": "deployer-api", + "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", + "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", + "Description": "deployer API environment", + "EndpointURL": "awseb-e-m-AWSEBLoa-5O9UKUYGG8S-117598455.us-west-2.elb.amazonaws.com", + "CNAME": "deployer-api.eba-jjimg4m5.us-west-2.elasticbeanstalk.com", + "DateCreated": "2020-03-28T22:00:30.500000+00:00", + "DateUpdated": "2020-03-28T22:03:44.455000+00:00", + "Status": "Updating", + "AbortableOperationInProgress": true, + "Health": "Grey", + "Tier": { + "Name": "WebServer", + "Type": "Standard", + "Version": "1.0" + }, + "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281900/deployer-api" +} diff --git a/tmp/deployer202003281900/ebcreateapienv.json b/tmp/deployer202003281900/ebcreateapienv.json new file mode 100644 index 00000000..450c8569 --- /dev/null +++ b/tmp/deployer202003281900/ebcreateapienv.json @@ -0,0 +1,18 @@ +{ + "EnvironmentName": "deployer-api", + "EnvironmentId": "e-mhkwb75mni", + "ApplicationName": "deployer202003281900", + "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", + "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", + "Description": "deployer API environment", + "DateCreated": "2020-03-28T22:00:30.513000+00:00", + "DateUpdated": "2020-03-28T22:00:30.513000+00:00", + "Status": "Launching", + "Health": "Grey", + "Tier": { + "Name": "WebServer", + "Type": "Standard", + "Version": "1.0" + }, + "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281900/deployer-api" +} diff --git a/tmp/deployer202003281900/ebcreateapp.json b/tmp/deployer202003281900/ebcreateapp.json new file mode 100644 index 00000000..2a187e7e --- /dev/null +++ b/tmp/deployer202003281900/ebcreateapp.json @@ -0,0 +1,24 @@ +{ + "Application": { + "ApplicationArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:application/deployer202003281900", + "ApplicationName": "deployer202003281900", + "Description": "deployer 202003281900", + "DateCreated": "2020-03-28T22:00:25.298000+00:00", + "DateUpdated": "2020-03-28T22:00:25.298000+00:00", + "ConfigurationTemplates": [], + "ResourceLifecycleConfig": { + "VersionLifecycleConfig": { + "MaxCountRule": { + "Enabled": false, + "MaxCount": 200, + "DeleteSourceFromS3": false + }, + "MaxAgeRule": { + "Enabled": false, + "MaxAgeInDays": 180, + "DeleteSourceFromS3": false + } + } + } + } +} diff --git a/tmp/deployer202003281921/appversion.json b/tmp/deployer202003281921/appversion.json new file mode 100644 index 00000000..df472fd0 --- /dev/null +++ b/tmp/deployer202003281921/appversion.json @@ -0,0 +1,14 @@ +{ + "ApplicationVersion": { + "ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:applicationversion/deployer202003281921/deployer-api", + "ApplicationName": "deployer202003281921", + "VersionLabel": "deployer-api", + "SourceBundle": { + "S3Bucket": "deployer202003281921", + "S3Key": "app-version-deployer.json" + }, + "DateCreated": "2020-03-28T22:21:52.511000+00:00", + "DateUpdated": "2020-03-28T22:21:52.511000+00:00", + "Status": "UNPROCESSED" + } +} diff --git a/tmp/deployer202003281921/defaultvpc.json b/tmp/deployer202003281921/defaultvpc.json new file mode 100644 index 00000000..87ad7ed0 --- /dev/null +++ b/tmp/deployer202003281921/defaultvpc.json @@ -0,0 +1,22 @@ +{ + "Vpcs": [ + { + "CidrBlock": "172.31.0.0/16", + "DhcpOptionsId": "dopt-5a65fa22", + "State": "available", + "VpcId": "vpc-77f0960f", + "OwnerId": "724831181620", + "InstanceTenancy": "default", + "CidrBlockAssociationSet": [ + { + "AssociationId": "vpc-cidr-assoc-2f4f7345", + "CidrBlock": "172.31.0.0/16", + "CidrBlockState": { + "State": "associated" + } + } + ], + "IsDefault": true + } + ] +} diff --git a/tmp/deployer202003281921/e-x5smxcbmdn.json b/tmp/deployer202003281921/e-x5smxcbmdn.json new file mode 100644 index 00000000..7dd84d15 --- /dev/null +++ b/tmp/deployer202003281921/e-x5smxcbmdn.json @@ -0,0 +1,22 @@ +{ + "EnvironmentName": "deployer-api", + "EnvironmentId": "e-x5smxcbmdn", + "ApplicationName": "deployer202003281921", + "VersionLabel": "deployer-api", + "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", + "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", + "Description": "deployer API environment", + "EndpointURL": "awseb-e-x-AWSEBLoa-1L5322U8HGHE9-870675966.us-west-2.elb.amazonaws.com", + "CNAME": "deployer-api.eba-7mzp8ux6.us-west-2.elasticbeanstalk.com", + "DateCreated": "2020-03-28T22:21:45.612000+00:00", + "DateUpdated": "2020-03-28T22:24:44.382000+00:00", + "Status": "Updating", + "AbortableOperationInProgress": true, + "Health": "Grey", + "Tier": { + "Name": "WebServer", + "Type": "Standard", + "Version": "1.0" + }, + "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281921/deployer-api" +} diff --git a/tmp/deployer202003281921/ebcreateapienv.json b/tmp/deployer202003281921/ebcreateapienv.json new file mode 100644 index 00000000..aefd9556 --- /dev/null +++ b/tmp/deployer202003281921/ebcreateapienv.json @@ -0,0 +1,18 @@ +{ + "EnvironmentName": "deployer-api", + "EnvironmentId": "e-x5smxcbmdn", + "ApplicationName": "deployer202003281921", + "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", + "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", + "Description": "deployer API environment", + "DateCreated": "2020-03-28T22:21:45.626000+00:00", + "DateUpdated": "2020-03-28T22:21:45.626000+00:00", + "Status": "Launching", + "Health": "Grey", + "Tier": { + "Name": "WebServer", + "Type": "Standard", + "Version": "1.0" + }, + "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281921/deployer-api" +} diff --git a/tmp/deployer202003281921/ebcreateapp.json b/tmp/deployer202003281921/ebcreateapp.json new file mode 100644 index 00000000..2a38d8d1 --- /dev/null +++ b/tmp/deployer202003281921/ebcreateapp.json @@ -0,0 +1,24 @@ +{ + "Application": { + "ApplicationArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:application/deployer202003281921", + "ApplicationName": "deployer202003281921", + "Description": "deployer 202003281921", + "DateCreated": "2020-03-28T22:21:40.013000+00:00", + "DateUpdated": "2020-03-28T22:21:40.013000+00:00", + "ConfigurationTemplates": [], + "ResourceLifecycleConfig": { + "VersionLifecycleConfig": { + "MaxCountRule": { + "Enabled": false, + "MaxCount": 200, + "DeleteSourceFromS3": false + }, + "MaxAgeRule": { + "Enabled": false, + "MaxAgeInDays": 180, + "DeleteSourceFromS3": false + } + } + } + } +} From b8ee47769d2da462dc7111cc3cb336e2137f7735 Mon Sep 17 00:00:00 2001 From: Rogerio Fernandes Dias Date: Sun, 29 Mar 2020 17:44:16 -0300 Subject: [PATCH 03/17] fixing circleci --- .circle.yml.swp | Bin 0 -> 12288 bytes tmp/deployer202003252347/appversion.json | 14 ----------- tmp/deployer202003252347/defaultvpc.json | 22 ----------------- tmp/deployer202003252347/e-qqy5c6qpy2.json | 22 ----------------- tmp/deployer202003252347/ebcreateapienv.json | 18 -------------- tmp/deployer202003252347/ebcreateapp.json | 24 ------------------- tmp/deployer202003252356/defaultvpc.json | 22 ----------------- tmp/deployer202003252356/ebcreateapienv.json | 0 tmp/deployer202003252356/ebcreateapp.json | 24 ------------------- tmp/deployer202003252359/defaultvpc.json | 1 - tmp/deployer202003260000/appversion.json | 14 ----------- tmp/deployer202003260000/defaultvpc.json | 22 ----------------- tmp/deployer202003260000/e-fvbjfxxcmt.json | 22 ----------------- tmp/deployer202003260000/ebcreateapienv.json | 18 -------------- tmp/deployer202003260000/ebcreateapp.json | 24 ------------------- tmp/deployer202003281745/appversion.json | 14 ----------- tmp/deployer202003281745/defaultvpc.json | 22 ----------------- tmp/deployer202003281745/e-gxspmnbpaq.json | 22 ----------------- tmp/deployer202003281745/ebcreateapienv.json | 18 -------------- tmp/deployer202003281745/ebcreateapp.json | 24 ------------------- tmp/deployer202003281815/appversion.json | 14 ----------- tmp/deployer202003281815/defaultvpc.json | 22 ----------------- tmp/deployer202003281815/e-jamrsuqf3r.json | 22 ----------------- tmp/deployer202003281815/ebcreateapienv.json | 18 -------------- tmp/deployer202003281815/ebcreateapp.json | 24 ------------------- tmp/deployer202003281858/defaultvpc.json | 22 ----------------- tmp/deployer202003281858/ebcreateapienv.json | 0 tmp/deployer202003281858/ebcreateapp.json | 24 ------------------- tmp/deployer202003281900/appversion.json | 14 ----------- tmp/deployer202003281900/defaultvpc.json | 22 ----------------- tmp/deployer202003281900/e-mhkwb75mni.json | 22 ----------------- tmp/deployer202003281900/ebcreateapienv.json | 18 -------------- tmp/deployer202003281900/ebcreateapp.json | 24 ------------------- tmp/deployer202003281921/appversion.json | 14 ----------- tmp/deployer202003281921/defaultvpc.json | 22 ----------------- tmp/deployer202003281921/e-x5smxcbmdn.json | 22 ----------------- tmp/deployer202003281921/ebcreateapienv.json | 18 -------------- tmp/deployer202003281921/ebcreateapp.json | 24 ------------------- 38 files changed, 693 deletions(-) create mode 100644 .circle.yml.swp delete mode 100644 tmp/deployer202003252347/appversion.json delete mode 100644 tmp/deployer202003252347/defaultvpc.json delete mode 100644 tmp/deployer202003252347/e-qqy5c6qpy2.json delete mode 100644 tmp/deployer202003252347/ebcreateapienv.json delete mode 100644 tmp/deployer202003252347/ebcreateapp.json delete mode 100644 tmp/deployer202003252356/defaultvpc.json delete mode 100644 tmp/deployer202003252356/ebcreateapienv.json delete mode 100644 tmp/deployer202003252356/ebcreateapp.json delete mode 100644 tmp/deployer202003252359/defaultvpc.json delete mode 100644 tmp/deployer202003260000/appversion.json delete mode 100644 tmp/deployer202003260000/defaultvpc.json delete mode 100644 tmp/deployer202003260000/e-fvbjfxxcmt.json delete mode 100644 tmp/deployer202003260000/ebcreateapienv.json delete mode 100644 tmp/deployer202003260000/ebcreateapp.json delete mode 100644 tmp/deployer202003281745/appversion.json delete mode 100644 tmp/deployer202003281745/defaultvpc.json delete mode 100644 tmp/deployer202003281745/e-gxspmnbpaq.json delete mode 100644 tmp/deployer202003281745/ebcreateapienv.json delete mode 100644 tmp/deployer202003281745/ebcreateapp.json delete mode 100644 tmp/deployer202003281815/appversion.json delete mode 100644 tmp/deployer202003281815/defaultvpc.json delete mode 100644 tmp/deployer202003281815/e-jamrsuqf3r.json delete mode 100644 tmp/deployer202003281815/ebcreateapienv.json delete mode 100644 tmp/deployer202003281815/ebcreateapp.json delete mode 100644 tmp/deployer202003281858/defaultvpc.json delete mode 100644 tmp/deployer202003281858/ebcreateapienv.json delete mode 100644 tmp/deployer202003281858/ebcreateapp.json delete mode 100644 tmp/deployer202003281900/appversion.json delete mode 100644 tmp/deployer202003281900/defaultvpc.json delete mode 100644 tmp/deployer202003281900/e-mhkwb75mni.json delete mode 100644 tmp/deployer202003281900/ebcreateapienv.json delete mode 100644 tmp/deployer202003281900/ebcreateapp.json delete mode 100644 tmp/deployer202003281921/appversion.json delete mode 100644 tmp/deployer202003281921/defaultvpc.json delete mode 100644 tmp/deployer202003281921/e-x5smxcbmdn.json delete mode 100644 tmp/deployer202003281921/ebcreateapienv.json delete mode 100644 tmp/deployer202003281921/ebcreateapp.json diff --git a/.circle.yml.swp b/.circle.yml.swp new file mode 100644 index 0000000000000000000000000000000000000000..4327a97dba932fa6e4a51072096ae9b0799e424d GIT binary patch literal 12288 zcmeHNJ!~9B6rLa)NFXF41tl+ME0=)w&gT#aXM%LGFV2CTv+gbtQj}PGyK{FV?;kU} zXPej{{u){u3L0uCXefaKMRchtX{e|X1&YKs`(vLSWKtlcNVC@G-I;mw=Dly;dn3!! zpS{^yp-Yt-!*hzUGsm~@{J5-+{Q3!FG8}R#LOpWm)5+wNwPHJ0!f@Sc2wCw$$M*J5 zdp}oLT@0PX=RvHhiaUuE!O(K~IE+-)<&hU|aanbQbUa?!@(<|PuhFy&1BQV|XW#_8 zFjt$^^3$a=bo%)lk3Q8%8U_plh5^HXVZbn87%&VN1`Gp_Jp*xcgna-np2$6UBYz(` z@Xnj&Wf(9F7zPXjh5^HXVZbn87%&VN1`Gp+0mHy!$bjuKwsDlPkDr3^`2Tmxa1@vV{yf3h@4$WFTi|n`2ULJlz)9d3 z@Zed-{s4Xhz65%}GVlU${~5-<0Y<1a6Yw4IHSi(O z1*U+%o@VR^;8S1;xC)#HwC^8j|IK3QjkO#9doI)2G8zukBZB9P%c3humcC<3y;M8RKkrO{e0Bnx|; z(D&`YRrPeezO(~pRHu@UfZ(!}c1}|mcw4kF;sL%=zp`P<#B(7~BSSEQID>R-580nukd$uCpu-ba>XYV6dpX)Lw1$u3aw8WFKqSnvKQM zJe?!Qg>QN1l}5LDSZvVQvos9H92S91-4HRkVlcoizncgi)A@4lM<)qrseQ9~eNkKL zjJUH-VnAUM>lAWzI71B&9KjX#lT#$Qg2jcwc@Xsz;bAd^Nx}cW#V=J-3oNYZhc3Om znP-lsqX&9a^`$}}qJ4B!`yx0bF-oMzi!{u2lyA`)9Ud5>+nN!7-4#+dGa?8NNW$(^ z5F-z3*MXR(-NQrL(ft`Y3{gmQCGxSsdp>Dse-K zM6~NXYO~{IMbJV#(hz|+L2?$M)$En)a8OVsg6LWsCGHTe59UHXJ=;~(iy~ljtYmp@ zzO&lwv{stedv&U%#!b`_ZQMkysVeDICpM`#Sq@rUtf8w_TBK4ZQ%iGoI7XZV z2d_)zdYP;N)l$PI&eA&bZD)ikS!dJK;kKK`dIuG6rAdQOk{_brhyb5{dPrB;G$eC( z^+~YT($4R-(&A4zODH=Sw2o9`UaoX4)~b3V6f>GIiN-c+df!8_D>6(WYLSKu>D~H; J7TsvEzX4HN)Rh1L literal 0 HcmV?d00001 diff --git a/tmp/deployer202003252347/appversion.json b/tmp/deployer202003252347/appversion.json deleted file mode 100644 index 1b33bddc..00000000 --- a/tmp/deployer202003252347/appversion.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "ApplicationVersion": { - "ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:applicationversion/deployer202003252347/deployer-api", - "ApplicationName": "deployer202003252347", - "VersionLabel": "deployer-api", - "SourceBundle": { - "S3Bucket": "deployer202003252347", - "S3Key": "app-version-deployer.json" - }, - "DateCreated": "2020-03-26T02:47:40.842000+00:00", - "DateUpdated": "2020-03-26T02:47:40.842000+00:00", - "Status": "UNPROCESSED" - } -} diff --git a/tmp/deployer202003252347/defaultvpc.json b/tmp/deployer202003252347/defaultvpc.json deleted file mode 100644 index 82a1cbcb..00000000 --- a/tmp/deployer202003252347/defaultvpc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "Vpcs": [ - { - "CidrBlock": "172.31.0.0/16", - "DhcpOptionsId": "dopt-9db711e7", - "State": "available", - "VpcId": "vpc-3ec2c744", - "OwnerId": "724831181620", - "InstanceTenancy": "default", - "CidrBlockAssociationSet": [ - { - "AssociationId": "vpc-cidr-assoc-e42a3c88", - "CidrBlock": "172.31.0.0/16", - "CidrBlockState": { - "State": "associated" - } - } - ], - "IsDefault": true - } - ] -} diff --git a/tmp/deployer202003252347/e-qqy5c6qpy2.json b/tmp/deployer202003252347/e-qqy5c6qpy2.json deleted file mode 100644 index d9ae980a..00000000 --- a/tmp/deployer202003252347/e-qqy5c6qpy2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "EnvironmentName": "deployer-api", - "EnvironmentId": "e-qqy5c6qpy2", - "ApplicationName": "deployer202003252347", - "VersionLabel": "deployer-api", - "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running GlassFish 5.0 Java 8 (Preconfigured - Docker)", - "PlatformArn": "arn:aws:elasticbeanstalk:us-east-1::platform/Preconfigured Docker - GlassFish 5.0 with Java 8 running on 64bit Amazon Linux/2.14.2", - "Description": "deployer API environment", - "EndpointURL": "awseb-e-q-AWSEBLoa-1EZ791R7ERV56-61174272.us-east-1.elb.amazonaws.com", - "CNAME": "deployer-api.eba-mmmpqfd6.us-east-1.elasticbeanstalk.com", - "DateCreated": "2020-03-26T02:47:35.252000+00:00", - "DateUpdated": "2020-03-26T02:50:54.629000+00:00", - "Status": "Updating", - "AbortableOperationInProgress": true, - "Health": "Grey", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": "1.0" - }, - "EnvironmentArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:environment/deployer202003252347/deployer-api" -} diff --git a/tmp/deployer202003252347/ebcreateapienv.json b/tmp/deployer202003252347/ebcreateapienv.json deleted file mode 100644 index 583b949f..00000000 --- a/tmp/deployer202003252347/ebcreateapienv.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "EnvironmentName": "deployer-api", - "EnvironmentId": "e-qqy5c6qpy2", - "ApplicationName": "deployer202003252347", - "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running GlassFish 5.0 Java 8 (Preconfigured - Docker)", - "PlatformArn": "arn:aws:elasticbeanstalk:us-east-1::platform/Preconfigured Docker - GlassFish 5.0 with Java 8 running on 64bit Amazon Linux/2.14.2", - "Description": "deployer API environment", - "DateCreated": "2020-03-26T02:47:35.272000+00:00", - "DateUpdated": "2020-03-26T02:47:35.272000+00:00", - "Status": "Launching", - "Health": "Grey", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": "1.0" - }, - "EnvironmentArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:environment/deployer202003252347/deployer-api" -} diff --git a/tmp/deployer202003252347/ebcreateapp.json b/tmp/deployer202003252347/ebcreateapp.json deleted file mode 100644 index f1a890b0..00000000 --- a/tmp/deployer202003252347/ebcreateapp.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Application": { - "ApplicationArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:application/deployer202003252347", - "ApplicationName": "deployer202003252347", - "Description": "deployer 202003252347", - "DateCreated": "2020-03-26T02:47:30.002000+00:00", - "DateUpdated": "2020-03-26T02:47:30.002000+00:00", - "ConfigurationTemplates": [], - "ResourceLifecycleConfig": { - "VersionLifecycleConfig": { - "MaxCountRule": { - "Enabled": false, - "MaxCount": 200, - "DeleteSourceFromS3": false - }, - "MaxAgeRule": { - "Enabled": false, - "MaxAgeInDays": 180, - "DeleteSourceFromS3": false - } - } - } - } -} diff --git a/tmp/deployer202003252356/defaultvpc.json b/tmp/deployer202003252356/defaultvpc.json deleted file mode 100644 index 82a1cbcb..00000000 --- a/tmp/deployer202003252356/defaultvpc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "Vpcs": [ - { - "CidrBlock": "172.31.0.0/16", - "DhcpOptionsId": "dopt-9db711e7", - "State": "available", - "VpcId": "vpc-3ec2c744", - "OwnerId": "724831181620", - "InstanceTenancy": "default", - "CidrBlockAssociationSet": [ - { - "AssociationId": "vpc-cidr-assoc-e42a3c88", - "CidrBlock": "172.31.0.0/16", - "CidrBlockState": { - "State": "associated" - } - } - ], - "IsDefault": true - } - ] -} diff --git a/tmp/deployer202003252356/ebcreateapienv.json b/tmp/deployer202003252356/ebcreateapienv.json deleted file mode 100644 index e69de29b..00000000 diff --git a/tmp/deployer202003252356/ebcreateapp.json b/tmp/deployer202003252356/ebcreateapp.json deleted file mode 100644 index d2fb9c66..00000000 --- a/tmp/deployer202003252356/ebcreateapp.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Application": { - "ApplicationArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:application/deployer202003252356", - "ApplicationName": "deployer202003252356", - "Description": "deployer 202003252356", - "DateCreated": "2020-03-26T02:56:57.166000+00:00", - "DateUpdated": "2020-03-26T02:56:57.166000+00:00", - "ConfigurationTemplates": [], - "ResourceLifecycleConfig": { - "VersionLifecycleConfig": { - "MaxCountRule": { - "Enabled": false, - "MaxCount": 200, - "DeleteSourceFromS3": false - }, - "MaxAgeRule": { - "Enabled": false, - "MaxAgeInDays": 180, - "DeleteSourceFromS3": false - } - } - } - } -} diff --git a/tmp/deployer202003252359/defaultvpc.json b/tmp/deployer202003252359/defaultvpc.json deleted file mode 100644 index 8b137891..00000000 --- a/tmp/deployer202003252359/defaultvpc.json +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tmp/deployer202003260000/appversion.json b/tmp/deployer202003260000/appversion.json deleted file mode 100644 index 576e0bce..00000000 --- a/tmp/deployer202003260000/appversion.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "ApplicationVersion": { - "ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:applicationversion/deployer202003260000/deployer-api", - "ApplicationName": "deployer202003260000", - "VersionLabel": "deployer-api", - "SourceBundle": { - "S3Bucket": "deployer202003260000", - "S3Key": "app-version-deployer.json" - }, - "DateCreated": "2020-03-26T03:00:32.334000+00:00", - "DateUpdated": "2020-03-26T03:00:32.334000+00:00", - "Status": "UNPROCESSED" - } -} diff --git a/tmp/deployer202003260000/defaultvpc.json b/tmp/deployer202003260000/defaultvpc.json deleted file mode 100644 index 82a1cbcb..00000000 --- a/tmp/deployer202003260000/defaultvpc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "Vpcs": [ - { - "CidrBlock": "172.31.0.0/16", - "DhcpOptionsId": "dopt-9db711e7", - "State": "available", - "VpcId": "vpc-3ec2c744", - "OwnerId": "724831181620", - "InstanceTenancy": "default", - "CidrBlockAssociationSet": [ - { - "AssociationId": "vpc-cidr-assoc-e42a3c88", - "CidrBlock": "172.31.0.0/16", - "CidrBlockState": { - "State": "associated" - } - } - ], - "IsDefault": true - } - ] -} diff --git a/tmp/deployer202003260000/e-fvbjfxxcmt.json b/tmp/deployer202003260000/e-fvbjfxxcmt.json deleted file mode 100644 index 479da71f..00000000 --- a/tmp/deployer202003260000/e-fvbjfxxcmt.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "EnvironmentName": "deployer-api", - "EnvironmentId": "e-fvbjfxxcmt", - "ApplicationName": "deployer202003260000", - "VersionLabel": "deployer-api", - "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", - "PlatformArn": "arn:aws:elasticbeanstalk:us-east-1::platform/Docker running on 64bit Amazon Linux/2.14.2", - "Description": "deployer API environment", - "EndpointURL": "awseb-e-f-AWSEBLoa-1E9ATAUPXTA9J-649313496.us-east-1.elb.amazonaws.com", - "CNAME": "deployer-api.eba-cg48ftfz.us-east-1.elasticbeanstalk.com", - "DateCreated": "2020-03-26T03:00:27.136000+00:00", - "DateUpdated": "2020-03-26T03:03:44.656000+00:00", - "Status": "Updating", - "AbortableOperationInProgress": true, - "Health": "Grey", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": "1.0" - }, - "EnvironmentArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:environment/deployer202003260000/deployer-api" -} diff --git a/tmp/deployer202003260000/ebcreateapienv.json b/tmp/deployer202003260000/ebcreateapienv.json deleted file mode 100644 index d368a697..00000000 --- a/tmp/deployer202003260000/ebcreateapienv.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "EnvironmentName": "deployer-api", - "EnvironmentId": "e-fvbjfxxcmt", - "ApplicationName": "deployer202003260000", - "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", - "PlatformArn": "arn:aws:elasticbeanstalk:us-east-1::platform/Docker running on 64bit Amazon Linux/2.14.2", - "Description": "deployer API environment", - "DateCreated": "2020-03-26T03:00:27.151000+00:00", - "DateUpdated": "2020-03-26T03:00:27.151000+00:00", - "Status": "Launching", - "Health": "Grey", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": "1.0" - }, - "EnvironmentArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:environment/deployer202003260000/deployer-api" -} diff --git a/tmp/deployer202003260000/ebcreateapp.json b/tmp/deployer202003260000/ebcreateapp.json deleted file mode 100644 index 815aad97..00000000 --- a/tmp/deployer202003260000/ebcreateapp.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Application": { - "ApplicationArn": "arn:aws:elasticbeanstalk:us-east-1:724831181620:application/deployer202003260000", - "ApplicationName": "deployer202003260000", - "Description": "deployer 202003260000", - "DateCreated": "2020-03-26T03:00:22.106000+00:00", - "DateUpdated": "2020-03-26T03:00:22.106000+00:00", - "ConfigurationTemplates": [], - "ResourceLifecycleConfig": { - "VersionLifecycleConfig": { - "MaxCountRule": { - "Enabled": false, - "MaxCount": 200, - "DeleteSourceFromS3": false - }, - "MaxAgeRule": { - "Enabled": false, - "MaxAgeInDays": 180, - "DeleteSourceFromS3": false - } - } - } - } -} diff --git a/tmp/deployer202003281745/appversion.json b/tmp/deployer202003281745/appversion.json deleted file mode 100644 index 647fb236..00000000 --- a/tmp/deployer202003281745/appversion.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "ApplicationVersion": { - "ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:applicationversion/deployer202003281745/deployer-api", - "ApplicationName": "deployer202003281745", - "VersionLabel": "deployer-api", - "SourceBundle": { - "S3Bucket": "deployer202003281745", - "S3Key": "app-version-deployer.json" - }, - "DateCreated": "2020-03-28T20:46:19.757000+00:00", - "DateUpdated": "2020-03-28T20:46:19.757000+00:00", - "Status": "UNPROCESSED" - } -} diff --git a/tmp/deployer202003281745/defaultvpc.json b/tmp/deployer202003281745/defaultvpc.json deleted file mode 100644 index 87ad7ed0..00000000 --- a/tmp/deployer202003281745/defaultvpc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "Vpcs": [ - { - "CidrBlock": "172.31.0.0/16", - "DhcpOptionsId": "dopt-5a65fa22", - "State": "available", - "VpcId": "vpc-77f0960f", - "OwnerId": "724831181620", - "InstanceTenancy": "default", - "CidrBlockAssociationSet": [ - { - "AssociationId": "vpc-cidr-assoc-2f4f7345", - "CidrBlock": "172.31.0.0/16", - "CidrBlockState": { - "State": "associated" - } - } - ], - "IsDefault": true - } - ] -} diff --git a/tmp/deployer202003281745/e-gxspmnbpaq.json b/tmp/deployer202003281745/e-gxspmnbpaq.json deleted file mode 100644 index cd69a544..00000000 --- a/tmp/deployer202003281745/e-gxspmnbpaq.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "EnvironmentName": "deployer-api", - "EnvironmentId": "e-gxspmnbpaq", - "ApplicationName": "deployer202003281745", - "VersionLabel": "deployer-api", - "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", - "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", - "Description": "deployer API environment", - "EndpointURL": "awseb-e-g-AWSEBLoa-1RIRAV61BYHE6-740669816.us-west-2.elb.amazonaws.com", - "CNAME": "deployer-api.eba-mv2mmkgt.us-west-2.elasticbeanstalk.com", - "DateCreated": "2020-03-28T20:46:08.047000+00:00", - "DateUpdated": "2020-03-28T20:50:20.889000+00:00", - "Status": "Updating", - "AbortableOperationInProgress": true, - "Health": "Grey", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": "1.0" - }, - "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281745/deployer-api" -} diff --git a/tmp/deployer202003281745/ebcreateapienv.json b/tmp/deployer202003281745/ebcreateapienv.json deleted file mode 100644 index 732b9747..00000000 --- a/tmp/deployer202003281745/ebcreateapienv.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "EnvironmentName": "deployer-api", - "EnvironmentId": "e-gxspmnbpaq", - "ApplicationName": "deployer202003281745", - "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", - "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", - "Description": "deployer API environment", - "DateCreated": "2020-03-28T20:46:08.061000+00:00", - "DateUpdated": "2020-03-28T20:46:08.061000+00:00", - "Status": "Launching", - "Health": "Grey", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": "1.0" - }, - "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281745/deployer-api" -} diff --git a/tmp/deployer202003281745/ebcreateapp.json b/tmp/deployer202003281745/ebcreateapp.json deleted file mode 100644 index e0478a14..00000000 --- a/tmp/deployer202003281745/ebcreateapp.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Application": { - "ApplicationArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:application/deployer202003281745", - "ApplicationName": "deployer202003281745", - "Description": "deployer 202003281745", - "DateCreated": "2020-03-28T20:46:02.349000+00:00", - "DateUpdated": "2020-03-28T20:46:02.349000+00:00", - "ConfigurationTemplates": [], - "ResourceLifecycleConfig": { - "VersionLifecycleConfig": { - "MaxCountRule": { - "Enabled": false, - "MaxCount": 200, - "DeleteSourceFromS3": false - }, - "MaxAgeRule": { - "Enabled": false, - "MaxAgeInDays": 180, - "DeleteSourceFromS3": false - } - } - } - } -} diff --git a/tmp/deployer202003281815/appversion.json b/tmp/deployer202003281815/appversion.json deleted file mode 100644 index d2907239..00000000 --- a/tmp/deployer202003281815/appversion.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "ApplicationVersion": { - "ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:applicationversion/deployer202003281815/deployer-api", - "ApplicationName": "deployer202003281815", - "VersionLabel": "deployer-api", - "SourceBundle": { - "S3Bucket": "deployer202003281815", - "S3Key": "app-version-deployer.json" - }, - "DateCreated": "2020-03-28T21:15:31.335000+00:00", - "DateUpdated": "2020-03-28T21:15:31.335000+00:00", - "Status": "UNPROCESSED" - } -} diff --git a/tmp/deployer202003281815/defaultvpc.json b/tmp/deployer202003281815/defaultvpc.json deleted file mode 100644 index 87ad7ed0..00000000 --- a/tmp/deployer202003281815/defaultvpc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "Vpcs": [ - { - "CidrBlock": "172.31.0.0/16", - "DhcpOptionsId": "dopt-5a65fa22", - "State": "available", - "VpcId": "vpc-77f0960f", - "OwnerId": "724831181620", - "InstanceTenancy": "default", - "CidrBlockAssociationSet": [ - { - "AssociationId": "vpc-cidr-assoc-2f4f7345", - "CidrBlock": "172.31.0.0/16", - "CidrBlockState": { - "State": "associated" - } - } - ], - "IsDefault": true - } - ] -} diff --git a/tmp/deployer202003281815/e-jamrsuqf3r.json b/tmp/deployer202003281815/e-jamrsuqf3r.json deleted file mode 100644 index 0304cabb..00000000 --- a/tmp/deployer202003281815/e-jamrsuqf3r.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "EnvironmentName": "deployer-api", - "EnvironmentId": "e-jamrsuqf3r", - "ApplicationName": "deployer202003281815", - "VersionLabel": "deployer-api", - "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", - "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", - "Description": "deployer API environment", - "EndpointURL": "awseb-e-j-AWSEBLoa-1QT3DPXZD95DF-396605049.us-west-2.elb.amazonaws.com", - "CNAME": "deployer-api.eba-7jrkki7h.us-west-2.elasticbeanstalk.com", - "DateCreated": "2020-03-28T21:15:24.942000+00:00", - "DateUpdated": "2020-03-28T21:18:54.250000+00:00", - "Status": "Updating", - "AbortableOperationInProgress": true, - "Health": "Grey", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": "1.0" - }, - "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281815/deployer-api" -} diff --git a/tmp/deployer202003281815/ebcreateapienv.json b/tmp/deployer202003281815/ebcreateapienv.json deleted file mode 100644 index e3b058b6..00000000 --- a/tmp/deployer202003281815/ebcreateapienv.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "EnvironmentName": "deployer-api", - "EnvironmentId": "e-jamrsuqf3r", - "ApplicationName": "deployer202003281815", - "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", - "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", - "Description": "deployer API environment", - "DateCreated": "2020-03-28T21:15:24.955000+00:00", - "DateUpdated": "2020-03-28T21:15:24.955000+00:00", - "Status": "Launching", - "Health": "Grey", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": "1.0" - }, - "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281815/deployer-api" -} diff --git a/tmp/deployer202003281815/ebcreateapp.json b/tmp/deployer202003281815/ebcreateapp.json deleted file mode 100644 index 35f401db..00000000 --- a/tmp/deployer202003281815/ebcreateapp.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Application": { - "ApplicationArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:application/deployer202003281815", - "ApplicationName": "deployer202003281815", - "Description": "deployer 202003281815", - "DateCreated": "2020-03-28T21:15:19.859000+00:00", - "DateUpdated": "2020-03-28T21:15:19.859000+00:00", - "ConfigurationTemplates": [], - "ResourceLifecycleConfig": { - "VersionLifecycleConfig": { - "MaxCountRule": { - "Enabled": false, - "MaxCount": 200, - "DeleteSourceFromS3": false - }, - "MaxAgeRule": { - "Enabled": false, - "MaxAgeInDays": 180, - "DeleteSourceFromS3": false - } - } - } - } -} diff --git a/tmp/deployer202003281858/defaultvpc.json b/tmp/deployer202003281858/defaultvpc.json deleted file mode 100644 index 87ad7ed0..00000000 --- a/tmp/deployer202003281858/defaultvpc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "Vpcs": [ - { - "CidrBlock": "172.31.0.0/16", - "DhcpOptionsId": "dopt-5a65fa22", - "State": "available", - "VpcId": "vpc-77f0960f", - "OwnerId": "724831181620", - "InstanceTenancy": "default", - "CidrBlockAssociationSet": [ - { - "AssociationId": "vpc-cidr-assoc-2f4f7345", - "CidrBlock": "172.31.0.0/16", - "CidrBlockState": { - "State": "associated" - } - } - ], - "IsDefault": true - } - ] -} diff --git a/tmp/deployer202003281858/ebcreateapienv.json b/tmp/deployer202003281858/ebcreateapienv.json deleted file mode 100644 index e69de29b..00000000 diff --git a/tmp/deployer202003281858/ebcreateapp.json b/tmp/deployer202003281858/ebcreateapp.json deleted file mode 100644 index 4655a64d..00000000 --- a/tmp/deployer202003281858/ebcreateapp.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Application": { - "ApplicationArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:application/deployer202003281858", - "ApplicationName": "deployer202003281858", - "Description": "deployer 202003281858", - "DateCreated": "2020-03-28T21:58:38.747000+00:00", - "DateUpdated": "2020-03-28T21:58:38.747000+00:00", - "ConfigurationTemplates": [], - "ResourceLifecycleConfig": { - "VersionLifecycleConfig": { - "MaxCountRule": { - "Enabled": false, - "MaxCount": 200, - "DeleteSourceFromS3": false - }, - "MaxAgeRule": { - "Enabled": false, - "MaxAgeInDays": 180, - "DeleteSourceFromS3": false - } - } - } - } -} diff --git a/tmp/deployer202003281900/appversion.json b/tmp/deployer202003281900/appversion.json deleted file mode 100644 index 8d508c2a..00000000 --- a/tmp/deployer202003281900/appversion.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "ApplicationVersion": { - "ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:applicationversion/deployer202003281900/deployer-api", - "ApplicationName": "deployer202003281900", - "VersionLabel": "deployer-api", - "SourceBundle": { - "S3Bucket": "deployer202003281900", - "S3Key": "app-version-deployer.json" - }, - "DateCreated": "2020-03-28T22:00:37.005000+00:00", - "DateUpdated": "2020-03-28T22:00:37.005000+00:00", - "Status": "UNPROCESSED" - } -} diff --git a/tmp/deployer202003281900/defaultvpc.json b/tmp/deployer202003281900/defaultvpc.json deleted file mode 100644 index 87ad7ed0..00000000 --- a/tmp/deployer202003281900/defaultvpc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "Vpcs": [ - { - "CidrBlock": "172.31.0.0/16", - "DhcpOptionsId": "dopt-5a65fa22", - "State": "available", - "VpcId": "vpc-77f0960f", - "OwnerId": "724831181620", - "InstanceTenancy": "default", - "CidrBlockAssociationSet": [ - { - "AssociationId": "vpc-cidr-assoc-2f4f7345", - "CidrBlock": "172.31.0.0/16", - "CidrBlockState": { - "State": "associated" - } - } - ], - "IsDefault": true - } - ] -} diff --git a/tmp/deployer202003281900/e-mhkwb75mni.json b/tmp/deployer202003281900/e-mhkwb75mni.json deleted file mode 100644 index 8f9b6724..00000000 --- a/tmp/deployer202003281900/e-mhkwb75mni.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "EnvironmentName": "deployer-api", - "EnvironmentId": "e-mhkwb75mni", - "ApplicationName": "deployer202003281900", - "VersionLabel": "deployer-api", - "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", - "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", - "Description": "deployer API environment", - "EndpointURL": "awseb-e-m-AWSEBLoa-5O9UKUYGG8S-117598455.us-west-2.elb.amazonaws.com", - "CNAME": "deployer-api.eba-jjimg4m5.us-west-2.elasticbeanstalk.com", - "DateCreated": "2020-03-28T22:00:30.500000+00:00", - "DateUpdated": "2020-03-28T22:03:44.455000+00:00", - "Status": "Updating", - "AbortableOperationInProgress": true, - "Health": "Grey", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": "1.0" - }, - "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281900/deployer-api" -} diff --git a/tmp/deployer202003281900/ebcreateapienv.json b/tmp/deployer202003281900/ebcreateapienv.json deleted file mode 100644 index 450c8569..00000000 --- a/tmp/deployer202003281900/ebcreateapienv.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "EnvironmentName": "deployer-api", - "EnvironmentId": "e-mhkwb75mni", - "ApplicationName": "deployer202003281900", - "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", - "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", - "Description": "deployer API environment", - "DateCreated": "2020-03-28T22:00:30.513000+00:00", - "DateUpdated": "2020-03-28T22:00:30.513000+00:00", - "Status": "Launching", - "Health": "Grey", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": "1.0" - }, - "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281900/deployer-api" -} diff --git a/tmp/deployer202003281900/ebcreateapp.json b/tmp/deployer202003281900/ebcreateapp.json deleted file mode 100644 index 2a187e7e..00000000 --- a/tmp/deployer202003281900/ebcreateapp.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Application": { - "ApplicationArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:application/deployer202003281900", - "ApplicationName": "deployer202003281900", - "Description": "deployer 202003281900", - "DateCreated": "2020-03-28T22:00:25.298000+00:00", - "DateUpdated": "2020-03-28T22:00:25.298000+00:00", - "ConfigurationTemplates": [], - "ResourceLifecycleConfig": { - "VersionLifecycleConfig": { - "MaxCountRule": { - "Enabled": false, - "MaxCount": 200, - "DeleteSourceFromS3": false - }, - "MaxAgeRule": { - "Enabled": false, - "MaxAgeInDays": 180, - "DeleteSourceFromS3": false - } - } - } - } -} diff --git a/tmp/deployer202003281921/appversion.json b/tmp/deployer202003281921/appversion.json deleted file mode 100644 index df472fd0..00000000 --- a/tmp/deployer202003281921/appversion.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "ApplicationVersion": { - "ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:applicationversion/deployer202003281921/deployer-api", - "ApplicationName": "deployer202003281921", - "VersionLabel": "deployer-api", - "SourceBundle": { - "S3Bucket": "deployer202003281921", - "S3Key": "app-version-deployer.json" - }, - "DateCreated": "2020-03-28T22:21:52.511000+00:00", - "DateUpdated": "2020-03-28T22:21:52.511000+00:00", - "Status": "UNPROCESSED" - } -} diff --git a/tmp/deployer202003281921/defaultvpc.json b/tmp/deployer202003281921/defaultvpc.json deleted file mode 100644 index 87ad7ed0..00000000 --- a/tmp/deployer202003281921/defaultvpc.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "Vpcs": [ - { - "CidrBlock": "172.31.0.0/16", - "DhcpOptionsId": "dopt-5a65fa22", - "State": "available", - "VpcId": "vpc-77f0960f", - "OwnerId": "724831181620", - "InstanceTenancy": "default", - "CidrBlockAssociationSet": [ - { - "AssociationId": "vpc-cidr-assoc-2f4f7345", - "CidrBlock": "172.31.0.0/16", - "CidrBlockState": { - "State": "associated" - } - } - ], - "IsDefault": true - } - ] -} diff --git a/tmp/deployer202003281921/e-x5smxcbmdn.json b/tmp/deployer202003281921/e-x5smxcbmdn.json deleted file mode 100644 index 7dd84d15..00000000 --- a/tmp/deployer202003281921/e-x5smxcbmdn.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "EnvironmentName": "deployer-api", - "EnvironmentId": "e-x5smxcbmdn", - "ApplicationName": "deployer202003281921", - "VersionLabel": "deployer-api", - "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", - "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", - "Description": "deployer API environment", - "EndpointURL": "awseb-e-x-AWSEBLoa-1L5322U8HGHE9-870675966.us-west-2.elb.amazonaws.com", - "CNAME": "deployer-api.eba-7mzp8ux6.us-west-2.elasticbeanstalk.com", - "DateCreated": "2020-03-28T22:21:45.612000+00:00", - "DateUpdated": "2020-03-28T22:24:44.382000+00:00", - "Status": "Updating", - "AbortableOperationInProgress": true, - "Health": "Grey", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": "1.0" - }, - "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281921/deployer-api" -} diff --git a/tmp/deployer202003281921/ebcreateapienv.json b/tmp/deployer202003281921/ebcreateapienv.json deleted file mode 100644 index aefd9556..00000000 --- a/tmp/deployer202003281921/ebcreateapienv.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "EnvironmentName": "deployer-api", - "EnvironmentId": "e-x5smxcbmdn", - "ApplicationName": "deployer202003281921", - "SolutionStackName": "64bit Amazon Linux 2018.03 v2.14.2 running Docker 18.09.9-ce", - "PlatformArn": "arn:aws:elasticbeanstalk:us-west-2::platform/Docker running on 64bit Amazon Linux/2.14.2", - "Description": "deployer API environment", - "DateCreated": "2020-03-28T22:21:45.626000+00:00", - "DateUpdated": "2020-03-28T22:21:45.626000+00:00", - "Status": "Launching", - "Health": "Grey", - "Tier": { - "Name": "WebServer", - "Type": "Standard", - "Version": "1.0" - }, - "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:environment/deployer202003281921/deployer-api" -} diff --git a/tmp/deployer202003281921/ebcreateapp.json b/tmp/deployer202003281921/ebcreateapp.json deleted file mode 100644 index 2a38d8d1..00000000 --- a/tmp/deployer202003281921/ebcreateapp.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Application": { - "ApplicationArn": "arn:aws:elasticbeanstalk:us-west-2:724831181620:application/deployer202003281921", - "ApplicationName": "deployer202003281921", - "Description": "deployer 202003281921", - "DateCreated": "2020-03-28T22:21:40.013000+00:00", - "DateUpdated": "2020-03-28T22:21:40.013000+00:00", - "ConfigurationTemplates": [], - "ResourceLifecycleConfig": { - "VersionLifecycleConfig": { - "MaxCountRule": { - "Enabled": false, - "MaxCount": 200, - "DeleteSourceFromS3": false - }, - "MaxAgeRule": { - "Enabled": false, - "MaxAgeInDays": 180, - "DeleteSourceFromS3": false - } - } - } - } -} From 79d6140fe71787748d30f4408a82120c2d867215 Mon Sep 17 00:00:00 2001 From: Rogerio Fernandes Dias Date: Mon, 30 Mar 2020 21:59:38 -0300 Subject: [PATCH 04/17] rid off pip install aws --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 774e0923..80c9b509 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,7 +21,6 @@ jobs: - run: mkdir -p "${GOPATH_BASE}" - run: mkdir -p "${GOPATH_HEAD}/bin" - run: go get github.com/govend/govend - - run: sudo pip install awscli - run: name: Build application container From 9f227ff6ed01e1feb9099fbb6c6a0648b2c50633 Mon Sep 17 00:00:00 2001 From: Rogerio Fernandes Dias Date: Mon, 30 Mar 2020 22:06:34 -0300 Subject: [PATCH 05/17] fixing repo docker --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 80c9b509..861d18e3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,7 +17,7 @@ jobs: - run: echo 'export GOPATH_HEAD="$(echo ${GOPATH}|cut -d ':' -f 1)"' >> $BASH_ENV - run: echo 'export GOPATH_BASE="${GOPATH_HEAD}/src/github.com/${CIRCLE_PROJECT_USERNAME}"' >> $BASH_ENV - - run: echo 'export DOCKER_REPO="$(if [ ${CIRCLE_PROJECT_USERNAME} == 'rogerfdias' ]; then echo securingdevops; else echo $DOCKER_USER; fi)"' >> $BASH_ENV + - run: echo 'export DOCKER_REPO="$(if [ ${CIRCLE_PROJECT_USERNAME} == 'rogerfdias' ]; then echo rogerfdias; else echo $DOCKER_USER; fi)"' >> $BASH_ENV - run: mkdir -p "${GOPATH_BASE}" - run: mkdir -p "${GOPATH_HEAD}/bin" - run: go get github.com/govend/govend From 04cc946888e1216c39689170234f2b76cda95e63 Mon Sep 17 00:00:00 2001 From: Rogerio Fernandes Dias Date: Mon, 30 Mar 2020 22:22:53 -0300 Subject: [PATCH 06/17] fixing awscli --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 861d18e3..31035886 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,6 +21,7 @@ jobs: - run: mkdir -p "${GOPATH_BASE}" - run: mkdir -p "${GOPATH_HEAD}/bin" - run: go get github.com/govend/govend + - run: apt-get -y install awscli - run: name: Build application container From 9328873622e6a06d6774bd70748a38c19876b4eb Mon Sep 17 00:00:00 2001 From: Rogerio Fernandes Dias Date: Mon, 30 Mar 2020 22:28:59 -0300 Subject: [PATCH 07/17] fixing sudo to install awscli --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 31035886..bc5c77ec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,7 +21,7 @@ jobs: - run: mkdir -p "${GOPATH_BASE}" - run: mkdir -p "${GOPATH_HEAD}/bin" - run: go get github.com/govend/govend - - run: apt-get -y install awscli + - run: sudo apt-get -y install awscli - run: name: Build application container From ddac121497d9c0504f891ef4ffbd6b4678376a7a Mon Sep 17 00:00:00 2001 From: Rogerio Fernandes Dias Date: Mon, 30 Mar 2020 22:32:02 -0300 Subject: [PATCH 08/17] undo aws sudo --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bc5c77ec..861d18e3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,7 +21,6 @@ jobs: - run: mkdir -p "${GOPATH_BASE}" - run: mkdir -p "${GOPATH_HEAD}/bin" - run: go get github.com/govend/govend - - run: sudo apt-get -y install awscli - run: name: Build application container From 4ef6aea3e391fd9c9afe4ccaa0dd7122eb182dca Mon Sep 17 00:00:00 2001 From: Rogerio Fernandes Dias Date: Mon, 30 Mar 2020 22:51:38 -0300 Subject: [PATCH 09/17] fixing namespace --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index b1aef590..a93f72c1 100644 --- a/main.go +++ b/main.go @@ -47,7 +47,7 @@ func (dplr *deployer) postWebHook(w http.ResponseWriter, r *http.Request) { // This application only accepts containers placed under the // `securingdevops` dockerhub organization. If this wasn't an // example application, we would make the namespacing configurable - if hookData.Repository.Namespace != `securingdevops` { + if hookData.Repository.Namespace != `rogerfdias` { httpError(w, http.StatusUnauthorized, "Invalid namespace") return } @@ -115,10 +115,10 @@ func getHeartbeat(w http.ResponseWriter, r *http.Request) { // handleVersion returns the current version of the API func getVersion(w http.ResponseWriter, r *http.Request) { w.Write([]byte(fmt.Sprintf(`{ -"source": "https://github.com/Securing-DevOps/deployer", +"source": "https://github.com/rogerfdias/deployer", "version": "%s", "commit": "%s", -"build": "https://circleci.com/gh/Securing-DevOps/deployer/" +"build": "https://circleci.com/gh/rogerfdias/deployer/" }`, version, commit))) } From b9156b64b5459bff2e5d9b899ce939e19af113b5 Mon Sep 17 00:00:00 2001 From: Rogerio Fernandes Dias Date: Mon, 30 Mar 2020 23:06:38 -0300 Subject: [PATCH 10/17] trying last version golang --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 861d18e3..f5635eee 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,7 +5,7 @@ jobs: # You will need to modify the code below to reflect your github account/repo setup working_directory: /go/src/github.com/rogerfdias/deployer docker: - - image: circleci/golang:1.8 + - image: circleci/golang:latest environment: GO15VENDOREXPERIMENT: 1 branches: From 9ccb321b33c4b5aae9ae5942205ec8421a9fa910 Mon Sep 17 00:00:00 2001 From: Rogerio Fernandes Dias Date: Mon, 30 Mar 2020 23:13:52 -0300 Subject: [PATCH 11/17] trying to install awscli --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index f5635eee..8d4567cd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,6 +21,7 @@ jobs: - run: mkdir -p "${GOPATH_BASE}" - run: mkdir -p "${GOPATH_HEAD}/bin" - run: go get github.com/govend/govend + - run: sudo apt-get -y install jq postgresql-client awscli - run: name: Build application container From f77b5c374b3a3238051b045ac581ebc137717d42 Mon Sep 17 00:00:00 2001 From: Rogerio Fernandes Dias Date: Mon, 30 Mar 2020 23:20:45 -0300 Subject: [PATCH 12/17] updating automatic deploy inside elastic beanstalk --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8d4567cd..575961a2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,4 +41,4 @@ jobs: docker images --no-trunc | awk '/^app/ {print $3}' | sudo tee $CIRCLE_ARTIFACTS/docker-image-shasum256.txt; docker push ${DOCKER_REPO}/${CIRCLE_PROJECT_REPONAME}; fi - + aws elasticbeanstalk update-environment --region us-west-2 --application-name deployer202003302211 --environment-id e-mmivnhdjpf --version-label deployer-api From 388cb0ce99c40bd45ee21c89e046ae179d56d0e5 Mon Sep 17 00:00:00 2001 From: Rogerio Fernandes Dias Date: Mon, 30 Mar 2020 23:58:42 -0300 Subject: [PATCH 13/17] adding circle version 2 inside deployer api --- .circle.yml.swp | Bin 12288 -> 0 bytes .circleci/config.yml | 6 ++-- app-version-deployer.json | 2 +- circle.yml | 60 -------------------------------------- create_ebs_env.sh | 5 ++-- main.go | 12 ++++---- 6 files changed, 13 insertions(+), 72 deletions(-) delete mode 100644 .circle.yml.swp delete mode 100644 circle.yml diff --git a/.circle.yml.swp b/.circle.yml.swp deleted file mode 100644 index 4327a97dba932fa6e4a51072096ae9b0799e424d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeHNJ!~9B6rLa)NFXF41tl+ME0=)w&gT#aXM%LGFV2CTv+gbtQj}PGyK{FV?;kU} zXPej{{u){u3L0uCXefaKMRchtX{e|X1&YKs`(vLSWKtlcNVC@G-I;mw=Dly;dn3!! zpS{^yp-Yt-!*hzUGsm~@{J5-+{Q3!FG8}R#LOpWm)5+wNwPHJ0!f@Sc2wCw$$M*J5 zdp}oLT@0PX=RvHhiaUuE!O(K~IE+-)<&hU|aanbQbUa?!@(<|PuhFy&1BQV|XW#_8 zFjt$^^3$a=bo%)lk3Q8%8U_plh5^HXVZbn87%&VN1`Gp_Jp*xcgna-np2$6UBYz(` z@Xnj&Wf(9F7zPXjh5^HXVZbn87%&VN1`Gp+0mHy!$bjuKwsDlPkDr3^`2Tmxa1@vV{yf3h@4$WFTi|n`2ULJlz)9d3 z@Zed-{s4Xhz65%}GVlU${~5-<0Y<1a6Yw4IHSi(O z1*U+%o@VR^;8S1;xC)#HwC^8j|IK3QjkO#9doI)2G8zukBZB9P%c3humcC<3y;M8RKkrO{e0Bnx|; z(D&`YRrPeezO(~pRHu@UfZ(!}c1}|mcw4kF;sL%=zp`P<#B(7~BSSEQID>R-580nukd$uCpu-ba>XYV6dpX)Lw1$u3aw8WFKqSnvKQM zJe?!Qg>QN1l}5LDSZvVQvos9H92S91-4HRkVlcoizncgi)A@4lM<)qrseQ9~eNkKL zjJUH-VnAUM>lAWzI71B&9KjX#lT#$Qg2jcwc@Xsz;bAd^Nx}cW#V=J-3oNYZhc3Om znP-lsqX&9a^`$}}qJ4B!`yx0bF-oMzi!{u2lyA`)9Ud5>+nN!7-4#+dGa?8NNW$(^ z5F-z3*MXR(-NQrL(ft`Y3{gmQCGxSsdp>Dse-K zM6~NXYO~{IMbJV#(hz|+L2?$M)$En)a8OVsg6LWsCGHTe59UHXJ=;~(iy~ljtYmp@ zzO&lwv{stedv&U%#!b`_ZQMkysVeDICpM`#Sq@rUtf8w_TBK4ZQ%iGoI7XZV z2d_)zdYP;N)l$PI&eA&bZD)ikS!dJK;kKK`dIuG6rAdQOk{_brhyb5{dPrB;G$eC( z^+~YT($4R-(&A4zODH=Sw2o9`UaoX4)~b3V6f>GIiN-c+df!8_D>6(WYLSKu>D~H; J7TsvEzX4HN)Rh1L diff --git a/.circleci/config.yml b/.circleci/config.yml index 575961a2..ac17a13c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ jobs: build: # Variable expansion in working_directory not supported at this time # You will need to modify the code below to reflect your github account/repo setup - working_directory: /go/src/github.com/rogerfdias/deployer + working_directory: /go/src/github.com/Securing-DevOps/deployer docker: - image: circleci/golang:latest environment: @@ -17,7 +17,7 @@ jobs: - run: echo 'export GOPATH_HEAD="$(echo ${GOPATH}|cut -d ':' -f 1)"' >> $BASH_ENV - run: echo 'export GOPATH_BASE="${GOPATH_HEAD}/src/github.com/${CIRCLE_PROJECT_USERNAME}"' >> $BASH_ENV - - run: echo 'export DOCKER_REPO="$(if [ ${CIRCLE_PROJECT_USERNAME} == 'rogerfdias' ]; then echo rogerfdias; else echo $DOCKER_USER; fi)"' >> $BASH_ENV + - run: echo 'export DOCKER_REPO="$(if [ ${CIRCLE_PROJECT_USERNAME} == 'securingdevops' ]; then echo securingdevops; else echo $DOCKER_USER; fi)"' >> $BASH_ENV - run: mkdir -p "${GOPATH_BASE}" - run: mkdir -p "${GOPATH_HEAD}/bin" - run: go get github.com/govend/govend @@ -41,4 +41,4 @@ jobs: docker images --no-trunc | awk '/^app/ {print $3}' | sudo tee $CIRCLE_ARTIFACTS/docker-image-shasum256.txt; docker push ${DOCKER_REPO}/${CIRCLE_PROJECT_REPONAME}; fi - aws elasticbeanstalk update-environment --region us-west-2 --application-name deployer202003302211 --environment-id e-mmivnhdjpf --version-label deployer-api + aws elasticbeanstalk update-environment --region us-east-1 --application-name invoicer201707071231 --environment-id e-h4vyur8nup --version-label deployer-api diff --git a/app-version-deployer.json b/app-version-deployer.json index 05561590..b4e5d977 100644 --- a/app-version-deployer.json +++ b/app-version-deployer.json @@ -1,7 +1,7 @@ { "AWSEBDockerrunVersion": "1", "Image": { - "Name": "docker.io/securingdevops/deployer", + "Name": "docker.io/Securing-DevOps/deployer", "Update": "true" }, "Ports": [ diff --git a/circle.yml b/circle.yml deleted file mode 100644 index c380f104..00000000 --- a/circle.yml +++ /dev/null @@ -1,60 +0,0 @@ -# These environment variables must be set in CircleCI UI -# -# DOCKER_EMAIL - login info for docker hub -# DOCKER_USER -# DOCKER_PASS -# -# Read the README for more information. -machine: - environment: - GOPATH_HEAD: "$(echo $GOPATH | cut -d ':' -f 1)" - GOPATH_BASE: "$GOPATH_HEAD/src/github.com/$CIRCLE_PROJECT_USERNAME" - GO15VENDOREXPERIMENT: 1 - DOCKER_REPO: "$(if [ $CIRCLE_PROJECT_USERNAME == 'Securing-DevOps' ]; then echo securingdevops; else echo $DOCKER_USER; fi)" - - services: - - docker - -dependencies: - override: - - rm -rf ${GOPATH_BASE}/ - - mkdir -p "$GOPATH_BASE" - - mkdir -p "$GOPATH/bin" - - cp -r ${HOME}/${CIRCLE_PROJECT_REPONAME} ${GOPATH_BASE}/ - - go get github.com/govend/govend - - sudo pip install awscli - -test: - override: - - > - go test - github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME} - # Go applications in the busybox container must be built statically - - > - go install --ldflags '-extldflags "-static"' - github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME} - - '[ ! -e bin ] && mkdir bin' - - cp "$GOPATH_HEAD/bin/${CIRCLE_PROJECT_REPONAME}" bin/deployer - - chmod +x deploymentTests/* - - docker build -t ${DOCKER_REPO}/${CIRCLE_PROJECT_REPONAME} . - - # Run GOVEND to check if outdated dependencies are present - - 'GOPATH="$GOPATH_HEAD"; ( cd ${GOPATH_BASE}/${CIRCLE_PROJECT_REPONAME} && govend -u && git diff --quiet )' - -deployment: - hub_latest: - # appropriately tag and push the container to dockerhub - # only when on the master branch - branch: "master" - commands: - - > - docker login -e ${DOCKER_EMAIL} - -u ${DOCKER_USER} -p ${DOCKER_PASS} - # write the sha256 sum to an artifact to make image verification easier - - > - docker images --no-trunc | awk '/^app/ {print $3}' | - tee $CIRCLE_ARTIFACTS/docker-image-shasum256.txt - - docker push ${DOCKER_REPO}/${CIRCLE_PROJECT_REPONAME} - - # trigger ebs redeploy - - aws elasticbeanstalk update-environment --region us-east-1 --application-name invoicer201707071231 --environment-id e-h4vyur8nup --version-label deployer-api diff --git a/create_ebs_env.sh b/create_ebs_env.sh index 9d2fcb1c..0b1c5fd2 100755 --- a/create_ebs_env.sh +++ b/create_ebs_env.sh @@ -10,7 +10,7 @@ fail() { exit 1 } -export AWS_DEFAULT_REGION=us-west-2 +export AWS_DEFAULT_REGION=us-east-1 datetag=$(date +%Y%m%d%H%M) identifier=deployer$datetag @@ -30,7 +30,8 @@ aws elasticbeanstalk create-application \ echo "ElasticBeanTalk application created" # Get the name of the latest Docker solution stack -dockerstack="$(aws elasticbeanstalk list-available-solution-stacks | jq -r '.SolutionStacks[]' | grep -i 'Amazon Linux' | grep -i docker | grep -i v2.14.2 | grep -i 18.09.9)" +dockerstack="$(aws elasticbeanstalk list-available-solution-stacks | \ + jq -r '.SolutionStacks[]' | grep -P '.+Amazon Linux.+Docker.+' | head -1)" # Create the EB API environment aws elasticbeanstalk create-environment \ diff --git a/main.go b/main.go index a93f72c1..2108e19b 100644 --- a/main.go +++ b/main.go @@ -47,7 +47,7 @@ func (dplr *deployer) postWebHook(w http.ResponseWriter, r *http.Request) { // This application only accepts containers placed under the // `securingdevops` dockerhub organization. If this wasn't an // example application, we would make the namespacing configurable - if hookData.Repository.Namespace != `rogerfdias` { + if hookData.Repository.Namespace != `securingdevops` { httpError(w, http.StatusUnauthorized, "Invalid namespace") return } @@ -86,12 +86,12 @@ func testAndDeploy() { func deploy() { svc := elasticbeanstalk.New( session.New(), - &aws.Config{Region: aws.String("us-west-2")}, + &aws.Config{Region: aws.String("us-east-1")}, ) params := &elasticbeanstalk.UpdateEnvironmentInput{ - ApplicationName: aws.String("invoices"), - EnvironmentId: aws.String("e-cprdgsjpvz"), + ApplicationName: aws.String("invoicer201707071231"), + EnvironmentId: aws.String("e-y8ubep55hp"), VersionLabel: aws.String("invoicer-api"), } resp, err := svc.UpdateEnvironment(params) @@ -115,10 +115,10 @@ func getHeartbeat(w http.ResponseWriter, r *http.Request) { // handleVersion returns the current version of the API func getVersion(w http.ResponseWriter, r *http.Request) { w.Write([]byte(fmt.Sprintf(`{ -"source": "https://github.com/rogerfdias/deployer", +"source": "https://github.com/Securing-Devops/deployer", "version": "%s", "commit": "%s", -"build": "https://circleci.com/gh/rogerfdias/deployer/" +"build": "https://circleci.com/gh/Securing-Devops/deployer/" }`, version, commit))) } From 04fc10ccd41a842b63a133cc657f66cc080ecf34 Mon Sep 17 00:00:00 2001 From: rogerfdias Date: Tue, 31 Mar 2020 00:06:24 -0300 Subject: [PATCH 14/17] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ac17a13c..01913ee5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,7 +21,7 @@ jobs: - run: mkdir -p "${GOPATH_BASE}" - run: mkdir -p "${GOPATH_HEAD}/bin" - run: go get github.com/govend/govend - - run: sudo apt-get -y install jq postgresql-client awscli + - run: sudo apt-get -y install awscli - run: name: Build application container From c133019a675f47c33d80e2b289b69e6b38ff93ef Mon Sep 17 00:00:00 2001 From: rogerfdias Date: Tue, 31 Mar 2020 00:07:22 -0300 Subject: [PATCH 15/17] Update app-version-deployer.json --- app-version-deployer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-version-deployer.json b/app-version-deployer.json index b4e5d977..05561590 100644 --- a/app-version-deployer.json +++ b/app-version-deployer.json @@ -1,7 +1,7 @@ { "AWSEBDockerrunVersion": "1", "Image": { - "Name": "docker.io/Securing-DevOps/deployer", + "Name": "docker.io/securingdevops/deployer", "Update": "true" }, "Ports": [ From 14d9bcde082e4d5e499f2bab108462a8d7b0b430 Mon Sep 17 00:00:00 2001 From: rogerfdias Date: Tue, 31 Mar 2020 00:09:17 -0300 Subject: [PATCH 16/17] Update create_ebs_env.sh --- create_ebs_env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_ebs_env.sh b/create_ebs_env.sh index 0b1c5fd2..279a32df 100755 --- a/create_ebs_env.sh +++ b/create_ebs_env.sh @@ -3,7 +3,7 @@ # requires: pip install awscli awsebcli # uncomment to debug -set -x +#set -x fail() { echo configuration failed From c8753821dc81cca4fcba7033bd8b8d473cc246b8 Mon Sep 17 00:00:00 2001 From: rogerfdias Date: Tue, 31 Mar 2020 00:10:26 -0300 Subject: [PATCH 17/17] Update main.go --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 2108e19b..c7bea290 100644 --- a/main.go +++ b/main.go @@ -115,10 +115,10 @@ func getHeartbeat(w http.ResponseWriter, r *http.Request) { // handleVersion returns the current version of the API func getVersion(w http.ResponseWriter, r *http.Request) { w.Write([]byte(fmt.Sprintf(`{ -"source": "https://github.com/Securing-Devops/deployer", +"source": "https://github.com/Securing-DevOps/deployer", "version": "%s", "commit": "%s", -"build": "https://circleci.com/gh/Securing-Devops/deployer/" +"build": "https://circleci.com/gh/Securing-DevOps/deployer/" }`, version, commit))) }