aws-cloudformation / aws-cloudformation-resource-providers-networkmanager

The CloudFormation Resource Provider Package For Amazon Network Manager
https://aws.amazon.com/transit-gateway/network-manager/
Apache License 2.0
0 stars 1 forks source link

Tags return 400 invalid Input #59

Open codypenta opened 1 year ago

codypenta commented 1 year ago

Hey y'all,

We are using CDK Aspects, more specifically, the tagging portion that tags every resource (Just for context, cloudformation inbound).

When we use this to tag network manager, the outgoing cloudformation returns an error:

"nmwdevGlobalNetwork": {
 "Type": "AWS::NetworkManager::GlobalNetwork",
 "Properties": {
  "Description": "Global network",
  "Tags": [
   {
    "Key": "Prefix",
    "Value": "nmw"
   },
   {
    "Key": "Stage",
    "Value": "dev"
   }
  ]
 },

This for some strange reason returns:

Resource handler returned message: "Incorrect input. (Service: NetworkManager, Status Code: 400, Request ID: c57722c5-6cb2-4a05-8a0d-6e46b4d8d243)" (RequestToken: 740c95bb-6a1b-6650-b399-fb83e59bad42, HandlerErrorCode: InvalidRequest)

When explicitly removing the tag, the resource deploys fine

"nmwdevGlobalNetwork": {
 "Type": "AWS::NetworkManager::GlobalNetwork",
 "Properties": {
  "Description": "Global network"
 },

For what it's worth, I can create a global network through the console and CLI so this is specific to cloudformation.

codypenta commented 1 year ago

This is also the case for core network. But other networking constructs, like VPC work fine