0
votes

Are there reserved words, variables, etc for CloudFormation templates? I've specified a DynamoDB table called "Config":

  # ...standard CF definition
  Resources:
    # ...other resources that correctly build
    Config:
      Type: AWS::DynamoDB::Table
      Properties:
        TableName: my-app-config
        AttributeDefinitions:
          - AttributeName: name
            AttributeType: S
        KeySchema:
          - AttributeName: name
            KeyType: HASH
        ProvisionedThroughput:
          ReadCapacityUnits: 1
          WriteCapacityUnits: 1

...and applied the template, but the resource is not being created. I don't see any errors in the CloudFormation console.

1
Your table name is my-app-config - Asdfg

1 Answers

1
votes

The name of your resource (Config) should not cause any problems.

The Config resource must be nested under a Resources object, like this:

---
AWSTemplateFormatVersion: '2010-09-09'
Description: My Stack

Resources:
  Config:
    Type: AWS::DynamoDB::Table
    Properties:
      TableName: my-app-config
      AttributeDefinitions:
        - AttributeName: name
          AttributeType: S
      KeySchema:
        - AttributeName: name
          KeyType: HASH
      ProvisionedThroughput:
        ReadCapacityUnits: 1
        WriteCapacityUnits: 1