Comments (9)
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.
Hello @SamiMamdouh @ahmei0
We are testing the fix and plan to publish a new version as soon as possible.
from aws-control-tower-customizations.
(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.
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.
We're experiencing the same issue. Great to know a fix is in the works to solve this.
from aws-control-tower-customizations.
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.
Can you please close this ticket if v1.2.1 resolves this issue.
from aws-control-tower-customizations.
This issue has been resolved in https://github.com/aws/aws-cli/releases/tag/1.18.140.
See:
- aws/aws-cli@3e59ab4
- aws/aws-cli@5822bf4#diff-9a4a2455143ceb35ef6c5128a33e6ead169e7757a85252d7755fd133669a1cdb
from aws-control-tower-customizations.
Issue resolved in release v1.2.1
from aws-control-tower-customizations.
Related Issues (20)
- Slowness in deploying stacksets for organization with 800+ accounts HOT 2
- Frequent ConcurrentModificationException on running SCP updates HOT 7
- Service Catalog portolfios/products management
- Stacksets concurrency
- Remove stacksets from an account in reverse order HOT 2
- Support for Israel(Tel Aviv) Region "il-central-1" HOT 1
- Update CHANGELOG HOT 1
- build-s3-dist.sh fails with pip error HOT 3
- Solution fails [StepFunctions.1] Security Hub control HOT 3
- control-tower-customizations relies on outdated libraries & runtimes and looks abandoned HOT 4
- Running test or build fails HOT 1
- CloudFormation Lambda S3 Error HOT 1
- FeatureRequest: Add External SourceControls - e.g. Github, Gitlab, bitbucket.... HOT 1
- Would like logging added to the stepfunction HOT 1
- IndexError: list index out of range in CustomControlTowerStateMachineLambda lambda function HOT 1
- Python 3.8 End-Of-Life HOT 4
- Enable "Server Access Logging" on the CloudTrail S3 bucket or have an option to enable it
- Inspector high severity findings on this solution's Lambdas
- Bug: Unit test directory ./source/tests missing or purposely omitted?
- New CloudFormation features fail to deploy because cfn_nag is not longer maintained HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-control-tower-customizations.