aws-solutions / network-orchestration-for-aws-transit-gateway

The Network Orchestration for AWS Transit Gateway solution automates the process of setting up and managing transit networks in distributed AWS environments. It creates a web interface to help control, audit, and approve (transit) network changes.
https://aws.amazon.com/solutions/implementations/serverless-transit-network-orchestrator/
Apache License 2.0
110 stars 48 forks source link

Using Customizations for Control Tower to Deploy newest STNO v3 #58

Closed khhonard-aws closed 1 year ago

khhonard-aws commented 2 years ago

Hello team,

Hopefully looking to get an answer for this soon. I'm consistently getting errors with my CodePipeline for Customizations for Control Tower (CfCT) to deploy this new solution for STNO. The error that I'm getting from CloudFormation:

"ResourceLogicalId:TgwPeeringLambda, ResourceType:AWS::Lambda::Function, ResourceStatusReason:Properties validation failed for resource TgwPeeringLambda with message: #/Code/S3Bucket: failed validation constraint for keyword [pattern]."

There are no parameters that I've configured for this particular resource. I'm really out of guesses how to fix this error. Could someone help me fix this problem?

Screenshot: Screen Shot 2022-08-08 at 8 14 26 PM

tbelmega commented 1 year ago

Hi @khhonard-aws , what is your CodePipeline supposed to do, build the solution from this GitHub project and then deploy it?

I'm guessing, because the error message hints at 'TgwPeeringLambda/Properties/Code/S3Bucket', and that is reading a mapping value. The mapping value is defined as

Mappings:
  SourceCode:
    General:
      S3Bucket: "%DIST_BUCKET_NAME%"

which is invalid and would produce that error message, if you tried to deploy this template with CloudFormation directly.

The README explains how you prepare the template for deployment. Apologies in case you're already following the instructions from the README.

tbelmega commented 1 year ago

No response, closing

randyspainhower commented 1 year ago

Hello team,

Hopefully looking to get an answer for this soon. I'm consistently getting errors with my CodePipeline for Customizations for Control Tower (CfCT) to deploy this new solution for STNO. The error that I'm getting from CloudFormation:

"ResourceLogicalId:TgwPeeringLambda, ResourceType:AWS::Lambda::Function, ResourceStatusReason:Properties validation failed for resource TgwPeeringLambda with message: #/Code/S3Bucket: failed validation constraint for keyword [pattern]."

There are no parameters that I've configured for this particular resource. I'm really out of guesses how to fix this error. Could someone help me fix this problem?

Screenshot: Screen Shot 2022-08-08 at 8 14 26 PM

@khhonard-aws Did you ever get a resolution to this? We have our stno in customizations for control tower as well (As deployed by AWS Proserve engagemenet) and i'm curious about upgrading in that pipeline.... I don't understand why AWS was pushing to use this in that pipeline but then not explaining how to upgrade in that path....