Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use docker-based cli for AWS #3508

Open
3 tasks
azizova-leyla opened this issue Sep 26, 2022 · 3 comments · Fixed by civiform/cloud-deploy-infra#65
Open
3 tasks

Use docker-based cli for AWS #3508

azizova-leyla opened this issue Sep 26, 2022 · 3 comments · Fixed by civiform/cloud-deploy-infra#65
Assignees
Labels
deploy Work for the deploy directory or to enable new deployments tech-debt Technical Debt that should be addressed but not as pressing as bugs

Comments

@azizova-leyla
Copy link
Contributor

@azizova-leyla azizova-leyla added needs-triage bugs that have not yet been triaged deploy Work for the deploy directory or to enable new deployments and removed needs-triage bugs that have not yet been triaged labels Sep 26, 2022
@avrittrohwer avrittrohwer self-assigned this Oct 11, 2022
@avrittrohwer
Copy link
Collaborator

Will need to update the current deployment docker file. When running the setup command on amd64 the container fails with:

  File "/cloud/aws/templates/aws_oidc/bin/aws_cli.py", line 31, in get_current_user
    res = self._call_cli('sts get-caller-identity')
...
FileNotFoundError: [Errno 2] No such file or directory: 'aws'

The No such file or directoy: 'aws' error, in this case at least, really means that the aws executable is dynamically linked against libraries that are not present on the host. I changed the docker compose file command to bash to give me a shell in the container:

bash-5.1# ldd $(which aws)
        /lib64/ld-linux-x86-64.so.2 (0x7f843b354000)
        libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f843b354000)
        libz.so.1 => /lib/libz.so.1 (0x7f843b33a000)
        libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f843b354000)
        libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f843b354000)
Error relocating /usr/local/bin/aws: __strcat_chk: symbol not found
Error relocating /usr/local/bin/aws: __snprintf_chk: symbol not found
Error relocating /usr/local/bin/aws: __vfprintf_chk: symbol not found
Error relocating /usr/local/bin/aws: __realpath_chk: symbol not found
Error relocating /usr/local/bin/aws: __strdup: symbol not found
Error relocating /usr/local/bin/aws: __memcpy_chk: symbol not found
Error relocating /usr/local/bin/aws: __vsnprintf_chk: symbol not found
Error relocating /usr/local/bin/aws: __strcpy_chk: symbol not found
Error relocating /usr/local/bin/aws: __fprintf_chk: symbol not found

Turns out this is a known issue: aws/aws-cli#4685

@nbeloglazov
Copy link
Contributor

@avrittrohwer I don't think this is completed given that we haven't switched to docker by default?

@avrittrohwer
Copy link
Collaborator

Yes I did not mean to close the entire issue. I meant to mark that the above comment has been resolved

@avrittrohwer avrittrohwer reopened this Oct 12, 2022
@rasmi rasmi added the tech-debt Technical Debt that should be addressed but not as pressing as bugs label May 26, 2023
@nb1701 nb1701 added triaged This issue has been looked at, appropriate labels added, and priority added, Q2 2024 and removed triaged This issue has been looked at, appropriate labels added, and priority added, Q2 2024 labels Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy Work for the deploy directory or to enable new deployments tech-debt Technical Debt that should be addressed but not as pressing as bugs
Projects
5 participants