Comments (7)
@stumins
I had the same error as above. Thanks for the improvement in v2.7.0.
However, in v2.6.0, the same error rarely occurs not in EnablePolicyType operation but in UpdatePolicy operation, as shown in the error statement below.
{
"errorMessage": "An error occurred (ConcurrentModificationException) when calling the UpdatePolicy operation: AWS Organizations can't complete your request because it conflicts with another attempt to modify the same entity. Try again later.",
"errorType": "ConcurrentModificationException",
"stackTrace": [
" File \"/var/task/state_machine_router.py\", line 218, in lambda_handler\n return service_control_policy(event, function_name)\n",
" File \"/var/task/state_machine_router.py\", line 77, in service_control_policy\n response = scp.update_policy()\n",
" File \"/var/task/cfct/state_machine_handler.py\", line 882, in update_policy\n response = scp.update_policy(\n",
" File \"/var/task/cfct/aws/services/scp.py\", line 80, in update_policy\n response = self.org_client.update_policy(\n",
" File \"/var/task/botocore/client.py\", line 391, in _api_call\n return self._make_api_call(operation_name, kwargs)\n",
" File \"/var/task/botocore/client.py\", line 719, in _make_api_call\n raise error_class(parsed_response, operation_name)\n"
]
}
Since there appears to be no modification to the update_policy method in this update, I fear that the UpdatePolicy operation will continue to generate ConcurrentModificationException in v2.7.0.
v2.6.0
v2.7.0
I haven't been able to update yet and have not been able to confirm this issue with v2.7.0, but are you aware of this issue?
Are you aware of this issue and if so, do you plan to fix it?
from aws-control-tower-customizations.
Further thoughts for your consideration:
- Please consider not running EnablePolicyType at all. IMHO, it should be obvious that SCP support is supposed to be enabled in Organizations before starting to employ this solution. It could be in the installation docs.
- The loop keeps going after this failure occurs and does all the SCPs anyway. I'd expect it to cut short and fail instead. At least that way we can retry a lot sooner. (we have 35 SCPs b.t.w.)
from aws-control-tower-customizations.
Hi @Cihl28,
Thanks for reporting this bug. We are aware of the issue and have scheduled a patch for the next release.
from aws-control-tower-customizations.
Hi @Cihl28,
CFCT v2.7.0 was just released with a patch for this issue. Please upgrade to v2.7.0 and let us know if you continue to experience this error.
from aws-control-tower-customizations.
Just noticed this. I'll make plan to have this update applied soon.
from aws-control-tower-customizations.
I can now confirm that this issue is no longer present for me in v2.7.0.
Thanks for fixing it!
from aws-control-tower-customizations.
I'll just go ahead and close this issue.
from aws-control-tower-customizations.
Related Issues (20)
- Migrate to Recommended Event-based Mechanism HOT 2
- CfCT - error when enabling recommended controls HOT 5
- Question: Does the CfCT Pipeline trigger upon account creation/updates made in Control Tower? HOT 3
- Reduce warnings from CodeBuild projects HOT 1
- Sanitize quotes/double quotes in manifest resource_file field HOT 1
- Modify SCPs only on change HOT 1
- CAPABILITY_NAMED_IAM Error
- It is desirable that not only createManagedAccount, but also the CFCT pipeline starts even when a moveAccount action occurs HOT 4
- Slowness in deploying stacksets for organization with 800+ accounts HOT 2
- 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
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.