aws-samples / aws-secure-environment-accelerator

The AWS Secure Environment Accelerator is a tool designed to help deploy and operate secure multi-account, multi-region AWS environments on an ongoing basis. The power of the solution is the configuration file which enables the completely automated deployment of customizable architectures within AWS without changing a single line of code.
Apache License 2.0
725 stars 233 forks source link

[BUG] [SM] MainStateMachine_sm step function fails to create repo #1233

Open eimzd1 opened 2 months ago

eimzd1 commented 2 months ago

Bug reports which fail to provide the required information will be closed without action.

Required Basic Info

Describe the bug Step function failes because CodeCommit is disabled for new AWS accounts since July 25 https://aws.amazon.com/blogs/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider/

Failure Info "cause": { "errorType": "OperationNotAllowedException", "errorMessage": "CreateRepository request is not allowed because there is no existing repository in this AWS account or AWS Organization", "trace": [ "OperationNotAllowedException: CreateRepository request is not allowed because there is no existing repository in this AWS account or AWS Organization", " at constructor.Mgn (/var/task/index.js:1:4761)", " at constructor.callListeners (/var/task/index.js:1:47227)", " at constructor.emit (/var/task/index.js:1:46935)", " at constructor.emitEvent (/var/task/index.js:2:29765)", " at constructor.n (/var/task/index.js:2:25318)", " at jpe.runTo (/var/task/index.js:2:1221)", " at /var/task/index.js:2:1433", " at constructor. (/var/task/index.js:2:25533)", " at constructor. (/var/task/index.js:2:29820)", " at constructor.callListeners (/var/task/index.js:1:47332)" ] }, "error": "OperationNotAllowedException"

The problem i think is that CodeCommit is disabled for new users since 2024 july 25 according to https://aws.amazon.com/blogs/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider/

Required files not needed

Steps To Reproduce

  1. Go to 'Step Functions'
  2. Click on 'ASEA-MainStateMachine_sm'
  3. See error

Expected behavior Step functions should run smoothly and create accounts added in config.json

Screenshots image

Additional context Are there any alternatives to setup the automation without using codecommit repository ?