You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org-formation init-pipeline fails with "CreateRepository request is not allowed because there is no existing repository in this AWS account or AWS Organization"
#568
Open
yannickvr opened this issue
Jul 30, 2024
· 2 comments
AWS has deprecated CodeCommit for new customers since June 2023. Running org-formation init-pipeline would normally create a codecommit repository, but will now fail for new AWS customers.
Short term, OFN should be able to handle this error response (ie. "This is a new org so sorry cant use the init-pipeline command"), but ultimately the init-pipeline command should take the user through a process to set up a pipeline in GH/Bitbucket/whatever
The text was updated successfully, but these errors were encountered:
We're using GHA with OFN at several customers, and it works fine. There are two options though, that can be looked at:
Keep the current Codepipeline implementation and use github as source (until AWS deprecates codepipeline)
Go full GHA. This would mean that the init-pipeline script should create a OIDC provider and IAM role in the management account, and then generate a workflow.yml with the outcome. I think we can just also have the init process look at the .git/config file to figure out if the init is being done from a "supported" repo, e.g. github/bitbucket/etc. to generate the right config.
For reference, here's a github action running OFN (simplified, as codecommit was)
Subject of the issue
AWS has deprecated CodeCommit for new customers since June 2023. Running org-formation init-pipeline would normally create a codecommit repository, but will now fail for new AWS customers.
Short term, OFN should be able to handle this error response (ie. "This is a new org so sorry cant use the init-pipeline command"), but ultimately the init-pipeline command should take the user through a process to set up a pipeline in GH/Bitbucket/whatever
The text was updated successfully, but these errors were encountered: