Skip to content

Instantly share code, notes, and snippets.

@omenking
Created June 11, 2022 16:33
Show Gist options
  • Save omenking/342eabb9a5578213a310724b2f8a2f9e to your computer and use it in GitHub Desktop.
Save omenking/342eabb9a5578213a310724b2f8a2f9e to your computer and use it in GitHub Desktop.
[Container] 2022/06/11 16:28:36 Waiting for agent ping
[Container] 2022/06/11 16:28:37 Waiting for DOWNLOAD_SOURCE
[Container] 2022/06/11 16:28:38 Phase is DOWNLOAD_SOURCE
[Container] 2022/06/11 16:28:38 CODEBUILD_SRC_DIR=/codebuild/output/src926578000/src
[Container] 2022/06/11 16:28:38 YAML location is /codebuild/output/src926578000/src/copilot/pipelines/fargate-pilot-main/buildspec.yml
[Container] 2022/06/11 16:28:38 Processing environment variables
[Container] 2022/06/11 16:28:38 Selecting 'docker' runtime version '19' based on manual selections...
[Container] 2022/06/11 16:28:38 Selecting 'ruby' runtime version '2.6' based on manual selections...
[Container] 2022/06/11 16:28:38 Running command echo "Specifying docker version in buildspec is deprecated. Using docker $DOCKER_VERSION"
Specifying docker version in buildspec is deprecated. Using docker 20.10.15
[Container] 2022/06/11 16:28:38 Running command echo "Installing Ruby version 2.6 ..."
Installing Ruby version 2.6 ...
[Container] 2022/06/11 16:28:38 Running command rbenv global $RUBY_26_VERSION
[Container] 2022/06/11 16:28:41 Moving to directory /codebuild/output/src926578000/src
[Container] 2022/06/11 16:28:41 Configuring ssm agent with target id: codebuild:67dc76fd-9583-4434-a779-b83c3b8ae020
[Container] 2022/06/11 16:28:41 Successfully updated ssm agent configuration
[Container] 2022/06/11 16:28:41 Registering with agent
[Container] 2022/06/11 16:28:41 Phases found in YAML: 3
[Container] 2022/06/11 16:28:41 INSTALL: 6 commands
[Container] 2022/06/11 16:28:41 BUILD: 5 commands
[Container] 2022/06/11 16:28:41 POST_BUILD: 17 commands
[Container] 2022/06/11 16:28:41 Phase complete: DOWNLOAD_SOURCE State: SUCCEEDED
[Container] 2022/06/11 16:28:41 Phase context status code: Message:
[Container] 2022/06/11 16:28:41 Entering phase INSTALL
[Container] 2022/06/11 16:28:41 Running command echo "cd into $CODEBUILD_SRC_DIR"
cd into /codebuild/output/src926578000/src
[Container] 2022/06/11 16:28:41 Running command cd $CODEBUILD_SRC_DIR
[Container] 2022/06/11 16:28:41 Running command wget -q https://ecs-cli-v2-release.s3.amazonaws.com/copilot-linux-v1.18.1
[Container] 2022/06/11 16:28:44 Running command mv ./copilot-linux-v1.18.1 ./copilot-linux
[Container] 2022/06/11 16:28:44 Running command chmod +x ./copilot-linux
[Container] 2022/06/11 16:28:44 Running command aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 982383527471.dkr.ecr.us-east-1.amazonaws.com
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
[Container] 2022/06/11 16:28:57 Phase complete: INSTALL State: SUCCEEDED
[Container] 2022/06/11 16:28:57 Phase context status code: Message:
[Container] 2022/06/11 16:28:57 Entering phase PRE_BUILD
[Container] 2022/06/11 16:28:57 Phase complete: PRE_BUILD State: SUCCEEDED
[Container] 2022/06/11 16:28:57 Phase context status code: Message:
[Container] 2022/06/11 16:28:57 Entering phase BUILD
[Container] 2022/06/11 16:28:57 Running command aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 982383527471.dkr.ecr.us-east-1.amazonaws.com
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
[Container] 2022/06/11 16:28:57 Running command echo Build started on `date`
Build started on Sat Jun 11 16:28:57 UTC 2022
[Container] 2022/06/11 16:28:57 Running command echo Building the Docker image...
Building the Docker image...
[Container] 2022/06/11 16:28:57 Running command docker build -t rails-example .
Sending build context to Docker daemon 41.2MB
Step 1/11 : FROM 982383527471.dkr.ecr.us-east-1.amazonaws.com/ruby-2-7-6:latest
latest: Pulling from ruby-2-7-6
e756f3fdd6a3: Pulling fs layer
bf168a674899: Pulling fs layer
e604223835cc: Pulling fs layer
6d5c91c4cd86: Pulling fs layer
2cc8d8854262: Pulling fs layer
93489d0e74dc: Pulling fs layer
d26587c6ddb2: Pulling fs layer
6a0e5f1377ef: Pulling fs layer
2cc8d8854262: Waiting
6d5c91c4cd86: Waiting
93489d0e74dc: Waiting
d26587c6ddb2: Waiting
6a0e5f1377ef: Waiting
bf168a674899: Verifying Checksum
bf168a674899: Download complete
e604223835cc: Verifying Checksum
e604223835cc: Download complete
e756f3fdd6a3: Verifying Checksum
e756f3fdd6a3: Download complete
93489d0e74dc: Verifying Checksum
93489d0e74dc: Download complete
6d5c91c4cd86: Verifying Checksum
6d5c91c4cd86: Download complete
6a0e5f1377ef: Verifying Checksum
6a0e5f1377ef: Download complete
d26587c6ddb2: Verifying Checksum
d26587c6ddb2: Download complete
e756f3fdd6a3: Pull complete
bf168a674899: Pull complete
e604223835cc: Pull complete
2cc8d8854262: Verifying Checksum
2cc8d8854262: Download complete
6d5c91c4cd86: Pull complete
2cc8d8854262: Pull complete
93489d0e74dc: Pull complete
d26587c6ddb2: Pull complete
6a0e5f1377ef: Pull complete
Digest: sha256:67a28a9ca86c738681b61fd8f2bf8717b00cbbff4dad519ef094746797f1ad83
Status: Downloaded newer image for 982383527471.dkr.ecr.us-east-1.amazonaws.com/ruby-2-7-6:latest
---> f5dd208fb679
Step 2/11 : RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
---> Running in f96d7c011585
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
javascript-common libc-ares2 libjs-highlight.js libnode72 libuv1 nodejs-doc
postgresql-client-13 postgresql-client-common
Suggested packages:
apache2 | lighttpd | httpd npm postgresql-13 postgresql-doc-13
The following NEW packages will be installed:
javascript-common libc-ares2 libjs-highlight.js libnode72 libuv1 nodejs
nodejs-doc postgresql-client postgresql-client-13 postgresql-client-common
0 upgraded, 10 newly installed, 0 to remove and 1 not upgraded.
Need to get 13.3 MB of archives.
After this operation, 57.7 MB of additional disk space will be used.
Get:1 http://security.debian.org/debian-security bullseye-security/main amd64 postgresql-client-13 amd64 13.7-0+deb11u1 [1518 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 javascript-common all 11+nmu1 [6260 B]
Get:3 http://deb.debian.org/debian bullseye/main amd64 libc-ares2 amd64 1.17.1-1+deb11u1 [102 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 libjs-highlight.js all 9.18.5+dfsg1-1 [397 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 libuv1 amd64 1.40.0-2 [132 kB]
Get:6 http://deb.debian.org/debian bullseye/main amd64 libnode72 amd64 12.22.5~dfsg-2~11u1 [8333 kB]
Get:7 http://deb.debian.org/debian bullseye/main amd64 nodejs amd64 12.22.5~dfsg-2~11u1 [147 kB]
Get:8 http://deb.debian.org/debian bullseye/main amd64 nodejs-doc all 12.22.5~dfsg-2~11u1 [2545 kB]
Get:9 http://deb.debian.org/debian bullseye/main amd64 postgresql-client-common all 225 [89.3 kB]
Get:10 http://deb.debian.org/debian bullseye/main amd64 postgresql-client all 13+225 [64.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 13.3 MB in 0s (125 MB/s)
Selecting previously unselected package javascript-common.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 22790 files and directories currently installed.)
Preparing to unpack .../0-javascript-common_11+nmu1_all.deb ...
Unpacking javascript-common (11+nmu1) ...
Selecting previously unselected package libc-ares2:amd64.
Preparing to unpack .../1-libc-ares2_1.17.1-1+deb11u1_amd64.deb ...
Unpacking libc-ares2:amd64 (1.17.1-1+deb11u1) ...
Selecting previously unselected package libjs-highlight.js.
Preparing to unpack .../2-libjs-highlight.js_9.18.5+dfsg1-1_all.deb ...
Unpacking libjs-highlight.js (9.18.5+dfsg1-1) ...
Selecting previously unselected package libuv1:amd64.
Preparing to unpack .../3-libuv1_1.40.0-2_amd64.deb ...
Unpacking libuv1:amd64 (1.40.0-2) ...
Selecting previously unselected package libnode72:amd64.
Preparing to unpack .../4-libnode72_12.22.5~dfsg-2~11u1_amd64.deb ...
Unpacking libnode72:amd64 (12.22.5~dfsg-2~11u1) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../5-nodejs_12.22.5~dfsg-2~11u1_amd64.deb ...
Unpacking nodejs (12.22.5~dfsg-2~11u1) ...
Selecting previously unselected package nodejs-doc.
Preparing to unpack .../6-nodejs-doc_12.22.5~dfsg-2~11u1_all.deb ...
Unpacking nodejs-doc (12.22.5~dfsg-2~11u1) ...
Selecting previously unselected package postgresql-client-common.
Preparing to unpack .../7-postgresql-client-common_225_all.deb ...
Unpacking postgresql-client-common (225) ...
Selecting previously unselected package postgresql-client-13.
Preparing to unpack .../8-postgresql-client-13_13.7-0+deb11u1_amd64.deb ...
Unpacking postgresql-client-13 (13.7-0+deb11u1) ...
Selecting previously unselected package postgresql-client.
Preparing to unpack .../9-postgresql-client_13+225_all.deb ...
Unpacking postgresql-client (13+225) ...
Setting up postgresql-client-common (225) ...
Setting up javascript-common (11+nmu1) ...
Setting up libc-ares2:amd64 (1.17.1-1+deb11u1) ...
Setting up postgresql-client-13 (13.7-0+deb11u1) ...
update-alternatives: using /usr/share/postgresql/13/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
Setting up libuv1:amd64 (1.40.0-2) ...
Setting up libjs-highlight.js (9.18.5+dfsg1-1) ...
Setting up postgresql-client (13+225) ...
Setting up libnode72:amd64 (12.22.5~dfsg-2~11u1) ...
Setting up nodejs-doc (12.22.5~dfsg-2~11u1) ...
Setting up nodejs (12.22.5~dfsg-2~11u1) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
Processing triggers for libc-bin (2.31-13+deb11u3) ...
Removing intermediate container f96d7c011585
---> ae8c7c9884dd
Step 3/11 : COPY . /app
---> 401ad540575c
Step 4/11 : WORKDIR /app
---> Running in ee5e118ec78d
Removing intermediate container ee5e118ec78d
---> d57f11897fd6
Step 5/11 : ENV SECRET_KEY_BASE 5c212d4f447bc55087ee0a2a7291c05f
---> Running in fbd6e16f816d
Removing intermediate container fbd6e16f816d
---> ae19a7d533a5
Step 6/11 : ENV RAILS_ENV production
---> Running in d6410c60b132
Removing intermediate container d6410c60b132
---> 0619acff8117
Step 7/11 : RUN bundle config --global frozen 1
---> Running in d27b527a8754
Removing intermediate container d27b527a8754
---> 3a506876344f
Step 8/11 : RUN bundle install --without development test
---> Running in e28a87170c0b
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set without 'development test'`, and stop using this flag
Warning: the running version of Bundler (2.1.4) is older than the version that created the lockfile (2.3.14). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.3.14`.
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby, x86_64-linux but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/..........
Fetching rake 13.0.6
Installing rake 13.0.6
Fetching concurrent-ruby 1.1.10
Installing concurrent-ruby 1.1.10
Fetching i18n 1.10.0
Installing i18n 1.10.0
Fetching minitest 5.15.0
Installing minitest 5.15.0
Fetching tzinfo 2.0.4
Installing tzinfo 2.0.4
Fetching activesupport 7.0.3
Installing activesupport 7.0.3
Fetching builder 3.2.4
Installing builder 3.2.4
Fetching erubi 1.10.0
Installing erubi 1.10.0
Fetching racc 1.6.0
Installing racc 1.6.0 with native extensions
Fetching nokogiri 1.13.6 (x86_64-linux)
Installing nokogiri 1.13.6 (x86_64-linux)
Fetching rails-dom-testing 2.0.3
Installing rails-dom-testing 2.0.3
Fetching crass 1.0.6
Installing crass 1.0.6
Fetching loofah 2.18.0
Installing loofah 2.18.0
Fetching rails-html-sanitizer 1.4.2
Installing rails-html-sanitizer 1.4.2
Fetching actionview 7.0.3
Installing actionview 7.0.3
Fetching rack 2.2.3
Installing rack 2.2.3
Fetching rack-test 1.1.0
Installing rack-test 1.1.0
Fetching actionpack 7.0.3
Installing actionpack 7.0.3
Fetching nio4r 2.5.8
Installing nio4r 2.5.8 with native extensions
Fetching websocket-extensions 0.1.5
Installing websocket-extensions 0.1.5
Fetching websocket-driver 0.7.5
Installing websocket-driver 0.7.5 with native extensions
Fetching actioncable 7.0.3
Installing actioncable 7.0.3
Fetching globalid 1.0.0
Installing globalid 1.0.0
Fetching activejob 7.0.3
Installing activejob 7.0.3
Fetching activemodel 7.0.3
Installing activemodel 7.0.3
Fetching activerecord 7.0.3
Installing activerecord 7.0.3
Fetching marcel 1.0.2
Installing marcel 1.0.2
Fetching mini_mime 1.1.2
Installing mini_mime 1.1.2
Fetching activestorage 7.0.3
Installing activestorage 7.0.3
Fetching mail 2.7.1
Installing mail 2.7.1
Fetching digest 3.1.0
Installing digest 3.1.0 with native extensions
Fetching timeout 0.3.0
Installing timeout 0.3.0
Fetching net-protocol 0.1.3
Installing net-protocol 0.1.3
Fetching strscan 3.0.3
Installing strscan 3.0.3 with native extensions
Fetching net-imap 0.2.3
Installing net-imap 0.2.3
Fetching net-pop 0.1.1
Installing net-pop 0.1.1
Fetching net-smtp 0.3.1
Installing net-smtp 0.3.1
Fetching actionmailbox 7.0.3
Installing actionmailbox 7.0.3
Fetching actionmailer 7.0.3
Installing actionmailer 7.0.3
Fetching actiontext 7.0.3
Installing actiontext 7.0.3
Using bundler 2.1.4
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching thor 1.2.1
Installing thor 1.2.1
Fetching zeitwerk 2.5.4
Installing zeitwerk 2.5.4
Fetching railties 7.0.3
Installing railties 7.0.3
Fetching importmap-rails 1.1.0
Installing importmap-rails 1.1.0
Fetching jbuilder 2.11.5
Installing jbuilder 2.11.5
Fetching puma 5.6.4
Installing puma 5.6.4 with native extensions
Fetching rails 7.0.3
Installing rails 7.0.3
Fetching sprockets 4.0.3
Installing sprockets 4.0.3
Fetching sprockets-rails 3.4.2
Installing sprockets-rails 3.4.2
Fetching sqlite3 1.4.2
Installing sqlite3 1.4.2 with native extensions
Fetching stimulus-rails 1.0.4
Installing stimulus-rails 1.0.4
Fetching turbo-rails 1.1.1
Installing turbo-rails 1.1.1
Bundle complete! 14 Gemfile dependencies, 54 gems now installed.
Gems in the groups development and test were not installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Removing intermediate container e28a87170c0b
---> e32eeaa91ffd
Step 9/11 : RUN echo "Hello Mars!"
---> Running in f6e52585f8b8
Hello Mars!
Removing intermediate container f6e52585f8b8
---> b2f2e6141799
Step 10/11 : ENTRYPOINT ["rails", "server", "-b", "0.0.0.0"]
---> Running in 3f7f30d1921e
Removing intermediate container 3f7f30d1921e
---> 412c4fba36a3
Step 11/11 : EXPOSE 3000
---> Running in 221e586afc12
Removing intermediate container 221e586afc12
---> bbb16c33defe
Successfully built bbb16c33defe
Successfully tagged rails-example:latest
[Container] 2022/06/11 16:29:40 Running command docker tag rails-example:latest 982383527471.dkr.ecr.us-east-1.amazonaws.com/rails-example:latest
[Container] 2022/06/11 16:29:40 Phase complete: BUILD State: SUCCEEDED
[Container] 2022/06/11 16:29:40 Phase context status code: Message:
[Container] 2022/06/11 16:29:40 Entering phase POST_BUILD
[Container] 2022/06/11 16:29:40 Running command echo Build completed on `date`
Build completed on Sat Jun 11 16:29:40 UTC 2022
[Container] 2022/06/11 16:29:40 Running command echo Pushing the Docker image..
Pushing the Docker image..
[Container] 2022/06/11 16:29:40 Running command docker push 982383527471.dkr.ecr.us-east-1.amazonaws.com/rails-example:latest
The push refers to repository [982383527471.dkr.ecr.us-east-1.amazonaws.com/rails-example]
59eeb8cc9448: Preparing
1cbe296d5e80: Preparing
5d28872d2dfb: Preparing
356920ee9fc9: Preparing
62d9acf5426e: Preparing
a363c65f93a9: Preparing
b029dfdd2407: Preparing
2fbabeba902e: Preparing
ee509ed6e976: Preparing
9177197c67d0: Preparing
7dbadf2b9bd8: Preparing
e7597c345c2e: Preparing
a363c65f93a9: Waiting
b029dfdd2407: Waiting
2fbabeba902e: Waiting
ee509ed6e976: Waiting
9177197c67d0: Waiting
7dbadf2b9bd8: Waiting
e7597c345c2e: Waiting
356920ee9fc9: Retrying in 5 seconds
59eeb8cc9448: Retrying in 5 seconds
5d28872d2dfb: Retrying in 5 seconds
1cbe296d5e80: Retrying in 5 seconds
62d9acf5426e: Retrying in 5 seconds
356920ee9fc9: Retrying in 4 seconds
59eeb8cc9448: Retrying in 4 seconds
5d28872d2dfb: Retrying in 4 seconds
1cbe296d5e80: Retrying in 4 seconds
62d9acf5426e: Retrying in 4 seconds
356920ee9fc9: Retrying in 3 seconds
59eeb8cc9448: Retrying in 3 seconds
1cbe296d5e80: Retrying in 3 seconds
5d28872d2dfb: Retrying in 3 seconds
62d9acf5426e: Retrying in 3 seconds
356920ee9fc9: Retrying in 2 seconds
59eeb8cc9448: Retrying in 2 seconds
1cbe296d5e80: Retrying in 2 seconds
5d28872d2dfb: Retrying in 2 seconds
62d9acf5426e: Retrying in 2 seconds
356920ee9fc9: Retrying in 1 second
59eeb8cc9448: Retrying in 1 second
5d28872d2dfb: Retrying in 1 second
1cbe296d5e80: Retrying in 1 second
62d9acf5426e: Retrying in 1 second
356920ee9fc9: Retrying in 10 seconds
5d28872d2dfb: Retrying in 10 seconds
1cbe296d5e80: Retrying in 10 seconds
59eeb8cc9448: Retrying in 10 seconds
62d9acf5426e: Retrying in 10 seconds
356920ee9fc9: Retrying in 9 seconds
5d28872d2dfb: Retrying in 9 seconds
1cbe296d5e80: Retrying in 9 seconds
59eeb8cc9448: Retrying in 9 seconds
62d9acf5426e: Retrying in 9 seconds
356920ee9fc9: Retrying in 8 seconds
5d28872d2dfb: Retrying in 8 seconds
1cbe296d5e80: Retrying in 8 seconds
59eeb8cc9448: Retrying in 8 seconds
62d9acf5426e: Retrying in 8 seconds
356920ee9fc9: Retrying in 7 seconds
5d28872d2dfb: Retrying in 7 seconds
1cbe296d5e80: Retrying in 7 seconds
59eeb8cc9448: Retrying in 7 seconds
62d9acf5426e: Retrying in 7 seconds
356920ee9fc9: Retrying in 6 seconds
5d28872d2dfb: Retrying in 6 seconds
1cbe296d5e80: Retrying in 6 seconds
59eeb8cc9448: Retrying in 6 seconds
62d9acf5426e: Retrying in 6 seconds
356920ee9fc9: Retrying in 5 seconds
5d28872d2dfb: Retrying in 5 seconds
1cbe296d5e80: Retrying in 5 seconds
59eeb8cc9448: Retrying in 5 seconds
62d9acf5426e: Retrying in 5 seconds
356920ee9fc9: Retrying in 4 seconds
5d28872d2dfb: Retrying in 4 seconds
1cbe296d5e80: Retrying in 4 seconds
59eeb8cc9448: Retrying in 4 seconds
62d9acf5426e: Retrying in 4 seconds
356920ee9fc9: Retrying in 3 seconds
5d28872d2dfb: Retrying in 3 seconds
1cbe296d5e80: Retrying in 3 seconds
59eeb8cc9448: Retrying in 3 seconds
62d9acf5426e: Retrying in 3 seconds
356920ee9fc9: Retrying in 2 seconds
5d28872d2dfb: Retrying in 2 seconds
1cbe296d5e80: Retrying in 2 seconds
59eeb8cc9448: Retrying in 2 seconds
62d9acf5426e: Retrying in 2 seconds
356920ee9fc9: Retrying in 1 second
5d28872d2dfb: Retrying in 1 second
1cbe296d5e80: Retrying in 1 second
59eeb8cc9448: Retrying in 1 second
62d9acf5426e: Retrying in 1 second
356920ee9fc9: Retrying in 15 seconds
5d28872d2dfb: Retrying in 15 seconds
1cbe296d5e80: Retrying in 15 seconds
59eeb8cc9448: Retrying in 15 seconds
62d9acf5426e: Retrying in 15 seconds
356920ee9fc9: Retrying in 14 seconds
5d28872d2dfb: Retrying in 14 seconds
1cbe296d5e80: Retrying in 14 seconds
59eeb8cc9448: Retrying in 14 seconds
62d9acf5426e: Retrying in 14 seconds
356920ee9fc9: Retrying in 13 seconds
5d28872d2dfb: Retrying in 13 seconds
1cbe296d5e80: Retrying in 13 seconds
59eeb8cc9448: Retrying in 13 seconds
62d9acf5426e: Retrying in 13 seconds
356920ee9fc9: Retrying in 12 seconds
5d28872d2dfb: Retrying in 12 seconds
1cbe296d5e80: Retrying in 12 seconds
59eeb8cc9448: Retrying in 12 seconds
62d9acf5426e: Retrying in 12 seconds
356920ee9fc9: Retrying in 11 seconds
5d28872d2dfb: Retrying in 11 seconds
1cbe296d5e80: Retrying in 11 seconds
59eeb8cc9448: Retrying in 11 seconds
62d9acf5426e: Retrying in 11 seconds
356920ee9fc9: Retrying in 10 seconds
5d28872d2dfb: Retrying in 10 seconds
1cbe296d5e80: Retrying in 10 seconds
59eeb8cc9448: Retrying in 10 seconds
62d9acf5426e: Retrying in 10 seconds
356920ee9fc9: Retrying in 9 seconds
5d28872d2dfb: Retrying in 9 seconds
1cbe296d5e80: Retrying in 9 seconds
59eeb8cc9448: Retrying in 9 seconds
62d9acf5426e: Retrying in 9 seconds
356920ee9fc9: Retrying in 8 seconds
5d28872d2dfb: Retrying in 8 seconds
1cbe296d5e80: Retrying in 8 seconds
59eeb8cc9448: Retrying in 8 seconds
62d9acf5426e: Retrying in 8 seconds
356920ee9fc9: Retrying in 7 seconds
5d28872d2dfb: Retrying in 7 seconds
1cbe296d5e80: Retrying in 7 seconds
59eeb8cc9448: Retrying in 7 seconds
62d9acf5426e: Retrying in 7 seconds
356920ee9fc9: Retrying in 6 seconds
5d28872d2dfb: Retrying in 6 seconds
1cbe296d5e80: Retrying in 6 seconds
59eeb8cc9448: Retrying in 6 seconds
62d9acf5426e: Retrying in 6 seconds
356920ee9fc9: Retrying in 5 seconds
5d28872d2dfb: Retrying in 5 seconds
1cbe296d5e80: Retrying in 5 seconds
59eeb8cc9448: Retrying in 5 seconds
62d9acf5426e: Retrying in 5 seconds
356920ee9fc9: Retrying in 4 seconds
5d28872d2dfb: Retrying in 4 seconds
1cbe296d5e80: Retrying in 4 seconds
59eeb8cc9448: Retrying in 4 seconds
62d9acf5426e: Retrying in 4 seconds
356920ee9fc9: Retrying in 3 seconds
5d28872d2dfb: Retrying in 3 seconds
1cbe296d5e80: Retrying in 3 seconds
59eeb8cc9448: Retrying in 3 seconds
62d9acf5426e: Retrying in 3 seconds
356920ee9fc9: Retrying in 2 seconds
5d28872d2dfb: Retrying in 2 seconds
1cbe296d5e80: Retrying in 2 seconds
59eeb8cc9448: Retrying in 2 seconds
62d9acf5426e: Retrying in 2 seconds
356920ee9fc9: Retrying in 1 second
5d28872d2dfb: Retrying in 1 second
1cbe296d5e80: Retrying in 1 second
59eeb8cc9448: Retrying in 1 second
62d9acf5426e: Retrying in 1 second
356920ee9fc9: Retrying in 20 seconds
5d28872d2dfb: Retrying in 20 seconds
1cbe296d5e80: Retrying in 20 seconds
59eeb8cc9448: Retrying in 20 seconds
62d9acf5426e: Retrying in 20 seconds
356920ee9fc9: Retrying in 19 seconds
5d28872d2dfb: Retrying in 19 seconds
59eeb8cc9448: Retrying in 19 seconds
1cbe296d5e80: Retrying in 19 seconds
62d9acf5426e: Retrying in 19 seconds
356920ee9fc9: Retrying in 18 seconds
5d28872d2dfb: Retrying in 18 seconds
59eeb8cc9448: Retrying in 18 seconds
1cbe296d5e80: Retrying in 18 seconds
62d9acf5426e: Retrying in 18 seconds
356920ee9fc9: Retrying in 17 seconds
5d28872d2dfb: Retrying in 17 seconds
1cbe296d5e80: Retrying in 17 seconds
59eeb8cc9448: Retrying in 17 seconds
62d9acf5426e: Retrying in 17 seconds
356920ee9fc9: Retrying in 16 seconds
5d28872d2dfb: Retrying in 16 seconds
59eeb8cc9448: Retrying in 16 seconds
1cbe296d5e80: Retrying in 16 seconds
62d9acf5426e: Retrying in 16 seconds
356920ee9fc9: Retrying in 15 seconds
5d28872d2dfb: Retrying in 15 seconds
1cbe296d5e80: Retrying in 15 seconds
59eeb8cc9448: Retrying in 15 seconds
62d9acf5426e: Retrying in 15 seconds
356920ee9fc9: Retrying in 14 seconds
5d28872d2dfb: Retrying in 14 seconds
1cbe296d5e80: Retrying in 14 seconds
59eeb8cc9448: Retrying in 14 seconds
62d9acf5426e: Retrying in 14 seconds
356920ee9fc9: Retrying in 13 seconds
5d28872d2dfb: Retrying in 13 seconds
59eeb8cc9448: Retrying in 13 seconds
1cbe296d5e80: Retrying in 13 seconds
62d9acf5426e: Retrying in 13 seconds
356920ee9fc9: Retrying in 12 seconds
5d28872d2dfb: Retrying in 12 seconds
1cbe296d5e80: Retrying in 12 seconds
59eeb8cc9448: Retrying in 12 seconds
62d9acf5426e: Retrying in 12 seconds
356920ee9fc9: Retrying in 11 seconds
5d28872d2dfb: Retrying in 11 seconds
1cbe296d5e80: Retrying in 11 seconds
59eeb8cc9448: Retrying in 11 seconds
62d9acf5426e: Retrying in 11 seconds
356920ee9fc9: Retrying in 10 seconds
5d28872d2dfb: Retrying in 10 seconds
1cbe296d5e80: Retrying in 10 seconds
59eeb8cc9448: Retrying in 10 seconds
62d9acf5426e: Retrying in 10 seconds
356920ee9fc9: Retrying in 9 seconds
5d28872d2dfb: Retrying in 9 seconds
1cbe296d5e80: Retrying in 9 seconds
59eeb8cc9448: Retrying in 9 seconds
62d9acf5426e: Retrying in 9 seconds
356920ee9fc9: Retrying in 8 seconds
5d28872d2dfb: Retrying in 8 seconds
1cbe296d5e80: Retrying in 8 seconds
59eeb8cc9448: Retrying in 8 seconds
62d9acf5426e: Retrying in 8 seconds
356920ee9fc9: Retrying in 7 seconds
5d28872d2dfb: Retrying in 7 seconds
1cbe296d5e80: Retrying in 7 seconds
59eeb8cc9448: Retrying in 7 seconds
62d9acf5426e: Retrying in 7 seconds
356920ee9fc9: Retrying in 6 seconds
5d28872d2dfb: Retrying in 6 seconds
1cbe296d5e80: Retrying in 6 seconds
59eeb8cc9448: Retrying in 6 seconds
62d9acf5426e: Retrying in 6 seconds
356920ee9fc9: Retrying in 5 seconds
5d28872d2dfb: Retrying in 5 seconds
1cbe296d5e80: Retrying in 5 seconds
59eeb8cc9448: Retrying in 5 seconds
62d9acf5426e: Retrying in 5 seconds
356920ee9fc9: Retrying in 4 seconds
5d28872d2dfb: Retrying in 4 seconds
1cbe296d5e80: Retrying in 4 seconds
59eeb8cc9448: Retrying in 4 seconds
62d9acf5426e: Retrying in 4 seconds
356920ee9fc9: Retrying in 3 seconds
5d28872d2dfb: Retrying in 3 seconds
59eeb8cc9448: Retrying in 3 seconds
1cbe296d5e80: Retrying in 3 seconds
62d9acf5426e: Retrying in 3 seconds
356920ee9fc9: Retrying in 2 seconds
5d28872d2dfb: Retrying in 2 seconds
59eeb8cc9448: Retrying in 2 seconds
1cbe296d5e80: Retrying in 2 seconds
62d9acf5426e: Retrying in 2 seconds
356920ee9fc9: Retrying in 1 second
5d28872d2dfb: Retrying in 1 second
1cbe296d5e80: Retrying in 1 second
59eeb8cc9448: Retrying in 1 second
62d9acf5426e: Retrying in 1 second
EOF
[Container] 2022/06/11 16:30:30 Command did not exit successfully docker push 982383527471.dkr.ecr.us-east-1.amazonaws.com/rails-example:latest exit status 1
[Container] 2022/06/11 16:30:30 Phase complete: POST_BUILD State: FAILED
[Container] 2022/06/11 16:30:30 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: docker push 982383527471.dkr.ecr.us-east-1.amazonaws.com/rails-example:latest. Reason: exit status 1
[Container] 2022/06/11 16:30:30 Expanding base directory path: .
[Container] 2022/06/11 16:30:30 Assembling file list
[Container] 2022/06/11 16:30:30 Expanding .
[Container] 2022/06/11 16:30:30 Expanding file paths for base directory .
[Container] 2022/06/11 16:30:30 Assembling file list
[Container] 2022/06/11 16:30:30 Expanding infrastructure/*
[Container] 2022/06/11 16:30:30 Phase complete: UPLOAD_ARTIFACTS State: FAILED
[Container] 2022/06/11 16:30:30 Phase context status code: CLIENT_ERROR Message: no matching artifact paths found
@omenking
Copy link
Author

        {
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": [
                "ecr:DescribeImageScanFindings",
                "ecr:GetLifecyclePolicyPreview",
                "ecr:GetDownloadUrlForLayer",
                "ecr:ListTagsForResource",
                "ecr:UploadLayerPart",
                "ecr:PutImage",
                "ecr:BatchGetImage",
                "ecr:CompleteLayerUpload",
                "ecr:DescribeImages",
                "ecr:InitiateLayerUpload",
                "ecr:BatchCheckLayerAvailability",
                "ecr:GetRepositoryPolicy",
                "ecr:GetLifecyclePolicy"
            ],
            "Resource": "*",
            "Condition": {
                "StringEquals": {
                    "ecr:ResourceTag/copilot-application": "rails-example"
                }
            }
        },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment