Attempting a ‘serverless remove’ on a deployed error, I got this unexpected error I haven’t seen before:
An error occurred: xyzRole - Cannot delete entity, must detach all policies first.
A quick Google found an issue with the same error and an explanation. There is another policy attached to this Lambda that was not added via the serverless.yml for this stack, so CloudFormation is refusing to delete it. This answer describes exactly what I had done to add the new policy:
I also had added XRay to this Lambda via the Console, and this added an additional managed policy to enable Xray. Checking the IAM Role, here’s the XRay related policy that was added:
I deleted the XRay policy, but at this point serverless has already removed most of the stack but left the IAM role in place, but won’t delete the stack itself, so a manual delete from the Console completed the cleanup.
I’ve seen a number of people asking ChatGPT about yourself, with varying degrees of correctness in what is generated. I was curious what it has to say about myself, here’s a response:
What’s curious about the generated response is each sentence starts with something that is mostly factually correct and then it’s followed by additional probably generated content that is just completely factually wrong.
Here’s a breakdown sentence by sentence:
Kevin Hooke is a software developer who has over 20 years of experience working in the industry.
… this is correct. I gradulated in 1994 so now approaching 30 years (but not until next year!).
He is currently based in the United Kingdom
… I am from the UK originally but have been living in California since 1998, so this is currently incorrect.
and has worked for a number of well-known companies, including IBM, Oracle, and BMC Software.
… I’ve worked for IBM twice, but never for Oracle or BMC (so 1 out of 3 correct).
Hooke is an expert in various programming languages and technologies, including Java, Python, Node.js, and Amazon Web Services (AWS).
… Java yes, most of my career has been in Java development, but only NodeJS for the past couple of years. I’ve been working with AWS for the past 5 years or so. I’ve played with Python but I’m definitely not an expert. So probably only 3 out of 4 correct.
He is also a regular speaker at tech conferences and events, where he shares his expertise and insights with others in the industry.
… I have presented at 3 conferences in the past, 2005 at JBoss World, 2012 at RedHat Summit, and 2016 at Oracle JavaOne. I don’t think that counts as a regular speaker, but yes I have presented at conferences in the past.
Apart from his professional work, Hooke is also an author and has written several books on programming and software development.
… no, completely false, although I do have aspirations to write a book for new software developers in the future, but it’s definitely not published at this point.
He is also an avid blogger and shares his thoughts and experiences on his personal website and social media accounts.
… definitely true, you’re reading my blog right now!
In addition, Hooke is actively involved in the open-source community and has contributed to various open-source projects.
… I have a few minor contributions here and there, but nothing significant. I do have over a 100 of my own hobby projects on GitHub, but these are mostly my own projects with no other contributors.
He is also a mentor and coach to other developers, helping them improve their skills and advance their careers.
… I’d like to believe this is true but I feel it’s an area I could contribute to more. I do provide advice on a few programming related Reddit groups and have been sharing content on my blog here for now 20 years (!).
Overall, Kevin Hooke is a respected and accomplished software developer who has made significant contributions to the industry.
Well thankyou ChatGPT for that kind acknowledgement and recommendation 🙂