Giter VIP home page Giter VIP logo

Comments (7)

NobuHiramatsu avatar NobuHiramatsu commented on July 18, 2024 5

@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

def update_policy(self, policy_id, name, description, content):

v2.7.0

def update_policy(self, policy_id, name, description, content):

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.

Cihl28 avatar Cihl28 commented on July 18, 2024

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.

stumins avatar stumins commented on July 18, 2024

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.

stumins avatar stumins commented on July 18, 2024

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.

Cihl28 avatar Cihl28 commented on July 18, 2024

Just noticed this. I'll make plan to have this update applied soon.

from aws-control-tower-customizations.

Cihl28 avatar Cihl28 commented on July 18, 2024

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.

Cihl28 avatar Cihl28 commented on July 18, 2024

I'll just go ahead and close this issue.

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.