Giter VIP home page Giter VIP logo

Comments (9)

frumania avatar frumania commented on July 18, 2024 6

Adding

- pip install --upgrade --user awscli

just before each "pre_build" block in the buildspec should fix this:

e.g.

...
      - apt-get update && apt-get upgrade -y
      - apt-get install zip wget python-pip libyaml-dev -y
      - pip install --upgrade --user awscli
  pre_build:
...

(This is due to an update on botocore that was released on Sept 17th.
In order to be able to import the dependency, customers will need to upgrade the awscli or install the awscli manually until a fix is released)

from aws-control-tower-customizations.

groverlalit avatar groverlalit commented on July 18, 2024 3

Hello @SamiMamdouh @ahmei0
We are testing the fix and plan to publish a new version as soon as possible.

from aws-control-tower-customizations.

rjenks avatar rjenks commented on July 18, 2024 1

(I'm not with Amazon/AWS) As a workaround, until the install_stage_dependencies.sh script is fixed in the main repo, you can make a 1 line change to the buildspec to fix this. The fix is based on the PR that ahmei0 posted above, not my work. The PR is to fix the install_stage_dependencies.sh script that we can't easily modify in our environment though. This workaround changes the buildspec which we do have control over while we wait for the real fix.

  • Go to the CodePipeline dashboard and select the "Custom-Control-Tower-CodeBuild" project
  • Go to the Build Details tab and scroll down to the Buildspec, click Edit
  • Find the "pre_build:" "commands:" section.
  • Add the following line just before the "bash install_stage_dependencies.sh $STAGE_NAME" line:
    - pip install --upgrade awscli

I can't afford downtime for our CT customization pipeline, so I needed to find a workaround.

from aws-control-tower-customizations.

SamiMamdouh avatar SamiMamdouh commented on July 18, 2024

I'm facing same error
ImportError: cannot import name 'docevents' from 'botocore.docs.bcdoc' (/root/.pyenv/versions/3.8.3/lib/python3.8/site-packages/botocore/docs/bcdoc/__init__.py)
please fix it (above script should fix )
Thanks !

from aws-control-tower-customizations.

jdstuart avatar jdstuart commented on July 18, 2024

We're experiencing the same issue. Great to know a fix is in the works to solve this.

from aws-control-tower-customizations.

rcalvachi avatar rcalvachi commented on July 18, 2024

I modified the CfCT template for the BuildSpecs:

StackSetCodeBuild
SCPCodeBuild
CustomControlTowerCodeBuild

Add "\n - pip install --upgrade awscli\n - aws --version" to lines 517, 641 and 811.

Do it right after "- apt-get update && apt-get upgrade -y". Then Update the CfCT stack.

from aws-control-tower-customizations.

hunttom avatar hunttom commented on July 18, 2024

Can you please close this ticket if v1.2.1 resolves this issue.

from aws-control-tower-customizations.

BR0kEN- avatar BR0kEN- commented on July 18, 2024

This issue has been resolved in https://github.com/aws/aws-cli/releases/tag/1.18.140.

See:

from aws-control-tower-customizations.

groverlalit avatar groverlalit commented on July 18, 2024

Issue resolved in release v1.2.1

from aws-control-tower-customizations.

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.