Skip to content

[BUG] ami_bakery deployment issue #310

Description

@gerrardrose

Describe the bug

The deployment fails because the Lambda function is trying to create "A Code Commit Repository to store CloudFormation Templates that define EC2 Image Builder, Recipes, Components, etc." but is unable to in an Organization/Account that has never used CodeCommit Repositories, and the service is no longer open to new customers.

The following error is seen in CloudFormation:

rAMIBakeryOrgLambdaCustomResource
CREATE_FAILED
Likely root cause

Received response status [FAILED] from custom resource. Message returned: An error occurred (OperationNotAllowedException) when calling the CreateRepository operation: CreateRepository request is not allowed because there is no existing repository in this AWS account or AWS Organization (RequestId: d5788f00-1bea-4e5c-8bc6-bd2a3794255a)

To Reproduce

Steps to reproduce the behavior:

  1. Deploy the solution in an Organization & Account that has never used CodeCommit Repositories.
  2. See error in CloudFormation stack - StackSet-CustomControlTower-sra-ami-bakery-org-main-ssm-*****

Expected behavior

CloudFormation CREATE_COMPLETE

Screenshots

N/A

Deployment Environment (please complete the following information)

  • Deployment Framework [e.g. Customizations for Control Tower and CloudFormation StackSets]: customizations-for-aws-control-tower
  • Deployment Framework Version [e.g. 1.0, 2.0]: v2.8.3

Additional context

Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions