Code Monkey home page Code Monkey logo

Comments (5)

ckamps avatar ckamps commented on June 23, 2024

@awspankj thanks for the report. We're in the process of preparing a heavily refactored version of this automation for publishing here in aws-samples. The refactored version has many enhancements including more robust error handling.

In the meantime, did you get a chance to inspect the cfn-init.log data to potentially better understand the issue? As mentioned in Troubleshooting stack creation.

Selecting the following option during stack creation can help preserve some of the resources so that it's easier to troubleshoot:

image

Separately, I've also provided you with a pointer to the heavily refactored fork in case you'd like to try that version.

from aws-cloudhsm-cloudformation-template.

ckamps avatar ckamps commented on June 23, 2024

@awspankj it appears that the kmsuser was created, but at the point that the CloudHSM key store was being connected, the kmuser is in an inconsistent state. i.e. the user is not present on each of the two HSMs in the cluster. The connect operation fails due to the user not being present in all HSMs of the cluster.

I'm investigating why, under some circumstances, the user gets into that state. This failure appears to be a result of enhancing the code to use the cloudhsm-cli package vs the cloudhsm-client package.

While the CloudFormation stack is waiting for the key store to get into the connected state, a workaround is to access the EC2 client, delete, and create again the kmsuser using the the cloudhsm-cli.

from aws-cloudhsm-cloudformation-template.

awspankj avatar awspankj commented on June 23, 2024

from aws-cloudhsm-cloudformation-template.

ckamps avatar ckamps commented on June 23, 2024

@awspankj I reverted this repository to the commit prior to introducing use of the cloudhsm-cli package in place of the cloudhsm-client package so that the kmsuser creation is stable. I'll send a note to you once the newly refactored form of the overall automation is published to this repository. In the meantime, you can use the internal fork I referenced separately.

from aws-cloudhsm-cloudformation-template.

awspankj avatar awspankj commented on June 23, 2024

from aws-cloudhsm-cloudformation-template.

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.