Giter Site home page Giter Site logo

Comments (9)

hawflau avatar hawflau commented on July 2, 2024

Hey @danielbojczuk-jumbo thanks for raising the issue.

I couldn't reproduce the issue on my own. Can you help clarify the followings:

  • Did you also use the local docker image in the GH Action Workflow?
  • Could you share your GH Action Workflow definition?

from aws-sam-cli.

danielbojczuk-jumbo avatar danielbojczuk-jumbo commented on July 2, 2024

Hi, thanks in advance for your help.

Yes, I'm creating the local image during the GH Action run.

I created this public repo with an example of the problem. It has a failed github action workflow:
https://github.com/danielbojczuk-jumbo/sam-cli-issue/

Thid is the full log from the failed action:

2024-05-13T12:21:37.9405229Z Current runner version: '2.316.1'
2024-05-13T12:21:37.9429330Z ##[group]Operating System
2024-05-13T12:21:37.9429944Z Ubuntu
2024-05-13T12:21:37.9430441Z 22.04.4
2024-05-13T12:21:37.9430770Z LTS
2024-05-13T12:21:37.9431176Z ##[endgroup]
2024-05-13T12:21:37.9431548Z ##[group]Runner Image
2024-05-13T12:21:37.9431984Z Image: ubuntu-22.04
2024-05-13T12:21:37.9432454Z Version: 20240422.1.0
2024-05-13T12:21:37.9433459Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240422.1/images/ubuntu/Ubuntu2204-Readme.md
2024-05-13T12:21:37.9434849Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240422.1
2024-05-13T12:21:37.9435814Z ##[endgroup]
2024-05-13T12:21:37.9436232Z ##[group]Runner Image Provisioner
2024-05-13T12:21:37.9436717Z 2.0.369.1
2024-05-13T12:21:37.9437108Z ##[endgroup]
2024-05-13T12:21:37.9437990Z ##[group]GITHUB_TOKEN Permissions
2024-05-13T12:21:37.9439639Z Contents: read
2024-05-13T12:21:37.9440037Z Metadata: read
2024-05-13T12:21:37.9440604Z ##[endgroup]
2024-05-13T12:21:37.9443657Z Secret source: Actions
2024-05-13T12:21:37.9444257Z Prepare workflow directory
2024-05-13T12:21:38.0059562Z Prepare all required actions
2024-05-13T12:21:38.0216107Z Getting action download info
2024-05-13T12:21:38.2009197Z Download action repository 'actions/checkout@v4' (SHA:0ad4b8fadaa221de15dcec353f45205ec38ea70b)
2024-05-13T12:21:38.6113726Z Download action repository 'hashicorp/setup-terraform@v2' (SHA:633666f66e0061ca3b725c73b2ec20cd13a8fdd1)
2024-05-13T12:21:38.9299880Z Download action repository 'aws-actions/configure-aws-credentials@v4' (SHA:e3dd6a429d7300a6a4c196c26e071d42e0343502)
2024-05-13T12:21:39.3139878Z Download action repository 'actions/setup-python@v5' (SHA:82c7e631bb3cdc910f68e0081d67478d79c6982d)
2024-05-13T12:21:39.8589926Z Complete job name: Testing
2024-05-13T12:21:39.9486102Z ##[group]Run actions/checkout@v4
2024-05-13T12:21:39.9486621Z with:
2024-05-13T12:21:39.9487102Z   repository: danielbojczuk-jumbo/sam-cli-issue
2024-05-13T12:21:39.9487763Z   token: ***
2024-05-13T12:21:39.9488135Z   ssh-strict: true
2024-05-13T12:21:39.9488561Z   ssh-user: git
2024-05-13T12:21:39.9488882Z   persist-credentials: true
2024-05-13T12:21:39.9489304Z   clean: true
2024-05-13T12:21:39.9489728Z   sparse-checkout-cone-mode: true
2024-05-13T12:21:39.9490155Z   fetch-depth: 1
2024-05-13T12:21:39.9490483Z   fetch-tags: false
2024-05-13T12:21:39.9490910Z   show-progress: true
2024-05-13T12:21:39.9491283Z   lfs: false
2024-05-13T12:21:39.9491663Z   submodules: false
2024-05-13T12:21:39.9491975Z   set-safe-directory: true
2024-05-13T12:21:39.9492355Z ##[endgroup]
2024-05-13T12:21:40.1234616Z Syncing repository: danielbojczuk-jumbo/sam-cli-issue
2024-05-13T12:21:40.1237566Z ##[group]Getting Git version info
2024-05-13T12:21:40.1238967Z Working directory is '/home/runner/work/sam-cli-issue/sam-cli-issue'
2024-05-13T12:21:40.1240655Z [command]/usr/bin/git version
2024-05-13T12:21:40.1241367Z git version 2.43.2
2024-05-13T12:21:40.1243986Z ##[endgroup]
2024-05-13T12:21:40.1258758Z Temporarily overriding HOME='/home/runner/work/_temp/2bbc69b2-8c0f-44a2-a2ca-026b7baf3b9e' before making global git config changes
2024-05-13T12:21:40.1260762Z Adding repository directory to the temporary git global config as a safe directory
2024-05-13T12:21:40.1262202Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/sam-cli-issue/sam-cli-issue
2024-05-13T12:21:40.1284280Z Deleting the contents of '/home/runner/work/sam-cli-issue/sam-cli-issue'
2024-05-13T12:21:40.1290043Z ##[group]Initializing the repository
2024-05-13T12:21:40.1294078Z [command]/usr/bin/git init /home/runner/work/sam-cli-issue/sam-cli-issue
2024-05-13T12:21:40.1353274Z hint: Using 'master' as the name for the initial branch. This default branch name
2024-05-13T12:21:40.1354874Z hint: is subject to change. To configure the initial branch name to use in all
2024-05-13T12:21:40.1356290Z hint: of your new repositories, which will suppress this warning, call:
2024-05-13T12:21:40.1357431Z hint: 
2024-05-13T12:21:40.1358568Z hint: 	git config --global init.defaultBranch <name>
2024-05-13T12:21:40.1359620Z hint: 
2024-05-13T12:21:40.1360767Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2024-05-13T12:21:40.1362267Z hint: 'development'. The just-created branch can be renamed via this command:
2024-05-13T12:21:40.1363264Z hint: 
2024-05-13T12:21:40.1364005Z hint: 	git branch -m <name>
2024-05-13T12:21:40.1367504Z Initialized empty Git repository in /home/runner/work/sam-cli-issue/sam-cli-issue/.git/
2024-05-13T12:21:40.1376589Z [command]/usr/bin/git remote add origin https://github.com/danielbojczuk-jumbo/sam-cli-issue
2024-05-13T12:21:40.1411877Z ##[endgroup]
2024-05-13T12:21:40.1412562Z ##[group]Disabling automatic garbage collection
2024-05-13T12:21:40.1414718Z [command]/usr/bin/git config --local gc.auto 0
2024-05-13T12:21:40.1442944Z ##[endgroup]
2024-05-13T12:21:40.1443716Z ##[group]Setting up auth
2024-05-13T12:21:40.1448231Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-05-13T12:21:40.1476489Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-05-13T12:21:40.1769410Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-05-13T12:21:40.1797232Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-05-13T12:21:40.2030306Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2024-05-13T12:21:40.2112682Z ##[endgroup]
2024-05-13T12:21:40.2114938Z ##[group]Fetching the repository
2024-05-13T12:21:40.2122987Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +5609d027923e3c9492df800cecc252ce2385e895:refs/remotes/origin/main
2024-05-13T12:21:40.4375414Z From https://github.com/danielbojczuk-jumbo/sam-cli-issue
2024-05-13T12:21:40.4376596Z  * [new ref]         5609d027923e3c9492df800cecc252ce2385e895 -> origin/main
2024-05-13T12:21:40.4399820Z ##[endgroup]
2024-05-13T12:21:40.4400635Z ##[group]Determining the checkout info
2024-05-13T12:21:40.4401776Z ##[endgroup]
2024-05-13T12:21:40.4406130Z [command]/usr/bin/git sparse-checkout disable
2024-05-13T12:21:40.4446400Z [command]/usr/bin/git config --local --unset-all extensions.worktreeConfig
2024-05-13T12:21:40.4472039Z ##[group]Checking out the ref
2024-05-13T12:21:40.4475370Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2024-05-13T12:21:40.4520441Z Switched to a new branch 'main'
2024-05-13T12:21:40.4521678Z branch 'main' set up to track 'origin/main'.
2024-05-13T12:21:40.4526748Z ##[endgroup]
2024-05-13T12:21:40.4559823Z [command]/usr/bin/git log -1 --format='%H'
2024-05-13T12:21:40.4581870Z '5609d027923e3c9492df800cecc252ce2385e895'
2024-05-13T12:21:40.4872342Z ##[group]Run hashicorp/setup-terraform@v2
2024-05-13T12:21:40.4872929Z with:
2024-05-13T12:21:40.4873237Z   terraform_version: 1.8.3
2024-05-13T12:21:40.4873686Z   cli_config_credentials_hostname: app.terraform.io
2024-05-13T12:21:40.4874249Z   terraform_wrapper: true
2024-05-13T12:21:40.4874610Z ##[endgroup]
2024-05-13T12:21:41.3619269Z [command]/usr/bin/unzip -o -q /home/runner/work/_temp/ad462eb5-62a9-4031-9b41-cd6b6d613289
2024-05-13T12:21:42.0352969Z ##[group]Run aws-actions/configure-aws-credentials@v4
2024-05-13T12:21:42.0353425Z with:
2024-05-13T12:21:42.0353844Z   role-to-assume: ***
2024-05-13T12:21:42.0354118Z   aws-region: eu-west-1
2024-05-13T12:21:42.0354409Z   audience: sts.amazonaws.com
2024-05-13T12:21:42.0354701Z env:
2024-05-13T12:21:42.0355090Z   TERRAFORM_CLI_PATH: /home/runner/work/_temp/dd773752-88df-445f-af13-f11534fe0306
2024-05-13T12:21:42.0355580Z ##[endgroup]
2024-05-13T12:21:42.3369146Z Assuming role with OIDC
2024-05-13T12:21:42.7151891Z Authenticated as assumedRoleId AROAZUSEMQH5FS6XWYC23:GitHubActions
2024-05-13T12:21:42.8295167Z ##[group]Run actions/setup-python@v5
2024-05-13T12:21:42.8295543Z with:
2024-05-13T12:21:42.8295789Z   python-version: 3.12.3
2024-05-13T12:21:42.8296086Z   check-latest: false
2024-05-13T12:21:42.8296511Z   token: ***
2024-05-13T12:21:42.8296773Z   update-environment: true
2024-05-13T12:21:42.8297081Z   allow-prereleases: false
2024-05-13T12:21:42.8297367Z env:
2024-05-13T12:21:42.8297778Z   TERRAFORM_CLI_PATH: /home/runner/work/_temp/dd773752-88df-445f-af13-f11534fe0306
2024-05-13T12:21:42.8298311Z   AWS_DEFAULT_REGION: eu-west-1
2024-05-13T12:21:42.8298627Z   AWS_REGION: eu-west-1
2024-05-13T12:21:42.8298967Z   AWS_ACCESS_KEY_ID: ***
2024-05-13T12:21:42.8299400Z   AWS_SECRET_ACCESS_KEY: ***
2024-05-13T12:21:42.8305397Z   AWS_SESSION_TOKEN: ***
2024-05-13T12:21:42.8305677Z ##[endgroup]
2024-05-13T12:21:42.9862741Z ##[group]Installed versions
2024-05-13T12:21:42.9901429Z Successfully set up CPython (3.12.3)
2024-05-13T12:21:42.9902492Z ##[endgroup]
2024-05-13T12:21:43.0040141Z ##[group]Run docker buildx build --platform linux/amd64 --tag sam-builder --progress plain .
2024-05-13T12:21:43.0041028Z �[36;1mdocker buildx build --platform linux/amd64 --tag sam-builder --progress plain .�[0m
2024-05-13T12:21:43.0041674Z �[36;1mcd $GITHUB_WORKSPACE/terraform && sam build�[0m
2024-05-13T12:21:43.0221656Z shell: /usr/bin/bash -e {0}
2024-05-13T12:21:43.0221990Z env:
2024-05-13T12:21:43.0222419Z   TERRAFORM_CLI_PATH: /home/runner/work/_temp/dd773752-88df-445f-af13-f11534fe0306
2024-05-13T12:21:43.0222960Z   AWS_DEFAULT_REGION: eu-west-1
2024-05-13T12:21:43.0223293Z   AWS_REGION: eu-west-1
2024-05-13T12:21:43.0223730Z   AWS_ACCESS_KEY_ID: ***
2024-05-13T12:21:43.0224198Z   AWS_SECRET_ACCESS_KEY: ***
2024-05-13T12:21:43.0230443Z   AWS_SESSION_TOKEN: ***
2024-05-13T12:21:43.0230848Z   pythonLocation: /opt/hostedtoolcache/Python/3.12.3/x64
2024-05-13T12:21:43.0231417Z   PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.3/x64/lib/pkgconfig
2024-05-13T12:21:43.0232007Z   Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.3/x64
2024-05-13T12:21:43.0232499Z   Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.3/x64
2024-05-13T12:21:43.0232988Z   Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.3/x64
2024-05-13T12:21:43.0233487Z   LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.3/x64/lib
2024-05-13T12:21:43.0233911Z ##[endgroup]
2024-05-13T12:21:47.7735484Z #0 building with "default" instance using docker driver
2024-05-13T12:21:47.7736076Z 
2024-05-13T12:21:47.7736275Z #1 [internal] load .dockerignore
2024-05-13T12:21:47.7736805Z #1 transferring context: 2B done
2024-05-13T12:21:47.7737297Z #1 DONE 0.0s
2024-05-13T12:21:47.7737524Z 
2024-05-13T12:21:47.7737786Z #2 [internal] load build definition from Dockerfile
2024-05-13T12:21:47.7738406Z #2 transferring dockerfile: 241B done
2024-05-13T12:21:47.7738964Z #2 DONE 0.0s
2024-05-13T12:21:47.7739217Z 
2024-05-13T12:21:47.7739976Z #3 [internal] load metadata for public.ecr.aws/sam/build-python3.12:latest
2024-05-13T12:21:48.3670436Z #3 DONE 0.7s
2024-05-13T12:21:48.4817450Z 
2024-05-13T12:21:48.4818891Z #4 [1/4] FROM public.ecr.aws/sam/build-python3.12@sha256:f3151f6bf6b2aa49472cb2327118f3c87dc1df84e1fb3479f0fdd59bb0f48ace
2024-05-13T12:21:48.4821239Z #4 resolve public.ecr.aws/sam/build-python3.12@sha256:f3151f6bf6b2aa49472cb2327118f3c87dc1df84e1fb3479f0fdd59bb0f48ace done
2024-05-13T12:21:48.4822963Z #4 sha256:776c38ad71ad0e70a3c2acbd5d2cc53b5272c2acb1b0e3d75e04ad0d053158b2 8.53kB / 8.53kB done
2024-05-13T12:21:48.4824343Z #4 sha256:73c80ee970293ef46373158ce7b724cfa4f87de034fdb26ec916057f0a954b0d 0B / 418B 0.1s
2024-05-13T12:21:48.4825699Z #4 sha256:b3a4bcbadd6f1c141dde48277920319c0dad6c975de0b729a048984fdc96887a 0B / 35.78MB 0.1s
2024-05-13T12:21:48.4827302Z #4 sha256:ffb7e723b1685ad7acae8fcc21700492a6dac043f7e2cef46c4059e45a029700 0B / 88.89kB 0.1s
2024-05-13T12:21:48.4828280Z #4 sha256:f3151f6bf6b2aa49472cb2327118f3c87dc1df84e1fb3479f0fdd59bb0f48ace 743B / 743B done
2024-05-13T12:21:48.4829374Z #4 sha256:6bc86ab47ebbdc61f746a999671f7940043543aca21a1077d0a223534440bb98 3.69kB / 3.69kB done
2024-05-13T12:21:48.5821836Z #4 sha256:b3a4bcbadd6f1c141dde48277920319c0dad6c975de0b729a048984fdc96887a 7.34MB / 35.78MB 0.2s
2024-05-13T12:21:48.5824229Z #4 sha256:ffb7e723b1685ad7acae8fcc21700492a6dac043f7e2cef46c4059e45a029700 88.89kB / 88.89kB 0.2s done
2024-05-13T12:21:48.5826950Z #4 sha256:ca57dfa5425bbe0f80b53bb61c76041aa08a6dfad51e32698fbd67206120cb1e 0B / 2.59MB 0.2s
2024-05-13T12:21:48.7863455Z #4 sha256:73c80ee970293ef46373158ce7b724cfa4f87de034fdb26ec916057f0a954b0d 418B / 418B 0.2s done
2024-05-13T12:21:48.7865020Z #4 sha256:b3a4bcbadd6f1c141dde48277920319c0dad6c975de0b729a048984fdc96887a 35.78MB / 35.78MB 0.4s done
2024-05-13T12:21:48.7866779Z #4 sha256:ca57dfa5425bbe0f80b53bb61c76041aa08a6dfad51e32698fbd67206120cb1e 2.59MB / 2.59MB 0.4s done
2024-05-13T12:21:48.7868238Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 5.24MB / 143.98MB 0.4s
2024-05-13T12:21:48.7870168Z #4 sha256:7ea43cfc8585271b86f2c585defdf933fb9096276fc159397bf344d9ca44d3a9 0B / 14.15kB 0.4s
2024-05-13T12:21:48.9177387Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 20.97MB / 143.98MB 0.5s
2024-05-13T12:21:48.9178977Z #4 sha256:7ea43cfc8585271b86f2c585defdf933fb9096276fc159397bf344d9ca44d3a9 14.15kB / 14.15kB 0.4s done
2024-05-13T12:21:48.9180467Z #4 extracting sha256:b3a4bcbadd6f1c141dde48277920319c0dad6c975de0b729a048984fdc96887a 0.1s
2024-05-13T12:21:48.9181947Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 2.10MB / 86.09MB 0.5s
2024-05-13T12:21:48.9183426Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 0B / 253.59MB 0.5s
2024-05-13T12:21:49.0257315Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 36.47MB / 143.98MB 0.6s
2024-05-13T12:21:49.0258869Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 14.68MB / 86.09MB 0.6s
2024-05-13T12:21:49.1551634Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 52.43MB / 143.98MB 0.7s
2024-05-13T12:21:49.1553324Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 30.41MB / 86.09MB 0.7s
2024-05-13T12:21:49.1554855Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 25.17MB / 253.59MB 0.7s
2024-05-13T12:21:49.2596460Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 65.01MB / 143.98MB 0.8s
2024-05-13T12:21:49.2598045Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 41.94MB / 86.09MB 0.8s
2024-05-13T12:21:49.3607568Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 76.55MB / 143.98MB 0.9s
2024-05-13T12:21:49.3609117Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 55.57MB / 86.09MB 0.9s
2024-05-13T12:21:49.3610600Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 51.38MB / 253.59MB 0.9s
2024-05-13T12:21:49.4617375Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 91.23MB / 143.98MB 1.0s
2024-05-13T12:21:49.4618981Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 69.21MB / 86.09MB 1.0s
2024-05-13T12:21:49.5694820Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 101.71MB / 143.98MB 1.1s
2024-05-13T12:21:49.5696425Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 82.84MB / 86.09MB 1.1s
2024-05-13T12:21:49.5697916Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 74.45MB / 253.59MB 1.1s
2024-05-13T12:21:49.6782916Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 115.34MB / 143.98MB 1.2s
2024-05-13T12:21:49.6784416Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 88.08MB / 253.59MB 1.2s
2024-05-13T12:21:49.7824831Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 132.12MB / 143.98MB 1.4s
2024-05-13T12:21:49.7826638Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 86.09MB / 86.09MB 1.3s done
2024-05-13T12:21:49.7828523Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 105.91MB / 253.59MB 1.4s
2024-05-13T12:21:49.7830007Z #4 sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768 3.15MB / 57.99MB 1.4s
2024-05-13T12:21:49.8842006Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 143.98MB / 143.98MB 1.5s
2024-05-13T12:21:49.8855866Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 120.59MB / 253.59MB 1.5s
2024-05-13T12:21:49.8857438Z #4 sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768 15.92MB / 57.99MB 1.5s
2024-05-13T12:21:50.0267849Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 136.31MB / 253.59MB 1.6s
2024-05-13T12:21:50.0269461Z #4 sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768 29.36MB / 57.99MB 1.6s
2024-05-13T12:21:50.1420064Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 143.98MB / 143.98MB 1.6s done
2024-05-13T12:21:50.1421708Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 150.99MB / 253.59MB 1.7s
2024-05-13T12:21:50.1423135Z #4 sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768 42.65MB / 57.99MB 1.7s
2024-05-13T12:21:50.1424517Z #4 sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 0B / 72.68MB 1.7s
2024-05-13T12:21:50.2497677Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 165.68MB / 253.59MB 1.8s
2024-05-13T12:21:50.2500083Z #4 sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768 56.62MB / 57.99MB 1.8s
2024-05-13T12:21:50.2502007Z #4 sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 10.18MB / 72.68MB 1.8s
2024-05-13T12:21:50.3590464Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 181.40MB / 253.59MB 1.9s
2024-05-13T12:21:50.3592033Z #4 sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768 57.99MB / 57.99MB 1.9s done
2024-05-13T12:21:50.3593518Z #4 sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 23.35MB / 72.68MB 1.9s
2024-05-13T12:21:50.3594909Z #4 sha256:fda710ce6b6af0899f1c90e6a493a70f819a330078e1b9efb086fd4726d1ffa8 0B / 5.04kB 1.9s
2024-05-13T12:21:50.4814552Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 212.86MB / 253.59MB 2.1s
2024-05-13T12:21:50.4816146Z #4 sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 51.38MB / 72.68MB 2.1s
2024-05-13T12:21:50.4817634Z #4 sha256:fda710ce6b6af0899f1c90e6a493a70f819a330078e1b9efb086fd4726d1ffa8 5.04kB / 5.04kB 1.9s done
2024-05-13T12:21:50.4819188Z #4 sha256:fa4f16ef09d5eb1ed517a23ffba4f761de242204176a97f78a05ffb0543877d5 2.11MB / 2.11MB 2.1s done
2024-05-13T12:21:50.4820666Z #4 sha256:bc86a12f471bbded6e9f88594923a777e7e120fac00b3f9e8ece5ba7ad95fdaa 0B / 10.11MB 2.1s
2024-05-13T12:21:50.5846405Z #4 sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 66.06MB / 72.68MB 2.2s
2024-05-13T12:21:50.5847956Z #4 sha256:bc86a12f471bbded6e9f88594923a777e7e120fac00b3f9e8ece5ba7ad95fdaa 6.29MB / 10.11MB 2.2s
2024-05-13T12:21:50.7168287Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 239.08MB / 253.59MB 2.3s
2024-05-13T12:21:50.7169816Z #4 sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 72.68MB / 72.68MB 2.3s
2024-05-13T12:21:50.7171334Z #4 sha256:bc86a12f471bbded6e9f88594923a777e7e120fac00b3f9e8ece5ba7ad95fdaa 10.11MB / 10.11MB 2.2s done
2024-05-13T12:21:50.7172799Z #4 sha256:796a8a2e1cbd1a3ad9ca48410ab919afd791706af96b344a707fae7872bd230d 0B / 224.31kB 2.3s
2024-05-13T12:21:50.8812232Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 253.59MB / 253.59MB 2.5s
2024-05-13T12:21:50.8813546Z #4 sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 72.68MB / 72.68MB 2.3s done
2024-05-13T12:21:50.8814842Z #4 sha256:796a8a2e1cbd1a3ad9ca48410ab919afd791706af96b344a707fae7872bd230d 224.31kB / 224.31kB 2.3s done
2024-05-13T12:21:50.8816558Z #4 sha256:bed9a72186c7d75f8c9d622073ca1e8abd40a83cf2a4c45cee94b45961677592 161.93kB / 161.93kB 2.5s
2024-05-13T12:21:50.8817736Z #4 sha256:c8345ca45c9cfcd7e32ef2750d36f7e63fc640b9aa1087052e496aa2849bf33c 122.19kB / 122.19kB 2.5s
2024-05-13T12:21:50.9815379Z #4 extracting sha256:b3a4bcbadd6f1c141dde48277920319c0dad6c975de0b729a048984fdc96887a 2.1s done
2024-05-13T12:21:51.1530335Z #4 extracting sha256:ffb7e723b1685ad7acae8fcc21700492a6dac043f7e2cef46c4059e45a029700
2024-05-13T12:21:51.3044482Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 253.59MB / 253.59MB 2.8s done
2024-05-13T12:21:51.3046294Z #4 sha256:bed9a72186c7d75f8c9d622073ca1e8abd40a83cf2a4c45cee94b45961677592 161.93kB / 161.93kB 2.8s done
2024-05-13T12:21:51.3048132Z #4 sha256:c8345ca45c9cfcd7e32ef2750d36f7e63fc640b9aa1087052e496aa2849bf33c 122.19kB / 122.19kB 2.8s done
2024-05-13T12:21:51.3049961Z #4 extracting sha256:ffb7e723b1685ad7acae8fcc21700492a6dac043f7e2cef46c4059e45a029700 done
2024-05-13T12:21:51.3051346Z #4 extracting sha256:73c80ee970293ef46373158ce7b724cfa4f87de034fdb26ec916057f0a954b0d
2024-05-13T12:21:51.4558981Z #4 extracting sha256:73c80ee970293ef46373158ce7b724cfa4f87de034fdb26ec916057f0a954b0d done
2024-05-13T12:21:51.4910633Z #4 extracting sha256:ca57dfa5425bbe0f80b53bb61c76041aa08a6dfad51e32698fbd67206120cb1e
2024-05-13T12:21:51.6097757Z #4 extracting sha256:ca57dfa5425bbe0f80b53bb61c76041aa08a6dfad51e32698fbd67206120cb1e 0.0s done
2024-05-13T12:21:51.6099062Z #4 extracting sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450
2024-05-13T12:21:56.3716737Z #4 extracting sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 4.6s done
2024-05-13T12:21:56.3717726Z #4 extracting sha256:7ea43cfc8585271b86f2c585defdf933fb9096276fc159397bf344d9ca44d3a9 done
2024-05-13T12:21:57.0819074Z #4 extracting sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6
2024-05-13T12:21:59.8344860Z #4 extracting sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 2.6s done
2024-05-13T12:22:00.0130827Z #4 extracting sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d
2024-05-13T12:22:05.0785090Z #4 extracting sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 5.1s
2024-05-13T12:22:07.5688116Z #4 extracting sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 7.6s done
2024-05-13T12:22:09.2143537Z #4 extracting sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768
2024-05-13T12:22:12.2622639Z #4 extracting sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768 2.9s done
2024-05-13T12:22:12.5058518Z #4 extracting sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482
2024-05-13T12:22:14.4133711Z #4 extracting sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 1.8s done
2024-05-13T12:22:14.5165748Z #4 extracting sha256:fda710ce6b6af0899f1c90e6a493a70f819a330078e1b9efb086fd4726d1ffa8
2024-05-13T12:22:14.6699526Z #4 extracting sha256:fda710ce6b6af0899f1c90e6a493a70f819a330078e1b9efb086fd4726d1ffa8 done
2024-05-13T12:22:14.6700881Z #4 extracting sha256:fa4f16ef09d5eb1ed517a23ffba4f761de242204176a97f78a05ffb0543877d5 0.0s done
2024-05-13T12:22:14.6701985Z #4 extracting sha256:bc86a12f471bbded6e9f88594923a777e7e120fac00b3f9e8ece5ba7ad95fdaa 0.1s
2024-05-13T12:22:15.1348251Z #4 extracting sha256:bc86a12f471bbded6e9f88594923a777e7e120fac00b3f9e8ece5ba7ad95fdaa 0.5s done
2024-05-13T12:22:15.1350060Z #4 extracting sha256:796a8a2e1cbd1a3ad9ca48410ab919afd791706af96b344a707fae7872bd230d
2024-05-13T12:22:15.2888114Z #4 extracting sha256:796a8a2e1cbd1a3ad9ca48410ab919afd791706af96b344a707fae7872bd230d 0.0s done
2024-05-13T12:22:15.2889575Z #4 extracting sha256:bed9a72186c7d75f8c9d622073ca1e8abd40a83cf2a4c45cee94b45961677592 done
2024-05-13T12:22:15.2890846Z #4 extracting sha256:c8345ca45c9cfcd7e32ef2750d36f7e63fc640b9aa1087052e496aa2849bf33c done
2024-05-13T12:22:15.2893404Z #4 DONE 26.9s
2024-05-13T12:22:15.4398615Z 
2024-05-13T12:22:15.4400254Z #5 [2/4] RUN dnf install -y dnf-plugins-core
2024-05-13T12:22:15.5223649Z #5 0.233 Failed to set locale, defaulting to C.UTF-8
2024-05-13T12:22:16.5086240Z #5 1.219 Amazon Linux 2023 repository                     26 MB/s |  23 MB     00:00    
2024-05-13T12:22:20.3399861Z #5 5.050 Last metadata expiration check: 0:00:04 ago on Mon May 13 12:22:16 2024.
2024-05-13T12:22:20.6981835Z #5 5.409 Dependencies resolved.
2024-05-13T12:22:20.8599381Z #5 5.419 ================================================================================
2024-05-13T12:22:20.8600559Z #5 5.419  Package                   Arch    Version                   Repository    Size
2024-05-13T12:22:20.8601579Z #5 5.419 ================================================================================
2024-05-13T12:22:20.8602356Z #5 5.419 Installing:
2024-05-13T12:22:20.8603520Z #5 5.419  dnf-plugins-core          noarch  4.3.0-13.amzn2023.0.4     amazonlinux   34 k
2024-05-13T12:22:20.8604962Z #5 5.419 Installing dependencies:
2024-05-13T12:22:20.8606022Z #5 5.419  python3-dateutil          noarch  1:2.8.1-3.amzn2023.0.2    amazonlinux  289 k
2024-05-13T12:22:20.8607410Z #5 5.419  python3-dbus              x86_64  1.2.18-1.amzn2023.0.2     amazonlinux  134 k
2024-05-13T12:22:20.8608749Z #5 5.419  python3-distro            noarch  1.5.0-5.amzn2023.0.2      amazonlinux   36 k
2024-05-13T12:22:20.8612712Z #5 5.419  python3-dnf-plugins-core  noarch  4.3.0-13.amzn2023.0.4     amazonlinux  233 k
2024-05-13T12:22:20.8614101Z #5 5.419  python3-six               noarch  1.15.0-5.amzn2023.0.2     amazonlinux   36 k
2024-05-13T12:22:20.8614999Z #5 5.419  python3-systemd           x86_64  235-51.amzn2023.0.2       amazonlinux   91 k
2024-05-13T12:22:20.8615498Z #5 5.419 
2024-05-13T12:22:20.8615747Z #5 5.419 Transaction Summary
2024-05-13T12:22:20.8616133Z #5 5.419 ================================================================================
2024-05-13T12:22:20.8616570Z #5 5.419 Install  7 Packages
2024-05-13T12:22:20.8616853Z #5 5.419 
2024-05-13T12:22:20.8617099Z #5 5.420 Total download size: 853 k
2024-05-13T12:22:20.8617439Z #5 5.420 Installed size: 3.1 M
2024-05-13T12:22:20.8617758Z #5 5.420 Downloading Packages:
2024-05-13T12:22:21.0916795Z #5 5.802 (1/7): dnf-plugins-core-4.3.0-13.amzn2023.0.4.n 556 kB/s |  34 kB     00:00    
2024-05-13T12:22:21.2582750Z #5 5.825 (2/7): python3-distro-1.5.0-5.amzn2023.0.2.noar 1.6 MB/s |  36 kB     00:00    
2024-05-13T12:22:21.2583955Z #5 5.846 (3/7): python3-dbus-1.2.18-1.amzn2023.0.2.x86_6 1.2 MB/s | 134 kB     00:00    
2024-05-13T12:22:21.2584934Z #5 5.858 (4/7): python3-dateutil-2.8.1-3.amzn2023.0.2.no 2.4 MB/s | 289 kB     00:00    
2024-05-13T12:22:21.2585955Z #5 5.875 (5/7): python3-dnf-plugins-core-4.3.0-13.amzn20 4.5 MB/s | 233 kB     00:00    
2024-05-13T12:22:21.2587170Z #5 5.877 (6/7): python3-six-1.15.0-5.amzn2023.0.2.noarch 1.2 MB/s |  36 kB     00:00    
2024-05-13T12:22:21.2588095Z #5 5.884 (7/7): python3-systemd-235-51.amzn2023.0.2.x86_ 3.5 MB/s |  91 kB     00:00    
2024-05-13T12:22:21.2588948Z #5 5.885 --------------------------------------------------------------------------------
2024-05-13T12:22:21.2589604Z #5 5.886 Total                                           1.8 MB/s | 853 kB     00:00     
2024-05-13T12:22:21.2590171Z #5 5.969 Running transaction check
2024-05-13T12:22:21.3934572Z #5 5.980 Transaction check succeeded.
2024-05-13T12:22:21.3935308Z #5 5.980 Running transaction test
2024-05-13T12:22:21.3935932Z #5 6.020 Transaction test succeeded.
2024-05-13T12:22:21.3936537Z #5 6.020 Running transaction
2024-05-13T12:22:21.3937307Z #5 6.062   Preparing        :                                                        1/1 
2024-05-13T12:22:21.5736221Z #5 6.104   Installing       : python3-systemd-235-51.amzn2023.0.2.x86_64             1/7 
2024-05-13T12:22:21.5737706Z #5 6.112   Installing       : python3-six-1.15.0-5.amzn2023.0.2.noarch               2/7 
2024-05-13T12:22:21.5739567Z #5 6.127   Installing       : python3-dateutil-1:2.8.1-3.amzn2023.0.2.noarch         3/7 
2024-05-13T12:22:21.5740977Z #5 6.133   Installing       : python3-distro-1.5.0-5.amzn2023.0.2.noarch             4/7 
2024-05-13T12:22:21.5742378Z #5 6.146   Installing       : python3-dbus-1.2.18-1.amzn2023.0.2.x86_64              5/7 
2024-05-13T12:22:21.5743747Z #5 6.171   Installing       : python3-dnf-plugins-core-4.3.0-13.amzn2023.0.4.noarc   6/7 
2024-05-13T12:22:21.5744824Z #5 6.178   Installing       : dnf-plugins-core-4.3.0-13.amzn2023.0.4.noarch          7/7 
2024-05-13T12:22:21.5745643Z #5 6.194   Running scriptlet: dnf-plugins-core-4.3.0-13.amzn2023.0.4.noarch          7/7 
2024-05-13T12:22:21.5746773Z #5 6.284   Verifying        : dnf-plugins-core-4.3.0-13.amzn2023.0.4.noarch          1/7 
2024-05-13T12:22:21.7959397Z #5 6.284   Verifying        : python3-dateutil-1:2.8.1-3.amzn2023.0.2.noarch         2/7 
2024-05-13T12:22:21.7961170Z #5 6.284   Verifying        : python3-dbus-1.2.18-1.amzn2023.0.2.x86_64              3/7 
2024-05-13T12:22:21.7963553Z #5 6.284   Verifying        : python3-distro-1.5.0-5.amzn2023.0.2.noarch             4/7 
2024-05-13T12:22:21.7965490Z #5 6.284   Verifying        : python3-dnf-plugins-core-4.3.0-13.amzn2023.0.4.noarc   5/7 
2024-05-13T12:22:21.7967397Z #5 6.284   Verifying        : python3-six-1.15.0-5.amzn2023.0.2.noarch               6/7 
2024-05-13T12:22:21.7969108Z #5 6.284   Verifying        : python3-systemd-235-51.amzn2023.0.2.x86_64             7/7 
2024-05-13T12:22:21.7969981Z #5 6.309 
2024-05-13T12:22:21.7970358Z #5 6.309 Installed:
2024-05-13T12:22:21.7971313Z #5 6.309   dnf-plugins-core-4.3.0-13.amzn2023.0.4.noarch                                 
2024-05-13T12:22:21.7972733Z #5 6.309   python3-dateutil-1:2.8.1-3.amzn2023.0.2.noarch                                
2024-05-13T12:22:21.7974147Z #5 6.309   python3-dbus-1.2.18-1.amzn2023.0.2.x86_64                                     
2024-05-13T12:22:21.7975538Z #5 6.309   python3-distro-1.5.0-5.amzn2023.0.2.noarch                                    
2024-05-13T12:22:21.7976998Z #5 6.309   python3-dnf-plugins-core-4.3.0-13.amzn2023.0.4.noarch                         
2024-05-13T12:22:21.7978439Z #5 6.309   python3-six-1.15.0-5.amzn2023.0.2.noarch                                      
2024-05-13T12:22:21.7979834Z #5 6.309   python3-systemd-235-51.amzn2023.0.2.x86_64                                    
2024-05-13T12:22:21.7980740Z #5 6.309 
2024-05-13T12:22:21.7981137Z #5 6.309 Complete!
2024-05-13T12:22:21.7981567Z #5 DONE 6.4s
2024-05-13T12:22:21.7981818Z 
2024-05-13T12:22:21.7982667Z #6 [3/4] RUN dnf config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo
2024-05-13T12:22:21.9634475Z #6 0.320 Failed to set locale, defaulting to C.UTF-8
2024-05-13T12:22:22.2070332Z #6 0.413 Adding repo from: https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo
2024-05-13T12:22:22.2709088Z #6 DONE 0.6s
2024-05-13T12:22:22.4220113Z 
2024-05-13T12:22:22.4221030Z #7 [4/4] RUN dnf -y install terraform
2024-05-13T12:22:22.5243957Z #7 0.253 Failed to set locale, defaulting to C.UTF-8
2024-05-13T12:22:22.9261712Z #7 0.655 Hashicorp Stable - x86_64                       6.2 MB/s | 1.4 MB     00:00    
2024-05-13T12:22:23.1414728Z #7 0.870 Last metadata expiration check: 0:00:01 ago on Mon May 13 12:22:22 2024.
2024-05-13T12:22:23.2813870Z #7 1.010 Dependencies resolved.
2024-05-13T12:22:23.4440571Z #7 1.022 ================================================================================
2024-05-13T12:22:23.4441704Z #7 1.022  Package            Architecture    Version            Repository          Size
2024-05-13T12:22:23.4442413Z #7 1.022 ================================================================================
2024-05-13T12:22:23.4442883Z #7 1.022 Installing:
2024-05-13T12:22:23.4443618Z #7 1.022  terraform          x86_64          1.8.3-1            hashicorp           26 M
2024-05-13T12:22:23.4444332Z #7 1.022 
2024-05-13T12:22:23.4444611Z #7 1.022 Transaction Summary
2024-05-13T12:22:23.4445330Z #7 1.022 ================================================================================
2024-05-13T12:22:23.4445807Z #7 1.022 Install  1 Package
2024-05-13T12:22:23.4446117Z #7 1.022 
2024-05-13T12:22:23.4446386Z #7 1.022 Total download size: 26 M
2024-05-13T12:22:23.4446751Z #7 1.022 Installed size: 84 M
2024-05-13T12:22:23.4447745Z #7 1.022 Downloading Packages:
2024-05-13T12:22:23.6538365Z #7 1.382 terraform-1.8.3-1.x86_64.rpm                     73 MB/s |  26 MB     00:00    
2024-05-13T12:22:23.7584264Z #7 1.383 --------------------------------------------------------------------------------
2024-05-13T12:22:23.7585528Z #7 1.384 Total                                            73 MB/s |  26 MB     00:00     
2024-05-13T12:22:23.7587206Z #7 1.487 Hashicorp Stable - x86_64                        56 kB/s | 3.9 kB     00:00    
2024-05-13T12:22:23.8602007Z #7 1.525 Importing GPG key 0xA621E701:
2024-05-13T12:22:23.8603257Z #7 1.525  Userid     : "HashiCorp Security (HashiCorp Package Signing) <[email protected]>"
2024-05-13T12:22:23.8605002Z #7 1.525  Fingerprint: 798A EC65 4E5C 1542 8C8E 42EE AA16 FCBC A621 E701
2024-05-13T12:22:23.8606063Z #7 1.525  From       : https://rpm.releases.hashicorp.com/gpg
2024-05-13T12:22:23.8606875Z #7 1.554 Key imported successfully
2024-05-13T12:22:23.8607352Z #7 1.586 Running transaction check
2024-05-13T12:22:23.8607707Z #7 1.589 Transaction check succeeded.
2024-05-13T12:22:24.0588219Z #7 1.589 Running transaction test
2024-05-13T12:22:24.0588869Z #7 1.613 Transaction test succeeded.
2024-05-13T12:22:24.0589298Z #7 1.613 Running transaction
2024-05-13T12:22:24.4320678Z #7 1.637   Preparing        :                                                        1/1 
2024-05-13T12:22:24.5582724Z #7 2.160   Installing       : terraform-1.8.3-1.x86_64                               1/1 
2024-05-13T12:22:24.7981323Z #7 2.287   Verifying        : terraform-1.8.3-1.x86_64                               1/1 
2024-05-13T12:22:24.7982248Z #7 2.334 
2024-05-13T12:22:24.7982648Z #7 2.334 Installed:
2024-05-13T12:22:24.7983586Z #7 2.334   terraform-1.8.3-1.x86_64                                                      
2024-05-13T12:22:24.7984458Z #7 2.334 
2024-05-13T12:22:24.7984848Z #7 2.334 Complete!
2024-05-13T12:22:24.7985272Z #7 DONE 2.4s
2024-05-13T12:22:24.7985514Z 
2024-05-13T12:22:24.7985699Z #8 exporting to image
2024-05-13T12:22:24.7986504Z #8 exporting layers
2024-05-13T12:22:27.7710083Z #8 exporting layers 3.1s done
2024-05-13T12:22:27.7861339Z #8 writing image sha256:7717b6a349b2921fab2bd64bc690aec5bd7be3dc65fe80e9478c31fdddcd3ca8 done
2024-05-13T12:22:27.7862935Z #8 naming to docker.io/library/sam-builder done
2024-05-13T12:22:27.7863936Z #8 DONE 3.1s
2024-05-13T12:22:33.9395304Z 
2024-05-13T12:22:33.9396245Z 	SAM CLI now collects telemetry to better understand customer needs.
2024-05-13T12:22:33.9397130Z 
2024-05-13T12:22:33.9397632Z 	You can OPT OUT and disable telemetry collection by setting the
2024-05-13T12:22:33.9398796Z 	environment variable SAM_CLI_TELEMETRY=0 in your shell.
2024-05-13T12:22:33.9399737Z 	Thanks for your help!
2024-05-13T12:22:33.9400114Z 
2024-05-13T12:22:33.9401440Z 	Learn More: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-telemetry.html
2024-05-13T12:22:33.9402299Z 
2024-05-13T12:22:34.4007146Z Running Prepare Hook to prepare the current application
2024-05-13T12:22:34.4009748Z Executing prepare hook of hook "terraform"
2024-05-13T12:22:34.4152346Z The option to skip infrastructure preparation was provided, but AWS SAM CLI could not find the metadata file. Preparing anyways.
2024-05-13T12:22:34.4153728Z Initializing Terraform application
2024-05-13T12:22:45.5593922Z .......................
2024-05-13T12:22:45.9191711Z Creating terraform plan and getting JSON output
2024-05-13T12:22:50.3612050Z .........
2024-05-13T12:22:51.8143050Z 2024-05-13 12:22:51,813 | OSError occurred while reading TOML file: [Errno 2] No such file or directory: '/home/runner/work/sam-cli-issue/sam-cli-issue/terraform/samconfig.toml'
2024-05-13T12:22:51.8146924Z 2024-05-13 12:22:51,814 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2024-05-13T12:22:51.8285939Z 2024-05-13 12:22:51,828 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2024-05-13T12:22:51.8287723Z 2024-05-13 12:22:51,828 | Unable to find Click Context for getting session_id.
2024-05-13T12:22:51.8293118Z 2024-05-13 12:22:51,828 | Sending Telemetry: {'metrics': [{'commandRun': {'requestId': '5731c7fb-c86f-4e1e-b44e-ac096afde4a5', 'installationId': 'faa11c1c-e77e-4870-b321-2593835f8eb0', 'sessionId': '682e7305-0d60-4513-9cc5-759294f715f5', 'executionEnvironment': 'GitHubAction', 'ci': True, 'pyversion': '3.11.8', 'samcliVersion': '1.115.0', 'awsProfileProvided': False, 'debugFlagProvided': True, 'region': '', 'commandName': 'sam build', 'metricSpecificAttributes': {'projectType': 'Terraform', 'hookPackageId': 'terraform', 'hookPackageVersion': '1.0.0', 'gitOrigin': None, 'projectName': '94dc3ea57721d541aae09b7bf2368c1e20d4c89996ff6df4349d86048877c0e7', 'initialCommit': None}, 'duration': 0, 'exitReason': 'JSONDecodeError', 'exitCode': 255}}]}
2024-05-13T12:22:51.8307835Z 2024-05-13 12:22:51,830 | Sending Telemetry: {'metrics': [{'events': {'requestId': 'a07724e0-1b12-49d1-8544-7762953f8aad', 'installationId': 'faa11c1c-e77e-4870-b321-2593835f8eb0', 'sessionId': '682e7305-0d60-4513-9cc5-759294f715f5', 'executionEnvironment': 'GitHubAction', 'ci': True, 'pyversion': '3.11.8', 'samcliVersion': '1.115.0', 'commandName': 'sam build', 'metricSpecificAttributes': {'events': [{'event_name': 'SamConfigFileExtension', 'event_value': '.yml', 'thread_id': 'b5b4d18f3c304caa89e0b87586847405', 'time_stamp': '2024-05-13 12:22:34.373', 'exception_name': None}, {'event_name': 'SamConfigFileExtension', 'event_value': '.toml', 'thread_id': 'dfa28fcd70824dd7bdee3d4840544df8', 'time_stamp': '2024-05-13 12:22:51.814', 'exception_name': None}]}}}]}
2024-05-13T12:22:52.0590416Z 2024-05-13 12:22:52,058 | Telemetry response: 200
2024-05-13T12:22:52.0611078Z 
2024-05-13T12:22:52.0611418Z Error: Expecting value: line 1 column 2 (char 1)
2024-05-13T12:22:52.0612170Z Traceback:
2024-05-13T12:22:52.0627039Z   File "click/core.py", line 1078, in main
2024-05-13T12:22:52.0627838Z   File "click/core.py", line 1688, in invoke
2024-05-13T12:22:52.0628424Z   File "click/core.py", line 1434, in invoke
2024-05-13T12:22:52.0628868Z   File "click/core.py", line 783, in invoke
2024-05-13T12:22:52.0629358Z   File "samcli/cli/cli_config_file.py", line 347, in wrapper
2024-05-13T12:22:52.0629881Z   File "click/decorators.py", line 92, in new_func
2024-05-13T12:22:52.0630332Z   File "click/core.py", line 783, in invoke
2024-05-13T12:22:52.0630820Z   File "samcli/lib/telemetry/metric.py", line 185, in wrapped
2024-05-13T12:22:52.0631401Z   File "samcli/lib/telemetry/metric.py", line 146, in wrapped
2024-05-13T12:22:52.0632126Z   File "samcli/commands/_utils/custom_options/hook_name_option.py", line 64, in handle_parse_result
2024-05-13T12:22:52.0633073Z   File "samcli/commands/_utils/custom_options/hook_name_option.py", line 94, in _call_prepare_hook
2024-05-13T12:22:52.0633803Z   File "samcli/lib/hook/hook_wrapper.py", line 100, in prepare
2024-05-13T12:22:52.0634371Z   File "samcli/lib/hook/hook_wrapper.py", line 160, in _execute
2024-05-13T12:22:52.0634992Z   File "samcli/lib/hook/hook_wrapper.py", line 191, in _execute_as_module
2024-05-13T12:22:52.0635621Z   File "samcli/hook_packages/terraform/main.py", line 9, in prepare
2024-05-13T12:22:52.0636297Z   File "samcli/hook_packages/terraform/hooks/prepare/hook.py", line 107, in prepare
2024-05-13T12:22:52.0637118Z   File "samcli/hook_packages/terraform/hooks/prepare/hook.py", line 240, in _generate_plan_file
2024-05-13T12:22:52.0637761Z   File "json/__init__.py", line 346, in loads
2024-05-13T12:22:52.0638180Z   File "json/decoder.py", line 337, in decode
2024-05-13T12:22:52.0638616Z   File "json/decoder.py", line 355, in raw_decode
2024-05-13T12:22:52.0639241Z 
2024-05-13T12:22:52.0639486Z An unexpected error was encountered while executing "sam build".
2024-05-13T12:22:52.0639958Z Search for an existing issue:
2024-05-13T12:22:52.0640822Z https://github.com/aws/aws-sam-cli/issues?q=is%3Aissue+is%3Aopen+Bug%3A%20sam%20build%20-%20JSONDecodeError
2024-05-13T12:22:52.0641673Z Or create a bug report:
2024-05-13T12:22:52.0642405Z https://github.com/aws/aws-sam-cli/issues/new?template=Bug_report.md&title=Bug%3A%20sam%20build%20-%20JSONDecodeError
2024-05-13T12:22:52.0646957Z 2024-05-13 12:22:52,064 | Telemetry response: 200
2024-05-13T12:22:52.1495667Z ##[error]Process completed with exit code 1.
2024-05-13T12:22:52.1580522Z Post job cleanup.
2024-05-13T12:22:52.2839148Z Post job cleanup.
2024-05-13T12:22:52.3580617Z [command]/usr/bin/git version
2024-05-13T12:22:52.3624225Z git version 2.43.2
2024-05-13T12:22:52.3671873Z Temporarily overriding HOME='/home/runner/work/_temp/baa5d6e9-70e5-4ef2-9c03-31fb80731363' before making global git config changes
2024-05-13T12:22:52.3673586Z Adding repository directory to the temporary git global config as a safe directory
2024-05-13T12:22:52.3677698Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/sam-cli-issue/sam-cli-issue
2024-05-13T12:22:52.3713455Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-05-13T12:22:52.3745910Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-05-13T12:22:52.3990546Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-05-13T12:22:52.4010490Z http.https://github.com/.extraheader
2024-05-13T12:22:52.4021850Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2024-05-13T12:22:52.4052483Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-05-13T12:22:52.4549692Z Cleaning up orphan processes

This code works fine in my local machine (macOS)

If you have any further question, just let me know.

from aws-sam-cli.

danielbojczuk-jumbo avatar danielbojczuk-jumbo commented on July 2, 2024

@hawflau, could reproduce it?

from aws-sam-cli.

mndeveci avatar mndeveci commented on July 2, 2024

@danielbojczuk-jumbo I saw that in your GH action definition, you are running sam build. Can you run sam build --hook-name terraform to see if it is going to fix the issue? Here is the PR to apply in the example repo above: https://github.com/danielbojczuk-jumbo/sam-cli-issue/pull/1/files

Running this locally worked for me.

from aws-sam-cli.

danielbojczuk-jumbo avatar danielbojczuk-jumbo commented on July 2, 2024

Hi @mndeveci, I was expecting using the hook in the samconfig.yml was enough. Anyway, I merged your pull request and run the pipeline. The issue still happens.

2024-05-21T11:38:21.5225834Z Current runner version: '2.316.1'
2024-05-21T11:38:21.5249347Z ##[group]Operating System
2024-05-21T11:38:21.5249980Z Ubuntu
2024-05-21T11:38:21.5250470Z 22.04.4
2024-05-21T11:38:21.5250783Z LTS
2024-05-21T11:38:21.5251121Z ##[endgroup]
2024-05-21T11:38:21.5251603Z ##[group]Runner Image
2024-05-21T11:38:21.5252036Z Image: ubuntu-22.04
2024-05-21T11:38:21.5252401Z Version: 20240516.1.0
2024-05-21T11:38:21.5253502Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240516.1/images/ubuntu/Ubuntu2204-Readme.md
2024-05-21T11:38:21.5254952Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240516.1
2024-05-21T11:38:21.5255884Z ##[endgroup]
2024-05-21T11:38:21.5256272Z ##[group]Runner Image Provisioner
2024-05-21T11:38:21.5256758Z 2.0.369.1
2024-05-21T11:38:21.5257186Z ##[endgroup]
2024-05-21T11:38:21.5258075Z ##[group]GITHUB_TOKEN Permissions
2024-05-21T11:38:21.5259605Z Contents: read
2024-05-21T11:38:21.5260169Z Metadata: read
2024-05-21T11:38:21.5260704Z ##[endgroup]
2024-05-21T11:38:21.5264214Z Secret source: Actions
2024-05-21T11:38:21.5264879Z Prepare workflow directory
2024-05-21T11:38:21.5897711Z Prepare all required actions
2024-05-21T11:38:21.6061323Z Getting action download info
2024-05-21T11:38:21.9430077Z Download action repository 'actions/checkout@v4' (SHA:a5ac7e51b41094c92402da3b24376905380afc29)
2024-05-21T11:38:22.7664309Z Download action repository 'hashicorp/setup-terraform@v2' (SHA:633666f66e0061ca3b725c73b2ec20cd13a8fdd1)
2024-05-21T11:38:23.5165576Z Download action repository 'aws-actions/configure-aws-credentials@v4' (SHA:e3dd6a429d7300a6a4c196c26e071d42e0343502)
2024-05-21T11:38:24.2638702Z Download action repository 'actions/setup-python@v5' (SHA:82c7e631bb3cdc910f68e0081d67478d79c6982d)
2024-05-21T11:38:24.4572986Z Complete job name: Testing
2024-05-21T11:38:24.5526367Z ##[group]Run actions/checkout@v4
2024-05-21T11:38:24.5526903Z with:
2024-05-21T11:38:24.5527311Z   repository: danielbojczuk-jumbo/sam-cli-issue
2024-05-21T11:38:24.5528190Z   token: ***
2024-05-21T11:38:24.5528544Z   ssh-strict: true
2024-05-21T11:38:24.5528872Z   ssh-user: git
2024-05-21T11:38:24.5529307Z   persist-credentials: true
2024-05-21T11:38:24.5529698Z   clean: true
2024-05-21T11:38:24.5530145Z   sparse-checkout-cone-mode: true
2024-05-21T11:38:24.5530531Z   fetch-depth: 1
2024-05-21T11:38:24.5530867Z   fetch-tags: false
2024-05-21T11:38:24.5531334Z   show-progress: true
2024-05-21T11:38:24.5531649Z   lfs: false
2024-05-21T11:38:24.5531982Z   submodules: false
2024-05-21T11:38:24.5532402Z   set-safe-directory: true
2024-05-21T11:38:24.5532789Z ##[endgroup]
2024-05-21T11:38:24.7653063Z Syncing repository: danielbojczuk-jumbo/sam-cli-issue
2024-05-21T11:38:24.7655427Z ##[group]Getting Git version info
2024-05-21T11:38:24.7656493Z Working directory is '/home/runner/work/sam-cli-issue/sam-cli-issue'
2024-05-21T11:38:24.7657437Z [command]/usr/bin/git version
2024-05-21T11:38:24.7681513Z git version 2.45.1
2024-05-21T11:38:24.7710123Z ##[endgroup]
2024-05-21T11:38:24.7730373Z Temporarily overriding HOME='/home/runner/work/_temp/69231b7e-233e-4dbd-9fae-740157122b05' before making global git config changes
2024-05-21T11:38:24.7732353Z Adding repository directory to the temporary git global config as a safe directory
2024-05-21T11:38:24.7734083Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/sam-cli-issue/sam-cli-issue
2024-05-21T11:38:24.7773967Z Deleting the contents of '/home/runner/work/sam-cli-issue/sam-cli-issue'
2024-05-21T11:38:24.7782066Z ##[group]Initializing the repository
2024-05-21T11:38:24.7787655Z [command]/usr/bin/git init /home/runner/work/sam-cli-issue/sam-cli-issue
2024-05-21T11:38:24.7876537Z hint: Using 'master' as the name for the initial branch. This default branch name
2024-05-21T11:38:24.7877959Z hint: is subject to change. To configure the initial branch name to use in all
2024-05-21T11:38:24.7879338Z hint: of your new repositories, which will suppress this warning, call:
2024-05-21T11:38:24.7880224Z hint:
2024-05-21T11:38:24.7881337Z hint: 	git config --global init.defaultBranch <name>
2024-05-21T11:38:24.7882198Z hint:
2024-05-21T11:38:24.7882997Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2024-05-21T11:38:24.7884315Z hint: 'development'. The just-created branch can be renamed via this command:
2024-05-21T11:38:24.7885318Z hint:
2024-05-21T11:38:24.7885859Z hint: 	git branch -m <name>
2024-05-21T11:38:24.7886888Z Initialized empty Git repository in /home/runner/work/sam-cli-issue/sam-cli-issue/.git/
2024-05-21T11:38:24.7893834Z [command]/usr/bin/git remote add origin https://github.com/danielbojczuk-jumbo/sam-cli-issue
2024-05-21T11:38:24.7935656Z ##[endgroup]
2024-05-21T11:38:24.7936725Z ##[group]Disabling automatic garbage collection
2024-05-21T11:38:24.7941029Z [command]/usr/bin/git config --local gc.auto 0
2024-05-21T11:38:24.7976608Z ##[endgroup]
2024-05-21T11:38:24.7977655Z ##[group]Setting up auth
2024-05-21T11:38:24.7984521Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-05-21T11:38:24.8023130Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-05-21T11:38:24.8369979Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-05-21T11:38:24.8405173Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-05-21T11:38:24.8666365Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2024-05-21T11:38:24.8705785Z ##[endgroup]
2024-05-21T11:38:24.8708417Z ##[group]Fetching the repository
2024-05-21T11:38:24.8718050Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +cc1096273c06de23cdd4e29adecef01905b04a23:refs/remotes/origin/main
2024-05-21T11:38:25.3158399Z From https://github.com/danielbojczuk-jumbo/sam-cli-issue
2024-05-21T11:38:25.3159830Z  * [new ref]         cc1096273c06de23cdd4e29adecef01905b04a23 -> origin/main
2024-05-21T11:38:25.3196436Z ##[endgroup]
2024-05-21T11:38:25.3197502Z ##[group]Determining the checkout info
2024-05-21T11:38:25.3198565Z ##[endgroup]
2024-05-21T11:38:25.3204044Z [command]/usr/bin/git sparse-checkout disable
2024-05-21T11:38:25.3249292Z [command]/usr/bin/git config --local --unset-all extensions.worktreeConfig
2024-05-21T11:38:25.3279534Z ##[group]Checking out the ref
2024-05-21T11:38:25.3284142Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2024-05-21T11:38:25.3336300Z Switched to a new branch 'main'
2024-05-21T11:38:25.3339844Z branch 'main' set up to track 'origin/main'.
2024-05-21T11:38:25.3347919Z ##[endgroup]
2024-05-21T11:38:25.3392637Z [command]/usr/bin/git log -1 --format='%H'
2024-05-21T11:38:25.3419052Z 'cc1096273c06de23cdd4e29adecef01905b04a23'
2024-05-21T11:38:25.3726751Z ##[group]Run hashicorp/setup-terraform@v2
2024-05-21T11:38:25.3727189Z with:
2024-05-21T11:38:25.3727598Z   terraform_version: 1.8.3
2024-05-21T11:38:25.3728052Z   cli_config_credentials_hostname: app.terraform.io
2024-05-21T11:38:25.3728526Z   terraform_wrapper: true
2024-05-21T11:38:25.3728913Z ##[endgroup]
2024-05-21T11:38:25.9708687Z [command]/usr/bin/unzip -o -q /home/runner/work/_temp/76a30d32-d056-4767-ac9f-8af8a354e17d
2024-05-21T11:38:26.6121476Z ##[group]Run aws-actions/configure-aws-credentials@v4
2024-05-21T11:38:26.6121963Z with:
2024-05-21T11:38:26.6122658Z   role-to-assume: ***
2024-05-21T11:38:26.6123050Z   aws-region: eu-west-1
2024-05-21T11:38:26.6123498Z   audience: sts.amazonaws.com
2024-05-21T11:38:26.6123857Z env:
2024-05-21T11:38:26.6124357Z   TERRAFORM_CLI_PATH: /home/runner/work/_temp/64f84193-f3ae-4819-be54-748c0ce421fc
2024-05-21T11:38:26.6124998Z ##[endgroup]
2024-05-21T11:38:27.0784567Z Assuming role with OIDC
2024-05-21T11:38:27.6438580Z Authenticated as assumedRoleId AROAZUSEMQH5FS6XWYC23:GitHubActions
2024-05-21T11:38:27.7917076Z ##[group]Run actions/setup-python@v5
2024-05-21T11:38:27.7917577Z with:
2024-05-21T11:38:27.7917910Z   python-version: 3.12.3
2024-05-21T11:38:27.7918407Z   check-latest: false
2024-05-21T11:38:27.7918899Z   token: ***
2024-05-21T11:38:27.7919274Z   update-environment: true
2024-05-21T11:38:27.7919764Z   allow-prereleases: false
2024-05-21T11:38:27.7920132Z env:
2024-05-21T11:38:27.7920711Z   TERRAFORM_CLI_PATH: /home/runner/work/_temp/64f84193-f3ae-4819-be54-748c0ce421fc
2024-05-21T11:38:27.7921365Z   AWS_DEFAULT_REGION: eu-west-1
2024-05-21T11:38:27.7921789Z   AWS_REGION: eu-west-1
2024-05-21T11:38:27.7922289Z   AWS_ACCESS_KEY_ID: ***
2024-05-21T11:38:27.7922813Z   AWS_SECRET_ACCESS_KEY: ***
2024-05-21T11:38:27.7929360Z   AWS_SESSION_TOKEN: ***
2024-05-21T11:38:27.7929741Z ##[endgroup]
2024-05-21T11:38:27.9568909Z ##[group]Installed versions
2024-05-21T11:38:27.9610581Z Successfully set up CPython (3.12.3)
2024-05-21T11:38:27.9611970Z ##[endgroup]
2024-05-21T11:38:27.9750266Z ##[group]Run docker buildx build --platform linux/amd64 --tag sam-builder --progress plain .
2024-05-21T11:38:27.9751323Z �[36;1mdocker buildx build --platform linux/amd64 --tag sam-builder --progress plain .�[0m
2024-05-21T11:38:27.9752196Z �[36;1mcd $GITHUB_WORKSPACE/terraform && sam build --hook-name terraform�[0m
2024-05-21T11:38:27.9835213Z shell: /usr/bin/bash -e {0}
2024-05-21T11:38:27.9835947Z env:
2024-05-21T11:38:27.9836519Z   TERRAFORM_CLI_PATH: /home/runner/work/_temp/64f84193-f3ae-4819-be54-748c0ce421fc
2024-05-21T11:38:27.9837313Z   AWS_DEFAULT_REGION: eu-west-1
2024-05-21T11:38:27.9837786Z   AWS_REGION: eu-west-1
2024-05-21T11:38:27.9838316Z   AWS_ACCESS_KEY_ID: ***
2024-05-21T11:38:27.9839017Z   AWS_SECRET_ACCESS_KEY: ***
2024-05-21T11:38:27.9847032Z   AWS_SESSION_TOKEN: ***
2024-05-21T11:38:27.9847519Z   pythonLocation: /opt/hostedtoolcache/Python/3.12.3/x64
2024-05-21T11:38:27.9848273Z   PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.3/x64/lib/pkgconfig
2024-05-21T11:38:27.9849061Z   Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.3/x64
2024-05-21T11:38:27.9849751Z   Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.3/x64
2024-05-21T11:38:27.9850349Z   Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.3/x64
2024-05-21T11:38:27.9851037Z   LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.3/x64/lib
2024-05-21T11:38:27.9851577Z ##[endgroup]
2024-05-21T11:38:28.5793854Z #0 building with "default" instance using docker driver
2024-05-21T11:38:28.5794452Z 
2024-05-21T11:38:28.5794680Z #1 [internal] load .dockerignore
2024-05-21T11:38:28.5795254Z #1 transferring context: 2B done
2024-05-21T11:38:28.5795857Z #1 DONE 0.0s
2024-05-21T11:38:28.5796093Z 
2024-05-21T11:38:28.5796453Z #2 [internal] load build definition from Dockerfile
2024-05-21T11:38:28.5797380Z #2 transferring dockerfile: 241B done
2024-05-21T11:38:28.5797954Z #2 DONE 0.0s
2024-05-21T11:38:28.5798176Z 
2024-05-21T11:38:28.5798873Z #3 [internal] load metadata for public.ecr.aws/sam/build-python3.12:latest
2024-05-21T11:38:29.2156337Z #3 DONE 0.8s
2024-05-21T11:38:29.3237691Z 
2024-05-21T11:38:29.3239962Z #4 [1/4] FROM public.ecr.aws/sam/build-python3.12@sha256:f3151f6bf6b2aa49472cb2327118f3c87dc1df84e1fb3479f0fdd59bb0f48ace
2024-05-21T11:38:29.3242067Z #4 resolve public.ecr.aws/sam/build-python3.12@sha256:f3151f6bf6b2aa49472cb2327118f3c87dc1df84e1fb3479f0fdd59bb0f48ace done
2024-05-21T11:38:29.3243502Z #4 sha256:73c80ee970293ef46373158ce7b724cfa4f87de034fdb26ec916057f0a954b0d 0B / 418B 0.1s
2024-05-21T11:38:29.3244724Z #4 sha256:f3151f6bf6b2aa49472cb2327118f3c87dc1df84e1fb3479f0fdd59bb0f48ace 743B / 743B done
2024-05-21T11:38:29.3246217Z #4 sha256:776c38ad71ad0e70a3c2acbd5d2cc53b5272c2acb1b0e3d75e04ad0d053158b2 8.53kB / 8.53kB done
2024-05-21T11:38:29.3247462Z #4 sha256:b3a4bcbadd6f1c141dde48277920319c0dad6c975de0b729a048984fdc96887a 0B / 35.78MB 0.1s
2024-05-21T11:38:29.3248814Z #4 sha256:ffb7e723b1685ad7acae8fcc21700492a6dac043f7e2cef46c4059e45a029700 0B / 88.89kB 0.1s
2024-05-21T11:38:29.3250429Z #4 sha256:6bc86ab47ebbdc61f746a999671f7940043543aca21a1077d0a223534440bb98 3.69kB / 3.69kB done
2024-05-21T11:38:29.5236616Z #4 sha256:73c80ee970293ef46373158ce7b724cfa4f87de034fdb26ec916057f0a954b0d 418B / 418B 0.2s done
2024-05-21T11:38:29.5238095Z #4 sha256:b3a4bcbadd6f1c141dde48277920319c0dad6c975de0b729a048984fdc96887a 35.78MB / 35.78MB 0.3s
2024-05-21T11:38:29.5239849Z #4 sha256:ffb7e723b1685ad7acae8fcc21700492a6dac043f7e2cef46c4059e45a029700 88.89kB / 88.89kB 0.2s done
2024-05-21T11:38:29.5241785Z #4 sha256:ca57dfa5425bbe0f80b53bb61c76041aa08a6dfad51e32698fbd67206120cb1e 0B / 2.59MB 0.3s
2024-05-21T11:38:29.5242943Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 0B / 143.98MB 0.3s
2024-05-21T11:38:29.6824067Z #4 sha256:b3a4bcbadd6f1c141dde48277920319c0dad6c975de0b729a048984fdc96887a 35.78MB / 35.78MB 0.3s done
2024-05-21T11:38:29.6825897Z #4 sha256:ca57dfa5425bbe0f80b53bb61c76041aa08a6dfad51e32698fbd67206120cb1e 2.59MB / 2.59MB 0.3s done
2024-05-21T11:38:29.6829568Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 15.73MB / 143.98MB 0.4s
2024-05-21T11:38:29.6833130Z #4 extracting sha256:b3a4bcbadd6f1c141dde48277920319c0dad6c975de0b729a048984fdc96887a 0.1s
2024-05-21T11:38:29.6834719Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 0B / 86.09MB 0.4s
2024-05-21T11:38:29.6836557Z #4 sha256:7ea43cfc8585271b86f2c585defdf933fb9096276fc159397bf344d9ca44d3a9 14.15kB / 14.15kB 0.4s done
2024-05-21T11:38:29.7861179Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 34.60MB / 143.98MB 0.5s
2024-05-21T11:38:29.7864371Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 12.58MB / 86.09MB 0.5s
2024-05-21T11:38:29.7866298Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 2.10MB / 253.59MB 0.5s
2024-05-21T11:38:29.9241060Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 66.06MB / 143.98MB 0.7s
2024-05-21T11:38:29.9244185Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 36.70MB / 86.09MB 0.7s
2024-05-21T11:38:29.9246954Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 28.31MB / 253.59MB 0.7s
2024-05-21T11:38:30.0258064Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 81.97MB / 143.98MB 0.8s
2024-05-21T11:38:30.0259846Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 50.33MB / 86.09MB 0.8s
2024-05-21T11:38:30.1438179Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 93.32MB / 143.98MB 0.9s
2024-05-21T11:38:30.1439866Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 61.87MB / 86.09MB 0.9s
2024-05-21T11:38:30.1441743Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 50.35MB / 253.59MB 0.9s
2024-05-21T11:38:30.2463688Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 104.86MB / 143.98MB 1.0s
2024-05-21T11:38:30.2465514Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 73.40MB / 86.09MB 1.0s
2024-05-21T11:38:30.3523698Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 115.34MB / 143.98MB 1.1s
2024-05-21T11:38:30.3525428Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 86.09MB / 86.09MB 1.1s
2024-05-21T11:38:30.3527513Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 72.35MB / 253.59MB 1.1s
2024-05-21T11:38:30.4578222Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 131.07MB / 143.98MB 1.2s
2024-05-21T11:38:30.4580966Z #4 sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 86.09MB / 86.09MB 1.2s done
2024-05-21T11:38:30.4582688Z #4 sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768 0B / 57.99MB 1.2s
2024-05-21T11:38:30.6063167Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 143.98MB / 143.98MB 1.3s
2024-05-21T11:38:30.6065301Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 97.52MB / 253.59MB 1.3s
2024-05-21T11:38:30.6066947Z #4 sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768 6.83MB / 57.99MB 1.3s
2024-05-21T11:38:30.7242444Z #4 sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 143.98MB / 143.98MB 1.4s done
2024-05-21T11:38:30.7246384Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 130.02MB / 253.59MB 1.5s
2024-05-21T11:38:30.7249214Z #4 sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768 34.60MB / 57.99MB 1.5s
2024-05-21T11:38:30.7251822Z #4 sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 0B / 72.68MB 1.5s
2024-05-21T11:38:30.8247384Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 144.88MB / 253.59MB 1.6s
2024-05-21T11:38:30.8251865Z #4 sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768 47.19MB / 57.99MB 1.6s
2024-05-21T11:38:30.8254488Z #4 sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 7.34MB / 72.68MB 1.6s
2024-05-21T11:38:30.9742293Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 160.02MB / 253.59MB 1.7s
2024-05-21T11:38:30.9744695Z #4 sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768 57.99MB / 57.99MB 1.7s
2024-05-21T11:38:30.9745923Z #4 sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 20.32MB / 72.68MB 1.7s
2024-05-21T11:38:31.0872414Z #4 sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768 57.99MB / 57.99MB 1.8s done
2024-05-21T11:38:31.0874224Z #4 sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 34.97MB / 72.68MB 1.8s
2024-05-21T11:38:31.0875841Z #4 sha256:fda710ce6b6af0899f1c90e6a493a70f819a330078e1b9efb086fd4726d1ffa8 0B / 5.04kB 1.8s
2024-05-21T11:38:31.1975875Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 186.65MB / 253.59MB 1.9s
2024-05-21T11:38:31.1977751Z #4 sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 52.43MB / 72.68MB 1.9s
2024-05-21T11:38:31.1979420Z #4 sha256:fda710ce6b6af0899f1c90e6a493a70f819a330078e1b9efb086fd4726d1ffa8 5.04kB / 5.04kB 1.8s done
2024-05-21T11:38:31.1981158Z #4 sha256:fa4f16ef09d5eb1ed517a23ffba4f761de242204176a97f78a05ffb0543877d5 0B / 2.11MB 1.9s
2024-05-21T11:38:31.3246619Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 214.96MB / 253.59MB 2.1s
2024-05-21T11:38:31.3248348Z #4 sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 72.68MB / 72.68MB 2.1s done
2024-05-21T11:38:31.3250283Z #4 sha256:fa4f16ef09d5eb1ed517a23ffba4f761de242204176a97f78a05ffb0543877d5 2.11MB / 2.11MB 2.0s done
2024-05-21T11:38:31.3252035Z #4 sha256:bc86a12f471bbded6e9f88594923a777e7e120fac00b3f9e8ece5ba7ad95fdaa 8.39MB / 10.11MB 2.1s
2024-05-21T11:38:31.3253918Z #4 sha256:796a8a2e1cbd1a3ad9ca48410ab919afd791706af96b344a707fae7872bd230d 0B / 224.31kB 2.1s
2024-05-21T11:38:31.5233809Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 234.88MB / 253.59MB 2.2s
2024-05-21T11:38:31.5235400Z #4 sha256:bc86a12f471bbded6e9f88594923a777e7e120fac00b3f9e8ece5ba7ad95fdaa 10.11MB / 10.11MB 2.1s done
2024-05-21T11:38:31.5237249Z #4 sha256:796a8a2e1cbd1a3ad9ca48410ab919afd791706af96b344a707fae7872bd230d 224.31kB / 224.31kB 2.2s done
2024-05-21T11:38:31.5239270Z #4 sha256:bed9a72186c7d75f8c9d622073ca1e8abd40a83cf2a4c45cee94b45961677592 0B / 161.93kB 2.2s
2024-05-21T11:38:31.5240800Z #4 sha256:c8345ca45c9cfcd7e32ef2750d36f7e63fc640b9aa1087052e496aa2849bf33c 0B / 122.19kB 2.2s
2024-05-21T11:38:31.6232948Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 253.59MB / 253.59MB 2.4s
2024-05-21T11:38:31.6234582Z #4 sha256:bed9a72186c7d75f8c9d622073ca1e8abd40a83cf2a4c45cee94b45961677592 161.93kB / 161.93kB 2.2s done
2024-05-21T11:38:31.6236200Z #4 sha256:c8345ca45c9cfcd7e32ef2750d36f7e63fc640b9aa1087052e496aa2849bf33c 122.19kB / 122.19kB 2.3s done
2024-05-21T11:38:31.8234561Z #4 extracting sha256:b3a4bcbadd6f1c141dde48277920319c0dad6c975de0b729a048984fdc96887a 2.1s done
2024-05-21T11:38:31.9239343Z #4 sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 253.59MB / 253.59MB 2.7s done
2024-05-21T11:38:31.9240738Z #4 extracting sha256:ffb7e723b1685ad7acae8fcc21700492a6dac043f7e2cef46c4059e45a029700 done
2024-05-21T11:38:32.4665738Z #4 extracting sha256:73c80ee970293ef46373158ce7b724cfa4f87de034fdb26ec916057f0a954b0d
2024-05-21T11:38:32.6010749Z #4 extracting sha256:73c80ee970293ef46373158ce7b724cfa4f87de034fdb26ec916057f0a954b0d done
2024-05-21T11:38:32.6012508Z #4 extracting sha256:ca57dfa5425bbe0f80b53bb61c76041aa08a6dfad51e32698fbd67206120cb1e 0.0s done
2024-05-21T11:38:32.6014271Z #4 extracting sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450
2024-05-21T11:38:37.4947464Z #4 extracting sha256:6ed6bc284f19c0652a1c5103f47520239cc3eea6f1db95269ee9ef0ae16f1450 4.7s done
2024-05-21T11:38:37.4949276Z #4 extracting sha256:7ea43cfc8585271b86f2c585defdf933fb9096276fc159397bf344d9ca44d3a9 done
2024-05-21T11:38:38.2274804Z #4 extracting sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6
2024-05-21T11:38:41.0578768Z #4 extracting sha256:789ce681e84af9a3b89c05b1b1579b57eb7d254179cf64f1def9ec357e6e4ca6 2.7s done
2024-05-21T11:38:41.2606424Z #4 extracting sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d
2024-05-21T11:38:46.2664013Z #4 extracting sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 5.0s
2024-05-21T11:38:49.1618395Z #4 extracting sha256:4ba53e4d3b63751ecb369e92ef40ea5787d1810432939e305313e5cb115c949d 7.8s done
2024-05-21T11:38:50.6192341Z #4 extracting sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768
2024-05-21T11:38:53.6792609Z #4 extracting sha256:60b7e7098a21d08576e3eb64e2fd6e349751e950713ec143e276536a61ecb768 2.9s done
2024-05-21T11:38:53.9174613Z #4 extracting sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482
2024-05-21T11:38:55.8938765Z #4 extracting sha256:8d741b3e00e58e3e0cedcc7028f088199dbb49be5895333180868c1ff5be5482 1.8s done
2024-05-21T11:38:55.8940467Z #4 extracting sha256:fda710ce6b6af0899f1c90e6a493a70f819a330078e1b9efb086fd4726d1ffa8 done
2024-05-21T11:38:55.9212196Z #4 extracting sha256:fa4f16ef09d5eb1ed517a23ffba4f761de242204176a97f78a05ffb0543877d5
2024-05-21T11:38:56.0531675Z #4 extracting sha256:fa4f16ef09d5eb1ed517a23ffba4f761de242204176a97f78a05ffb0543877d5 0.0s done
2024-05-21T11:38:56.0533038Z #4 extracting sha256:bc86a12f471bbded6e9f88594923a777e7e120fac00b3f9e8ece5ba7ad95fdaa 0.1s
2024-05-21T11:38:56.5337299Z #4 extracting sha256:bc86a12f471bbded6e9f88594923a777e7e120fac00b3f9e8ece5ba7ad95fdaa 0.5s done
2024-05-21T11:38:56.5339836Z #4 extracting sha256:796a8a2e1cbd1a3ad9ca48410ab919afd791706af96b344a707fae7872bd230d
2024-05-21T11:38:56.6347275Z #4 extracting sha256:796a8a2e1cbd1a3ad9ca48410ab919afd791706af96b344a707fae7872bd230d 0.0s done
2024-05-21T11:38:56.6349480Z #4 extracting sha256:bed9a72186c7d75f8c9d622073ca1e8abd40a83cf2a4c45cee94b45961677592 done
2024-05-21T11:38:56.6351570Z #4 extracting sha256:c8345ca45c9cfcd7e32ef2750d36f7e63fc640b9aa1087052e496aa2849bf33c
2024-05-21T11:38:56.8616442Z #4 extracting sha256:c8345ca45c9cfcd7e32ef2750d36f7e63fc640b9aa1087052e496aa2849bf33c done
2024-05-21T11:38:56.8617445Z #4 DONE 27.5s
2024-05-21T11:38:56.8617685Z 
2024-05-21T11:38:56.8618315Z #5 [2/4] RUN dnf install -y dnf-plugins-core
2024-05-21T11:38:56.9675468Z #5 0.256 Failed to set locale, defaulting to C.UTF-8
2024-05-21T11:38:57.7701847Z #5 1.059 Amazon Linux 2023 repository                     32 MB/s |  23 MB     00:00    
2024-05-21T11:39:01.6529915Z #5 4.942 Last metadata expiration check: 0:00:04 ago on Tue May 21 11:38:57 2024.
2024-05-21T11:39:02.0175825Z #5 5.306 Dependencies resolved.
2024-05-21T11:39:02.1807929Z #5 5.318 ================================================================================
2024-05-21T11:39:02.1809638Z #5 5.318  Package                   Arch    Version                   Repository    Size
2024-05-21T11:39:02.1811428Z #5 5.318 ================================================================================
2024-05-21T11:39:02.1812272Z #5 5.318 Installing:
2024-05-21T11:39:02.1813385Z #5 5.318  dnf-plugins-core          noarch  4.3.0-13.amzn2023.0.4     amazonlinux   34 k
2024-05-21T11:39:02.1814322Z #5 5.318 Installing dependencies:
2024-05-21T11:39:02.1815401Z #5 5.318  python3-dateutil          noarch  1:2.8.1-3.amzn2023.0.2    amazonlinux  289 k
2024-05-21T11:39:02.1816641Z #5 5.318  python3-dbus              x86_64  1.2.18-1.amzn2023.0.2     amazonlinux  134 k
2024-05-21T11:39:02.1817938Z #5 5.318  python3-distro            noarch  1.5.0-5.amzn2023.0.2      amazonlinux   36 k
2024-05-21T11:39:02.1819219Z #5 5.318  python3-dnf-plugins-core  noarch  4.3.0-13.amzn2023.0.4     amazonlinux  233 k
2024-05-21T11:39:02.1820505Z #5 5.318  python3-six               noarch  1.15.0-5.amzn2023.0.2     amazonlinux   36 k
2024-05-21T11:39:02.1822038Z #5 5.318  python3-systemd           x86_64  235-51.amzn2023.0.2       amazonlinux   91 k
2024-05-21T11:39:02.1823193Z #5 5.318 
2024-05-21T11:39:02.1823689Z #5 5.318 Transaction Summary
2024-05-21T11:39:02.1824414Z #5 5.318 ================================================================================
2024-05-21T11:39:02.1825060Z #5 5.318 Install  7 Packages
2024-05-21T11:39:02.1825575Z #5 5.318 
2024-05-21T11:39:02.1825976Z #5 5.319 Total download size: 853 k
2024-05-21T11:39:02.1826454Z #5 5.319 Installed size: 3.1 M
2024-05-21T11:39:02.1826968Z #5 5.319 Downloading Packages:
2024-05-21T11:39:02.3473573Z #5 5.636 (1/7): dnf-plugins-core-4.3.0-13.amzn2023.0.4.n 443 kB/s |  34 kB     00:00    
2024-05-21T11:39:02.5279008Z #5 5.646 (2/7): python3-dateutil-2.8.1-3.amzn2023.0.2.no 3.2 MB/s | 289 kB     00:00    
2024-05-21T11:39:02.5280329Z #5 5.651 (3/7): python3-distro-1.5.0-5.amzn2023.0.2.noar 2.5 MB/s |  36 kB     00:00    
2024-05-21T11:39:02.5281790Z #5 5.678 (4/7): python3-dnf-plugins-core-4.3.0-13.amzn20 7.3 MB/s | 233 kB     00:00    
2024-05-21T11:39:02.5283065Z #5 5.680 (5/7): python3-six-1.15.0-5.amzn2023.0.2.noarch 1.3 MB/s |  36 kB     00:00    
2024-05-21T11:39:02.5284248Z #5 5.694 (6/7): python3-systemd-235-51.amzn2023.0.2.x86_ 5.7 MB/s |  91 kB     00:00    
2024-05-21T11:39:02.5285521Z #5 5.718 (7/7): python3-dbus-1.2.18-1.amzn2023.0.2.x86_6 838 kB/s | 134 kB     00:00    
2024-05-21T11:39:02.5286596Z #5 5.720 --------------------------------------------------------------------------------
2024-05-21T11:39:02.5287503Z #5 5.720 Total                                           2.1 MB/s | 853 kB     00:00     
2024-05-21T11:39:02.5288232Z #5 5.816 Running transaction check
2024-05-21T11:39:02.6711071Z #5 5.828 Transaction check succeeded.
2024-05-21T11:39:02.6712103Z #5 5.828 Running transaction test
2024-05-21T11:39:02.6712954Z #5 5.871 Transaction test succeeded.
2024-05-21T11:39:02.6714110Z #5 5.872 Running transaction
2024-05-21T11:39:02.6715084Z #5 5.915   Preparing        :                                                        1/1 
2024-05-21T11:39:02.8569666Z #5 5.960   Installing       : python3-systemd-235-51.amzn2023.0.2.x86_64             1/7 
2024-05-21T11:39:02.8571775Z #5 5.968   Installing       : python3-six-1.15.0-5.amzn2023.0.2.noarch               2/7 
2024-05-21T11:39:02.8574117Z #5 5.983   Installing       : python3-dateutil-1:2.8.1-3.amzn2023.0.2.noarch         3/7 
2024-05-21T11:39:02.8576261Z #5 5.991   Installing       : python3-distro-1.5.0-5.amzn2023.0.2.noarch             4/7 
2024-05-21T11:39:02.8578353Z #5 6.004   Installing       : python3-dbus-1.2.18-1.amzn2023.0.2.x86_64              5/7 
2024-05-21T11:39:02.8580448Z #5 6.030   Installing       : python3-dnf-plugins-core-4.3.0-13.amzn2023.0.4.noarc   6/7 
2024-05-21T11:39:02.8581995Z #5 6.038   Installing       : dnf-plugins-core-4.3.0-13.amzn2023.0.4.noarch          7/7 
2024-05-21T11:39:02.8583982Z #5 6.054   Running scriptlet: dnf-plugins-core-4.3.0-13.amzn2023.0.4.noarch          7/7 
2024-05-21T11:39:02.8585784Z #5 6.145   Verifying        : dnf-plugins-core-4.3.0-13.amzn2023.0.4.noarch          1/7 
2024-05-21T11:39:03.0953002Z #5 6.145   Verifying        : python3-dateutil-1:2.8.1-3.amzn2023.0.2.noarch         2/7 
2024-05-21T11:39:03.0954892Z #5 6.146   Verifying        : python3-dbus-1.2.18-1.amzn2023.0.2.x86_64              3/7 
2024-05-21T11:39:03.0956650Z #5 6.146   Verifying        : python3-distro-1.5.0-5.amzn2023.0.2.noarch             4/7 
2024-05-21T11:39:03.0958196Z #5 6.146   Verifying        : python3-dnf-plugins-core-4.3.0-13.amzn2023.0.4.noarc   5/7 
2024-05-21T11:39:03.0959776Z #5 6.148   Verifying        : python3-six-1.15.0-5.amzn2023.0.2.noarch               6/7 
2024-05-21T11:39:03.0961290Z #5 6.148   Verifying        : python3-systemd-235-51.amzn2023.0.2.x86_64             7/7 
2024-05-21T11:39:03.0962266Z #5 6.172 
2024-05-21T11:39:03.0962841Z #5 6.172 Installed:
2024-05-21T11:39:03.0963924Z #5 6.172   dnf-plugins-core-4.3.0-13.amzn2023.0.4.noarch                                 
2024-05-21T11:39:03.0965978Z #5 6.172   python3-dateutil-1:2.8.1-3.amzn2023.0.2.noarch                                
2024-05-21T11:39:03.0967207Z #5 6.172   python3-dbus-1.2.18-1.amzn2023.0.2.x86_64                                     
2024-05-21T11:39:03.0968165Z #5 6.172   python3-distro-1.5.0-5.amzn2023.0.2.noarch                                    
2024-05-21T11:39:03.0969278Z #5 6.172   python3-dnf-plugins-core-4.3.0-13.amzn2023.0.4.noarch                         
2024-05-21T11:39:03.0970199Z #5 6.172   python3-six-1.15.0-5.amzn2023.0.2.noarch                                      
2024-05-21T11:39:03.0971157Z #5 6.172   python3-systemd-235-51.amzn2023.0.2.x86_64                                    
2024-05-21T11:39:03.0971793Z #5 6.172 
2024-05-21T11:39:03.0972128Z #5 6.172 Complete!
2024-05-21T11:39:03.0972562Z #5 DONE 6.2s
2024-05-21T11:39:03.0972785Z 
2024-05-21T11:39:03.0973338Z #6 [3/4] RUN dnf config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo
2024-05-21T11:39:03.3423139Z #6 0.397 Failed to set locale, defaulting to C.UTF-8
2024-05-21T11:39:03.5769967Z #6 0.497 Adding repo from: https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo
2024-05-21T11:39:03.5771299Z #6 DONE 0.6s
2024-05-21T11:39:03.7279149Z 
2024-05-21T11:39:03.7280137Z #7 [4/4] RUN dnf -y install terraform
2024-05-21T11:39:03.8654558Z #7 0.288 Failed to set locale, defaulting to C.UTF-8
2024-05-21T11:39:04.3011308Z #7 0.724 Hashicorp Stable - x86_64                       5.7 MB/s | 1.4 MB     00:00    
2024-05-21T11:39:04.6685359Z #7 1.091 Dependencies resolved.
2024-05-21T11:39:04.8317986Z #7 1.103 ================================================================================
2024-05-21T11:39:04.8319495Z #7 1.103  Package            Architecture    Version            Repository          Size
2024-05-21T11:39:04.8321018Z #7 1.103 ================================================================================
2024-05-21T11:39:04.8322326Z #7 1.103 Installing:
2024-05-21T11:39:04.8324058Z #7 1.103  terraform          x86_64          1.8.3-1            hashicorp           26 M
2024-05-21T11:39:04.8325572Z #7 1.103 
2024-05-21T11:39:04.8326006Z #7 1.103 Transaction Summary
2024-05-21T11:39:04.8326743Z #7 1.103 ================================================================================
2024-05-21T11:39:04.8327972Z #7 1.103 Install  1 Package
2024-05-21T11:39:04.8328471Z #7 1.103 
2024-05-21T11:39:04.8329797Z #7 1.103 Total download size: 26 M
2024-05-21T11:39:04.8330572Z #7 1.104 Installed size: 84 M
2024-05-21T11:39:04.8331160Z #7 1.104 Downloading Packages:
2024-05-21T11:39:04.9638907Z #7 1.386 terraform-1.8.3-1.x86_64.rpm                     94 MB/s |  26 MB     00:00    
2024-05-21T11:39:05.1028080Z #7 1.388 --------------------------------------------------------------------------------
2024-05-21T11:39:05.1029799Z #7 1.388 Total                                            93 MB/s |  26 MB     00:00     
2024-05-21T11:39:05.1031474Z #7 1.484 Hashicorp Stable - x86_64                        65 kB/s | 3.9 kB     00:00    
2024-05-21T11:39:05.1033110Z #7 1.525 Importing GPG key 0xA621E701:
2024-05-21T11:39:05.1034124Z #7 1.525  Userid     : "HashiCorp Security (HashiCorp Package Signing) <[email protected]>"
2024-05-21T11:39:05.1035275Z #7 1.525  Fingerprint: 798A EC65 4E5C 1542 8C8E 42EE AA16 FCBC A621 E701
2024-05-21T11:39:05.1036295Z #7 1.525  From       : https://rpm.releases.hashicorp.com/gpg
2024-05-21T11:39:05.2205883Z #7 1.556 Key imported successfully
2024-05-21T11:39:05.2207336Z #7 1.590 Running transaction check
2024-05-21T11:39:05.2208440Z #7 1.593 Transaction check succeeded.
2024-05-21T11:39:05.2209497Z #7 1.593 Running transaction test
2024-05-21T11:39:05.2210365Z #7 1.618 Transaction test succeeded.
2024-05-21T11:39:05.2211157Z #7 1.618 Running transaction
2024-05-21T11:39:05.7408574Z #7 1.643   Preparing        :                                                        1/1 
2024-05-21T11:39:05.8674442Z #7 2.163   Installing       : terraform-1.8.3-1.x86_64                               1/1 
2024-05-21T11:39:06.1152261Z #7 2.290   Verifying        : terraform-1.8.3-1.x86_64                               1/1 
2024-05-21T11:39:06.1153769Z #7 2.341 
2024-05-21T11:39:06.1154326Z #7 2.341 Installed:
2024-05-21T11:39:06.1155352Z #7 2.341   terraform-1.8.3-1.x86_64                                                      
2024-05-21T11:39:06.1156449Z #7 2.341 
2024-05-21T11:39:06.1157040Z #7 2.341 Complete!
2024-05-21T11:39:06.1157673Z #7 DONE 2.4s
2024-05-21T11:39:06.1158141Z 
2024-05-21T11:39:06.1158415Z #8 exporting to image
2024-05-21T11:39:06.1159043Z #8 exporting layers
2024-05-21T11:39:09.1297878Z #8 exporting layers 3.2s done
2024-05-21T11:39:09.1505234Z #8 writing image sha256:5d751664779ff2407752693d93348401be3ef6df0cce984f29069867048f3cfc done
2024-05-21T11:39:09.1506782Z #8 naming to docker.io/library/sam-builder done
2024-05-21T11:39:09.1507455Z #8 DONE 3.2s
2024-05-21T11:39:13.3991408Z 
2024-05-21T11:39:13.3994607Z 	SAM CLI now collects telemetry to better understand customer needs.
2024-05-21T11:39:13.3995388Z 
2024-05-21T11:39:13.3996145Z 	You can OPT OUT and disable telemetry collection by setting the
2024-05-21T11:39:13.3997432Z 	environment variable SAM_CLI_TELEMETRY=0 in your shell.
2024-05-21T11:39:13.3998509Z 	Thanks for your help!
2024-05-21T11:39:13.3998876Z 
2024-05-21T11:39:13.4000541Z 	Learn More: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-telemetry.html
2024-05-21T11:39:13.4001897Z 
2024-05-21T11:39:13.7134840Z Running Prepare Hook to prepare the current application
2024-05-21T11:39:13.7136245Z Executing prepare hook of hook "terraform"
2024-05-21T11:39:13.7345798Z The option to skip infrastructure preparation was provided, but AWS SAM CLI could not find the metadata file. Preparing anyways.
2024-05-21T11:39:13.7347316Z Initializing Terraform application
2024-05-21T11:39:23.2244305Z ...................
2024-05-21T11:39:23.2388404Z Creating terraform plan and getting JSON output
2024-05-21T11:39:26.1086556Z ......
2024-05-21T11:39:27.7084121Z 2024-05-21 11:39:27,708 | OSError occurred while reading TOML file: [Errno 2] No such file or directory: '/home/runner/work/sam-cli-issue/sam-cli-issue/terraform/samconfig.toml'
2024-05-21T11:39:27.7086679Z 2024-05-21 11:39:27,708 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2024-05-21T11:39:27.7233280Z 2024-05-21 11:39:27,722 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2024-05-21T11:39:27.7238867Z 2024-05-21 11:39:27,723 | Sending Telemetry: {'metrics': [{'commandRun': {'requestId': '22e108d5-9f07-4ea9-9611-d44b75bf0504', 'installationId': 'd680eb4e-aa47-4a03-8106-f81115057cdc', 'sessionId': '1d8715d8-3d30-4b5c-a557-3cbcbc7a4c07', 'executionEnvironment': 'GitHubAction', 'ci': True, 'pyversion': '3.11.8', 'samcliVersion': '1.116.0', 'awsProfileProvided': False, 'debugFlagProvided': True, 'region': '', 'commandName': 'sam build', 'metricSpecificAttributes': {'projectType': 'Terraform', 'hookPackageId': 'terraform', 'hookPackageVersion': '1.0.0', 'gitOrigin': None, 'projectName': '94dc3ea57721d541aae09b7bf2368c1e20d4c89996ff6df4349d86048877c0e7', 'initialCommit': None}, 'duration': 0, 'exitReason': 'JSONDecodeError', 'exitCode': 255}}]}
2024-05-21T11:39:27.7248043Z 2024-05-21 11:39:27,723 | Unable to find Click Context for getting session_id.
2024-05-21T11:39:27.7256950Z 2024-05-21 11:39:27,724 | Sending Telemetry: {'metrics': [{'events': {'requestId': '80162b24-4cc8-45a5-a06c-5f6449146ac2', 'installationId': 'd680eb4e-aa47-4a03-8106-f81115057cdc', 'sessionId': '1d8715d8-3d30-4b5c-a557-3cbcbc7a4c07', 'executionEnvironment': 'GitHubAction', 'ci': True, 'pyversion': '3.11.8', 'samcliVersion': '1.116.0', 'commandName': 'sam build', 'metricSpecificAttributes': {'events': [{'event_name': 'SamConfigFileExtension', 'event_value': '.yml', 'thread_id': '3fa6494daa1d431388de948d99f786ac', 'time_stamp': '2024-05-21 11:39:13.686', 'exception_name': None}, {'event_name': 'SamConfigFileExtension', 'event_value': '.toml', 'thread_id': '2655b0f0e896464d985cbdad5b142da0', 'time_stamp': '2024-05-21 11:39:27.708', 'exception_name': None}]}}}]}
2024-05-21T11:39:27.8642543Z 2024-05-21 11:39:27,863 | Telemetry response: 200
2024-05-21T11:39:27.8753338Z 2024-05-21 11:39:27,875 | Telemetry response: 200
2024-05-21T11:39:27.8774643Z 
2024-05-21T11:39:27.8776385Z Error: Expecting value: line 1 column 2 (char 1)
2024-05-21T11:39:27.8777053Z Traceback:
2024-05-21T11:39:27.8788034Z   File "click/core.py", line 1078, in main
2024-05-21T11:39:27.8788883Z   File "click/core.py", line 1688, in invoke
2024-05-21T11:39:27.8789570Z   File "click/core.py", line 1434, in invoke
2024-05-21T11:39:27.8790248Z   File "click/core.py", line 783, in invoke
2024-05-21T11:39:27.8790944Z   File "samcli/cli/cli_config_file.py", line 347, in wrapper
2024-05-21T11:39:27.8791671Z   File "click/decorators.py", line 92, in new_func
2024-05-21T11:39:27.8792399Z   File "click/core.py", line 783, in invoke
2024-05-21T11:39:27.8793087Z   File "samcli/lib/telemetry/metric.py", line 185, in wrapped
2024-05-21T11:39:27.8793903Z   File "samcli/lib/telemetry/metric.py", line 146, in wrapped
2024-05-21T11:39:27.8795014Z   File "samcli/commands/_utils/custom_options/hook_name_option.py", line 64, in handle_parse_result
2024-05-21T11:39:27.8796193Z   File "samcli/commands/_utils/custom_options/hook_name_option.py", line 94, in _call_prepare_hook
2024-05-21T11:39:27.8797268Z   File "samcli/lib/hook/hook_wrapper.py", line 100, in prepare
2024-05-21T11:39:27.8798053Z   File "samcli/lib/hook/hook_wrapper.py", line 160, in _execute
2024-05-21T11:39:27.8798800Z   File "samcli/lib/hook/hook_wrapper.py", line 191, in _execute_as_module
2024-05-21T11:39:27.8799604Z   File "samcli/hook_packages/terraform/main.py", line 9, in prepare
2024-05-21T11:39:27.8800503Z   File "samcli/hook_packages/terraform/hooks/prepare/hook.py", line 107, in prepare
2024-05-21T11:39:27.8801483Z   File "samcli/hook_packages/terraform/hooks/prepare/hook.py", line 240, in _generate_plan_file
2024-05-21T11:39:27.8802244Z   File "json/__init__.py", line 346, in loads
2024-05-21T11:39:27.8802788Z   File "json/decoder.py", line 337, in decode
2024-05-21T11:39:27.8803393Z   File "json/decoder.py", line 355, in raw_decode
2024-05-21T11:39:27.8803742Z 
2024-05-21T11:39:27.8804023Z An unexpected error was encountered while executing "sam build".
2024-05-21T11:39:27.8804675Z Search for an existing issue:
2024-05-21T11:39:27.8805584Z https://github.com/aws/aws-sam-cli/issues?q=is%3Aissue+is%3Aopen+Bug%3A%20sam%20build%20-%20JSONDecodeError
2024-05-21T11:39:27.8806355Z Or create a bug report:
2024-05-21T11:39:27.8807292Z https://github.com/aws/aws-sam-cli/issues/new?template=Bug_report.md&title=Bug%3A%20sam%20build%20-%20JSONDecodeError
2024-05-21T11:39:27.9912858Z ##[error]Process completed with exit code 1.
2024-05-21T11:39:28.0218757Z Post job cleanup.
2024-05-21T11:39:28.1509292Z Post job cleanup.
2024-05-21T11:39:28.2653482Z [command]/usr/bin/git version
2024-05-21T11:39:28.2699984Z git version 2.45.1
2024-05-21T11:39:28.2750688Z Temporarily overriding HOME='/home/runner/work/_temp/98809166-9e65-42bf-a3a4-9c56da139e00' before making global git config changes
2024-05-21T11:39:28.2752416Z Adding repository directory to the temporary git global config as a safe directory
2024-05-21T11:39:28.2758061Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/sam-cli-issue/sam-cli-issue
2024-05-21T11:39:28.2801911Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-05-21T11:39:28.2844726Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-05-21T11:39:28.3116695Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-05-21T11:39:28.3148962Z http.https://github.com/.extraheader
2024-05-21T11:39:28.3164760Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2024-05-21T11:39:28.3206721Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-05-21T11:39:28.3770967Z Cleaning up orphan processes

from aws-sam-cli.

github-actions avatar github-actions commented on July 2, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

from aws-sam-cli.

danielbojczuk-jumbo avatar danielbojczuk-jumbo commented on July 2, 2024

Hi @mndeveci and @hawflau, I took the day today to debug the sam-cli terraform hooker and found the problem.

The sam-cli executes the terraform in a subprocess. In the last step, it gets the output of the show plan as json to translate it to a SAM/Cloudformation template.

The problem is GitHub, by default, adds a wrapper script to the terraform command. Probably to enhance the logging. Since the sam-cli dosn't know that, it tries to parse a json, that actually is not a json.

terraform show plan -json with wrapper:

[command]/home/runner/work/_temp/b566fc80-440c-4d0f-ada0-e1c0e379b16e/terraform-bin show -json /tmp/tmpi97sbu0y\n{"format_version":"1.2","terraform_version":"1.8.3","planned_values":{"root_module":{"resources":[{"address":"aws_cloudwatch_event_rule.every_day","mode":"managed","type":"aws_cloudwatch_event_rule","name":"every_day","provider_name":"registry.terraform.io/hashicorp/aws","schema_version":1,"values":{"description":"Execute every
...
...

terraform show plan -json without wrapper:

{"format_version":"1.2","terraform_version":"1.8.3","planned_values":{"root_module":{"resources":[{"address":"aws_cloudwatch_event_rule.every_day","mode":"managed","type":"aws_cloudwatch_event_rule","name":"every_day","provider_name":"registry.terraform.io/hashicorp/aws","schema_version":1,"values":{"description":"Execute every
...
...

The solution is to disable the wrapper when configuring the terraform github action:

- uses: hashicorp/setup-terraform@v2
        with:
          terraform_version: "1.8.3"
          terraform_wrapper: false

Maybe it is worth mentioning this in any documentation?

from aws-sam-cli.

lucashuy avatar lucashuy commented on July 2, 2024

Thanks for suggesting this, I can consult with our documentation friends about adding a note indicating that the output should be untouched by runners or other processes. For now, I'm going to close this issue as the root cause has been found and a workaround exists when using that action. Feel free to create a new issue if something else arises.

from aws-sam-cli.

github-actions avatar github-actions commented on July 2, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

from aws-sam-cli.

Related Issues (20)

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

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

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.