Putnik
Putnik

Reputation: 6774

You cannot specify tags for Spot instances requests if there are no Spot instances requests being created by the request

I've created a spot request. In the logs I see:

You cannot specify tags for Spot instances requests if there are no Spot instances requests being created by the request.

Could anyone explain the error message in plain English, please? The text makes no sense to me as non-English native.

Upvotes: 1

Views: 2777

Answers (1)

arkentos
arkentos

Reputation: 999

Ther error happens when you are trying to tag a non-existent resource.

One example will be want to propagate a name in cfn template, but there was not spot created

LaunchTemplate:
  Type: AWS::EC2::LaunchTemplate
  Properties:
    LaunchTemplateName: some-name
    LaunchTemplateData:
      TagSpecifications:
        - ResourceType: spot-instances-request
          Tags:
            - Key: Name
              Value: some-name

Upvotes: 3

Related Questions