cloudformation-cli icon indicating copy to clipboard operation
cloudformation-cli copied to clipboard

Metadata attribute tagging is not supported by CloudFormation

Open ycourtois opened this issue 4 years ago • 3 comments

Metadata attribute "taggable" is marked as deprecated inside resource definition schema. https://github.com/aws-cloudformation/cloudformation-cli/blob/d8212e82e3ca84bec4861739766b355de3ef49ad/src/rpdk/core/data/schema/provider.definition.schema.v1.json#L120

Instead, we should use "tagging".

Example:

  ...
  "tagging": {
    "taggable": false
  },
  ...

However, if I use this attribute, deployment with CloudFormation ends with an "Internal failure" after a long waiting period. I have performed tests on several regions (included us-east-1), result is always the same.

The issue is reproducible with the example resource generated with cfn init. Edit the json schema and add the following block under the "properties" one.

  "properties": {
	...
  },
  "tagging": {
    "taggable": false
  },
  ...

Submit the extension with cfn submit and try to deploy your resource with CloudFormation.

  • Expected result: The stack has been successfully deployed .
  • Actual result: Deployment gets stuck during a long time and ends up with an "Internal failure".
  • Version: v0.2.22
  • Plugin: cloudformation-cli-python-plugin (2.1.4)

ycourtois avatar Nov 25 '21 10:11 ycourtois

which plugin did you use? If it's java you might want to upgrade https://github.com/aws-cloudformation/cloudformation-resource-schema as it contains the change as well. Meanwhile, we will investigate the issue

ammokhov avatar Nov 29 '21 04:11 ammokhov

I have updated the issue description and added the information about the plugin I used. ==> cloudformation-cli-python-plugin (2.1.4)

ycourtois avatar Nov 29 '21 08:11 ycourtois

Hi this feature is currently blocked by a pending deployment so internal failures will be thrown when you try to create a new stack even before resource creation is initiated. Feature will be officially available since 12.13 according to the new deployment schedule. So feel free to revert it now or retry later after that date.

Yunhao-Jiao avatar Nov 30 '21 18:11 Yunhao-Jiao