Giter Club home page Giter Club logo

Comments (4)

adeolaolawuyi avatar adeolaolawuyi commented on September 16, 2024 1

Hello @bhkhatri221 , thank you for response. The pipeline was able to complete successfully by following the workaround steps above. I also had no issues as well after removing the environmental variable and gave the pipeline a dry run. Thanks again for your assistance.

from landing-zone-accelerator-on-aws.

bhkhatri221 avatar bhkhatri221 commented on September 16, 2024

Hello @adeolaolawuyi, thank you for filing an issue with the Landing Zone Accelerator team!

The issue you're facing could be due to the policy being deleted and recreated, which generated a different ID, causing the Finalize stack to become unsynchronized. A similar issue has been reported before.

To better assist you with this issue, please provide the following information:

  • Did this issue start during the upgrade process?
  • What versions of the solution are you upgrading from and to?
  • Were there any manual modifications of SCPs ?

Thanks, and we look forward to hearing back from you!

from landing-zone-accelerator-on-aws.

adeolaolawuyi avatar adeolaolawuyi commented on September 16, 2024

Hi @bhkhatri221, thank you for your response.

Just to confirm the issue did not start during the LZA upgrade process.

The Accounts stack was failing to update and could not rollback. Then I tried to delete the stack, which could not delete because of the SCP resources, the SCP resources was skipped but it still ended up deleting the SCPs as part of the process. A rerun of the Accounts stage recreated the stack and the SCP resources again.

The current version we are using is v.1.8.1 and there was no manual modifications to SCPs.

from landing-zone-accelerator-on-aws.

bhkhatri221 avatar bhkhatri221 commented on September 16, 2024

Hello @adeolaolawuyi , thank you for additional information.

LZA expects the policy to have been created in a previous execution. The solution creates a hash of the policy files and only create or update the policies if the policy has changed. Since the policy hasn't changed, the custom resource that would create the policy is not being called in the accounts stack. To force the policy to be created or updated, you can add an environment variable to the CodeBuild project, which will force the custom resource to be executed. Here are the steps to create the environment variable:

  • Navigate to CodeBuild and go to the Build projects.
  • Find the project where the name ends in 'ToolkitProject'.
  • Select the project and click on the 'Edit' button.
  • Scroll down to the Environment section and expand the 'Additional configuration' section.
  • The name of the variable will be 'ACCELERATOR_FORCED_UPDATE' set the value to 'true'.
  • Scroll down and click on the 'Update project' button.

Once the environment variable has been added. release the LZA pipeline. After the pipeline has executed successfully the environment variable can be removed or set the value to 'false'.

I hope this was helpful ! Let us know if this workaround works for you and if you have any further questions.

from landing-zone-accelerator-on-aws.

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.